22 #ifndef TSAGE_BLUEFORCE_LOGIC_H 23 #define TSAGE_BLUEFORCE_LOGIC_H 25 #include "common/scummsys.h" 26 #include "tsage/events.h" 27 #include "tsage/core.h" 28 #include "tsage/scenes.h" 29 #include "tsage/globals.h" 35 using namespace TsAGE;
37 #define BF_INVENTORY (*((::TsAGE::BlueForce::BlueForceInvObjectList *)g_globals->_inventory)) 41 void start()
override;
42 Scene *createScene(
int sceneNumber)
override;
43 void rightClick()
override;
44 void processEvent(
Event &event)
override;
45 bool canSaveGameStateCurrently()
override;
46 bool canLoadGameStateCurrently()
override;
47 void restart()
override;
50 #define OBJ_ARRAY_SIZE 10 62 void process(
Event &event)
override;
63 void dispatch()
override;
69 void remove()
override { EventHandler::remove(); }
83 void remove()
override;
84 void signal()
override;
85 void dispatch()
override;
97 void remove()
override;
98 void signal()
override;
107 Common::String getClassName()
override {
return "SceneHotspotExt"; }
109 SceneHotspot::synchronize(s);
110 s.syncAsSint16LE(_state);
116 virtual void startMove(
SceneObject *sceneObj, va_list va);
124 bool startAction(CursorType action,
Event &event)
override;
132 Common::String getClassName()
override {
return "NamedObjectExt"; }
134 NamedObject::synchronize(s);
135 s.syncAsSint16LE(_flag);
146 NamedObject::synchronize(s);
149 s.syncAsSint16LE(useless);
151 s.syncAsSint16LE(_talkCount);
159 void fixCountdown(
int mode, ...);
161 Common::String getClassName()
override {
return "CountdownObject"; }
163 void dispatch()
override;
171 Common::String getClassName()
override {
return "FollowerObject"; }
173 void remove()
override;
174 void dispatch()
override;
175 void reposition()
override;
177 void setup(
SceneObject *
object,
int visage,
int frameNum,
int yDiff);
187 void remove()
override;
188 void process(
Event &event)
override;
191 enum ExitFrame { EXITFRAME_N = 1, EXITFRAME_NE = 2, EXITFRAME_E = 3, EXITFRAME_SE = 4,
192 EXITFRAME_S = 5, EXITFRAME_SW = 6, EXITFRAME_W = 7, EXITFRAME_NW = 8 };
196 static void startStrip();
197 static void endStrip();
200 bool _savedPlayerEnabled;
201 bool _savedUiEnabled;
211 void remove()
override;
212 void process(
Event &event)
override;
213 void dispatch()
override;
214 void loadScene(
int sceneNum)
override;
215 virtual void checkGun();
217 void addTimer(
EventHandler *timer) { _timerList.add(timer); }
218 void removeTimer(
EventHandler *timer) { _timerList.remove(timer); }
219 bool display(CursorType action);
234 void remove()
override;
236 void add2Faders(
const byte *arrBufferRGB,
int step,
int paletteNum,
Action *action);
237 void transition(
const byte *arrBufferRGB,
int arg8,
int paletteNum,
Action *action,
int fromColor1,
int fromColor2,
int toColor1,
int toColor2,
bool flag);
243 void process(
Event &event)
override;
245 void playerAction(
Event &event)
override;
246 void processEnd(
Event &event)
override;
251 static bool SelectItem(
int objectNumber);
324 void setObjectScene(
int objectNum,
int sceneNumber);
325 void alterInventory(
int mode);
327 Common::String getClassName()
override {
return "BlueForceInvObjectList"; }
334 bool startAction(CursorType action,
Event &event)
override;
346 NamedHotspot::synchronize(s);
347 s.syncAsSint16LE(_flag);
361 void remove()
override;
362 void signal()
override;
363 void process(
Event &event)
override;
377 void dispatch()
override;
Definition: blueforce_logic.h:339
Definition: blueforce_logic.h:127
Definition: blueforce_logic.h:88
Definition: blueforce_logic.h:225
Definition: blueforce_logic.h:166
Definition: blueforce_logic.h:249
Definition: blueforce_logic.h:330
Definition: blueforce_logic.h:51
Definition: blueforce_logic.h:180
Definition: blueforce_logic.h:155
Definition: blueforce_logic.h:240
Definition: blueforce_logic.h:102
Definition: blueforce_logic.h:351
Definition: graphics.h:79
Definition: blueforce_logic.h:39
Definition: blueforce_logic.h:72
Definition: blueforce_logic.h:366
Definition: blueforce_dialogs.h:30
Definition: blueforce_logic.h:194
Version getVersion() const
Definition: serializer.h:172
Definition: blueforce_logic.h:139
Definition: saveload.h:63
Definition: blueforce_logic.h:114
Definition: blueforce_logic.h:119