aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge.h
diff options
context:
space:
mode:
authorStrangerke2011-07-04 08:15:56 +0200
committerStrangerke2011-07-04 08:15:56 +0200
commitfae1d7efd885eae98ee9b0c8ae9bc99612942430 (patch)
treeef5db813d0e1b3a49b1a1e395236e121a58ed125 /engines/cge/cge.h
parentc313d2cce8d647265f192400c667d72824874dbc (diff)
downloadscummvm-rg350-fae1d7efd885eae98ee9b0c8ae9bc99612942430.tar.gz
scummvm-rg350-fae1d7efd885eae98ee9b0c8ae9bc99612942430.tar.bz2
scummvm-rg350-fae1d7efd885eae98ee9b0c8ae9bc99612942430.zip
CGE: This ends the first renaming pass. Also move some functions to CGEEngine
Diffstat (limited to 'engines/cge/cge.h')
-rw-r--r--engines/cge/cge.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/engines/cge/cge.h b/engines/cge/cge.h
index ba6326726a..04f395559f 100644
--- a/engines/cge/cge.h
+++ b/engines/cge/cge.h
@@ -36,12 +36,21 @@
namespace CGE {
class Console;
+class Sprite;
// our engine debug channels
enum {
kCGEDebug = 1 << 0
};
+#define POCKET_NX 8
+
+struct SavTab {
+ void *Ptr;
+ int Len;
+ uint8 Flg;
+};
+
class CGEEngine : public Engine {
private:
uint32 _lastFrame;
@@ -50,8 +59,17 @@ public:
CGEEngine(OSystem *syst, const ADGameDescription *gameDescription);
~CGEEngine();
- const ADGameDescription *_gameDescription;
- bool _isDemo;
+ const ADGameDescription *_gameDescription;
+ bool _isDemo;
+ int _startupMode;
+ int _demoText;
+ int _oldLev;
+ bool _jbw;
+ int _pocPtr;
+ SavTab _savTab[16];
+ bool _music;
+ int _pocref[POCKET_NX];
+ uint8 _volume[2];
virtual Common::Error run();
GUI::Debugger *getDebugger() {
@@ -81,6 +99,7 @@ public:
void NONE();
void SB();
void caveDown();
+ void caveUp();
void xCave();
void qGame();
void SBM();
@@ -93,6 +112,11 @@ public:
void setIRQ();
void setDMA();
void mainLoop();
+ void SaveGame(XFile &file);
+ void switchMusic();
+ void selectPocket(int n);
+ void SNKeep(Sprite *spr, int stp);
+ void SNGive(Sprite *spr, int stp);
private:
CGEConsole *_console;