aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.h
diff options
context:
space:
mode:
authorRobert Špalek2009-11-02 05:31:03 +0000
committerRobert Špalek2009-11-02 05:31:03 +0000
commit6de74446ab75fb19b62ab5fc6ef492d7b05e1f15 (patch)
treed826c1583c54bad3943b64a42c1af26ee535eb72 /engines/draci/game.h
parentc45f0343f4c386263025f1c39536ec9c6a2e566e (diff)
downloadscummvm-rg350-6de74446ab75fb19b62ab5fc6ef492d7b05e1f15.tar.gz
scummvm-rg350-6de74446ab75fb19b62ab5fc6ef492d7b05e1f15.tar.bz2
scummvm-rg350-6de74446ab75fb19b62ab5fc6ef492d7b05e1f15.zip
Split loop() into several cleaned helper methods
svn-id: r45608
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r--engines/draci/game.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h
index 168da220f6..fb244ce06a 100644
--- a/engines/draci/game.h
+++ b/engines/draci/game.h
@@ -280,7 +280,7 @@ public:
void setSpeechTiming(uint tick, uint duration);
void shiftSpeechAndFadeTick(int delta);
- void updateTitle();
+ void updateTitle(int x, int y);
void updateCursor();
void inventoryInit();
@@ -320,6 +320,13 @@ public:
void DoSync(Common::Serializer &s);
private:
+ void updateOrdinaryCursor();
+ void updateInventoryCursor();
+ void handleOrdinaryLoop();
+ void handleInventoryLoop();
+ void handleDialogueLoop();
+ void advanceAnimationsAndTestLoopExit();
+
bool enterNewRoom(); // Returns false if another room change has been triggered and therefore loop() shouldn't be called yet.
void loadRoom(int roomNum);
void runGateProgram(int gate);
@@ -376,7 +383,6 @@ private:
uint _speechDuration;
int _objUnderCursor;
- int _oldObjUnderCursor;
int _animUnderCursor;
int _markedAnimationIndex; ///< Used by the Mark GPL command