ScummVM API documentation
event_sdev.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef BAGEL_BAGLIB_EVENT_SDEV_H
24 #define BAGEL_BAGLIB_EVENT_SDEV_H
25 
26 #include "bagel/spacebar/baglib/storage_dev_win.h"
27 
28 namespace Bagel {
29 namespace SpaceBar {
30 
31 class CBagEventSDev : public CBagStorageDev {
32 private:
33  static bool _evalTurnEventsFl;
34 
35 public:
37  }
38  virtual ~CBagEventSDev() {
39  }
40 
41  static void initialize() {
42  _evalTurnEventsFl = false;
43  }
44 
49  ErrorCode attach() override;
50 
51  ErrorCode setBackground(CBofBitmap * /* bmp, unused */) override {
52  return ERR_NONE;
53  }
54 
55  CBofBitmap *getBackground() override {
56  return nullptr;
57  }
58 
63  virtual ErrorCode evaluateExpressions();
64 
65  // Gives timer code a method to launch tim
66  static void setEvalTurnEvents(bool b = true) {
67  _evalTurnEventsFl = b;
68  }
69  static bool getEvalTurnEvents() {
70  return _evalTurnEventsFl;
71  }
72 };
73 
75 public:
77  }
78  virtual ~CBagTurnEventSDev() {
79  }
80 
81  ErrorCode setBackground(CBofBitmap * /* bmp, unused */) override {
82  return ERR_NONE;
83  }
84 
85  CBofBitmap *getBackground() override {
86  return nullptr;
87  }
88 
89  virtual ErrorCode evaluateExpressions();
90 };
91 
92 } // namespace SpaceBar
93 } // namespace Bagel
94 
95 #endif
Definition: event_sdev.h:31
ErrorCode attach() override
Definition: event_sdev.h:74
virtual ErrorCode evaluateExpressions()
Definition: afxwin.h:27
Definition: storage_dev_win.h:79
Definition: bitmap.h:57