diff options
author | Torbjörn Andersson | 2003-11-02 15:58:45 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-11-02 15:58:45 +0000 |
commit | db9b8070f6750a204c5d6e95c60ecbbac7ef848c (patch) | |
tree | fc819401ca76f7762499e878e1d90b82338e1950 /sword2/sword2.h | |
parent | e9ae86bb76bf6087a1bb11f6158fd96676572866 (diff) | |
download | scummvm-rg350-db9b8070f6750a204c5d6e95c60ecbbac7ef848c.tar.gz scummvm-rg350-db9b8070f6750a204c5d6e95c60ecbbac7ef848c.tar.bz2 scummvm-rg350-db9b8070f6750a204c5d6e95c60ecbbac7ef848c.zip |
More moving of stuff into classes. I had to make a few changes/cleanups to
events.cpp, so there could be regressions.
svn-id: r11053
Diffstat (limited to 'sword2/sword2.h')
-rw-r--r-- | sword2/sword2.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sword2/sword2.h b/sword2/sword2.h index 34f77b7ebd..b1e5aa6273 100644 --- a/sword2/sword2.h +++ b/sword2/sword2.h @@ -27,6 +27,9 @@ #include "common/str.h" #include "sword2/build_display.h" #include "sword2/console.h" +#include "sword2/events.h" +#include "sword2/icons.h" +#include "sword2/object.h" #include "sword2/driver/d_sound.h" #include "sword2/driver/d_draw.h" @@ -181,8 +184,41 @@ public: uint32 _cycleTime; uint32 _frameCount; + bool _wantSfxDebug; + bool _grabbingSequences; + + int32 _gameCycle; + bool _renderSkip; + int32 initBackground(int32 res, int32 new_palette); + _event_unit _eventList[MAX_events]; + + void initEventSystem(void); + void sendEvent(uint32 id, uint32 interact_id); + void setPlayerActionEvent(uint32 id, uint32 interact_id); + void startEvent(void); + bool checkEventWaiting(void); + void clearEvent(uint32 id); + void killAllIdsEvents(uint32 id); + + uint32 countEvents(void); + + // These two are set by fnPassGraph() and fnPassMega(). + // FIXME: _engineGraph isn't used at all, is it? + + Object_graphic _engineGraph; + Object_mega _engineMega; + + menu_object _tempList[TOTAL_engine_pockets]; + uint32 _totalTemp; + + menu_object _masterMenuList[TOTAL_engine_pockets]; + uint32 _totalMasters; + + void buildMenu(void); + void buildSystemMenu(void); + void errorString(const char *buf_input, char *buf_output); void initialiseFontResourceFlags(void); void initialiseFontResourceFlags(uint8 language); |