diff options
author | Arnaud Boutonné | 2011-01-19 14:45:18 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-01-19 14:45:18 +0000 |
commit | 9058b6a88b7b33cb58164f65bb92a19b976281dc (patch) | |
tree | 811c234ae2f0642df4412bbaeb767a688059ab80 /engines/hugo/schedule.h | |
parent | 679a8d6ad60a2f8a0ae8f714a147f25b821a8cd8 (diff) | |
download | scummvm-rg350-9058b6a88b7b33cb58164f65bb92a19b976281dc.tar.gz scummvm-rg350-9058b6a88b7b33cb58164f65bb92a19b976281dc.tar.bz2 scummvm-rg350-9058b6a88b7b33cb58164f65bb92a19b976281dc.zip |
HUGO: Add specific decodeString() for H1 Dos
This fixes act3 logic.
Also move some functions from public to protected.
svn-id: r55325
Diffstat (limited to 'engines/hugo/schedule.h')
-rw-r--r-- | engines/hugo/schedule.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/engines/hugo/schedule.h b/engines/hugo/schedule.h index 6337a8bb06..cea825490e 100644 --- a/engines/hugo/schedule.h +++ b/engines/hugo/schedule.h @@ -53,11 +53,9 @@ public: Scheduler(HugoEngine *vm); virtual ~Scheduler(); - virtual uint32 getTicks() = 0; - + virtual void decodeString(char *line) = 0; virtual void runScheduler() = 0; - void decodeString(char *line); void freeActListArr(); void initEventQueue(); void insertActionList(uint16 actIndex); @@ -85,6 +83,9 @@ protected: act **_actListArr; virtual const char *getCypher() = 0; + + virtual uint32 getTicks() = 0; + virtual void delEventType(action_t actTypeDel) = 0; virtual void delQueue(event_t *curEvent) = 0; virtual void promptAction(act *action) = 0; @@ -103,11 +104,14 @@ public: Scheduler_v1d(HugoEngine *vm); ~Scheduler_v1d(); - virtual const char *getCypher(); - virtual uint32 getTicks(); + virtual void decodeString(char *line); virtual void runScheduler(); protected: + virtual const char *getCypher(); + + virtual uint32 getTicks(); + virtual void delEventType(action_t actTypeDel); virtual void delQueue(event_t *curEvent); virtual void promptAction(act *action); @@ -118,9 +122,11 @@ public: Scheduler_v2d(HugoEngine *vm); virtual ~Scheduler_v2d(); - virtual const char *getCypher(); + void decodeString(char *line); protected: + virtual const char *getCypher(); + void delEventType(action_t actTypeDel); void delQueue(event_t *curEvent); void promptAction(act *action); @@ -131,6 +137,7 @@ public: Scheduler_v3d(HugoEngine *vm); ~Scheduler_v3d(); +protected: const char *getCypher(); }; @@ -139,9 +146,11 @@ public: Scheduler_v1w(HugoEngine *vm); ~Scheduler_v1w(); + void runScheduler(); + +protected: uint32 getTicks(); - void runScheduler(); }; } // End of namespace Hugo #endif //HUGO_SCHEDULE_H |