diff options
author | Max Horn | 2003-03-07 21:38:46 +0000 |
---|---|---|
committer | Max Horn | 2003-03-07 21:38:46 +0000 |
commit | 7ec34ab1a971a183ab68ff175d2b848a840b5266 (patch) | |
tree | 430f669754106e15b960ee000a9b67c6f5c9c4d8 /scumm/intern.h | |
parent | bdd2c50af9fb208dcb40692f8d2d5bf67ee0ab53 (diff) | |
download | scummvm-rg350-7ec34ab1a971a183ab68ff175d2b848a840b5266.tar.gz scummvm-rg350-7ec34ab1a971a183ab68ff175d2b848a840b5266.tar.bz2 scummvm-rg350-7ec34ab1a971a183ab68ff175d2b848a840b5266.zip |
refactored some stuff (and made readMAXS virtual, with V2/V3 code having own implementations); cleaned up V6 array shuffle code; made more Scumm member vars/methods protected
svn-id: r6751
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index e729293a71..8af677560c 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -162,7 +162,9 @@ class Scumm_v2 : public Scumm_v5 { public: Scumm_v2(GameDetector *detector, OSystem *syst) : Scumm_v5(detector, syst) {} - virtual void readIndexFile(); +protected: + void readIndexFile(); + void readMAXS(); }; // FIXME - maybe we should move the opcodes from v5 to v3, and change the inheritance @@ -172,14 +174,17 @@ class Scumm_v3 : public Scumm_v5 { public: Scumm_v3(GameDetector *detector, OSystem *syst) : Scumm_v5(detector, syst) {} +protected: void readIndexFile(); - virtual void loadCharset(int no); + void loadCharset(int no); + void readMAXS(); }; class Scumm_v4 : public Scumm_v3 { public: Scumm_v4(GameDetector *detector, OSystem *syst) : Scumm_v3(detector, syst) {} +protected: void loadCharset(int no); }; @@ -205,6 +210,8 @@ protected: virtual void setupScummVars(); int popRoomAndObj(int *room); + + void shuffleArray(int num, int minIdx, int maxIdx); virtual void decodeParseString(int a, int b); int getStackList(int *args, uint maxnum); |