diff options
author | Max Horn | 2003-09-17 21:06:16 +0000 |
---|---|---|
committer | Max Horn | 2003-09-17 21:06:16 +0000 |
commit | 468275bb94f975b9e1c2e7e90a03caa37bd0e142 (patch) | |
tree | 1c3a7f30ca33043dba1a7de1119d6c50da7181fa /sword2/sword2.h | |
parent | c0d1061a2dcfd8c50c70ca99b99a41e81207fa86 (diff) | |
download | scummvm-rg350-468275bb94f975b9e1c2e7e90a03caa37bd0e142.tar.gz scummvm-rg350-468275bb94f975b9e1c2e7e90a03caa37bd0e142.tar.bz2 scummvm-rg350-468275bb94f975b9e1c2e7e90a03caa37bd0e142.zip |
added a static method setDefaultDirectory to class File; used this to simplify some code; added a global g_sound pointer in bs2, this cuts down on uses of g_sword2 (of course both should be removed on the long run); some other minor tweaks/fixes
svn-id: r10278
Diffstat (limited to 'sword2/sword2.h')
-rw-r--r-- | sword2/sword2.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/sword2/sword2.h b/sword2/sword2.h index cf3ab1946d..4c39b114b4 100644 --- a/sword2/sword2.h +++ b/sword2/sword2.h @@ -50,24 +50,27 @@ enum BSGameId { // TODO move stuff into class class Sword2State : public Engine { - void errorString(const char *buf_input, char *buf_output); - public: - Sword2State(GameDetector *detector, OSystem *syst); - void go(void); - void parseEvents(void); - void Start_game(void); - int32 InitialiseGame(void); - GameDetector *_detector; - uint32 _features; - byte _gameId; - char *_game_name; // target name for saves - Sword2Sound *_sound; - private: - bool _quit; - uint32 _bootParam; - int32 _saveSlot; +public: + Sword2State(GameDetector *detector, OSystem *syst); + void go(void); + void parseEvents(void); + void Start_game(void); + int32 InitialiseGame(void); + GameDetector *_detector; + uint32 _features; + byte _gameId; + char *_game_name; // target name for saves + Sword2Sound *_sound; +private: + bool _quit; + uint32 _bootParam; + int32 _saveSlot; + +public: + void errorString(const char *buf_input, char *buf_output); }; extern Sword2State *g_sword2; +extern Sword2Sound *g_sound; #endif |