diff options
author | Bastien Bouclet | 2016-08-13 09:02:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | c623a767676f8422186933c87b569d39185b5496 (patch) | |
tree | bc23dde92851c8278c41a0002c2a8798144c604b /engines/mohawk/riven_card.h | |
parent | 9ab0d53cd3d8008b55d64cea832191f5ef2155ce (diff) | |
download | scummvm-rg350-c623a767676f8422186933c87b569d39185b5496.tar.gz scummvm-rg350-c623a767676f8422186933c87b569d39185b5496.tar.bz2 scummvm-rg350-c623a767676f8422186933c87b569d39185b5496.zip |
MOHAWK: Ensure constructing and deleting cards does not have side effects
Diffstat (limited to 'engines/mohawk/riven_card.h')
-rw-r--r-- | engines/mohawk/riven_card.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/riven_card.h b/engines/mohawk/riven_card.h index d20f63dfd6..626c427444 100644 --- a/engines/mohawk/riven_card.h +++ b/engines/mohawk/riven_card.h @@ -56,7 +56,10 @@ public: }; /** Initialization routine used to draw a card for the first time or to refresh it */ - void open(); + void enter(); + + /** Run the card's leave scripts */ + void leave(); /** Run one of the card's scripts */ void runScript(uint16 scriptType); @@ -131,7 +134,6 @@ private: RivenScriptPtr getScript(uint16 scriptType) const; void defaultLoadScript(); - void runLeaveScripts(); void updateMouseCursor(); |