diff options
author | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
commit | 983863bef3f72b81cd0c1211241c64670c4e3e18 (patch) | |
tree | c6f14bff41a913bdf4efe2c858d863bdbf4801ed /engines/parallaction/parallaction.h | |
parent | 805a46b229658782820a5f78a862e19e2533ec18 (diff) | |
download | scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.gz scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.bz2 scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.zip |
Uniformed the interface of Parallaction class (and its hierarchy) with regards of gui code, which is now independent of engine version.
svn-id: r34219
Diffstat (limited to 'engines/parallaction/parallaction.h')
-rw-r--r-- | engines/parallaction/parallaction.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index d85c7e9f87..63cdc9cfc5 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -333,12 +333,16 @@ public: void updateDoor(ZonePtr z, bool close); - virtual void drawAnimations() = 0; + void drawAnimations(); void beep(); + void showSlide(const char *name, int x = 0, int y = 0); ZonePtr _zoneTrap; + virtual void cleanupGame() = 0; + virtual void getGamePartProgress(bool *complete, int size) = 0; + public: void highlightInventoryItem(ItemPosition pos); int16 getHoverInventoryItem(int16 x, int16 y); @@ -443,14 +447,13 @@ public: bool saveGame(); void switchBackground(const char* background, const char* mask); - void showSlide(const char *name, int x = 0, int y = 0); - // TODO: this should be private!!!!!!! - bool _inTestResult; void cleanupGame(); - bool allPartsComplete(); + void getGamePartProgress(bool *complete, int size); private: + bool _inTestResult; + LocationParser_ns *_locationParser; ProgramParser_ns *_programParser; @@ -528,7 +531,6 @@ private: const Callable *_callables; protected: - void drawAnimations(); void parseLocation(const char *filename); void loadProgram(AnimationPtr a, const char *filename); @@ -558,6 +560,7 @@ public: void setupSubtitles(char *s, char *s2, int y); void clearSubtitles(); + void getGamePartProgress(bool *complete, int size); public: Table *_countersNames; @@ -565,7 +568,6 @@ public: const char **_audioCommandsNamesRes; int _part; - int _progress; #if 0 // disabled since I couldn't find any references to lip sync in the scripts int16 _lipSyncVal; @@ -579,7 +581,6 @@ public: int32 _counters[32]; uint32 _zoneFlags[NUM_LOCATIONS][NUM_ZONES]; - void startPart(uint part); private: LocationParser_br *_locationParser; ProgramParser_br *_programParser; |