diff options
author | Robert Špalek | 2009-11-02 05:31:03 +0000 |
---|---|---|
committer | Robert Špalek | 2009-11-02 05:31:03 +0000 |
commit | 6de74446ab75fb19b62ab5fc6ef492d7b05e1f15 (patch) | |
tree | d826c1583c54bad3943b64a42c1af26ee535eb72 /engines/draci/game.h | |
parent | c45f0343f4c386263025f1c39536ec9c6a2e566e (diff) | |
download | scummvm-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.h | 10 |
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 |