diff options
author | Paul Gilbert | 2017-08-06 14:40:44 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-06 14:40:44 -0400 |
commit | a14bc53ba534cca2e956de4bd950923d093d7c50 (patch) | |
tree | 8dfb829524cbbc1e45a0dfbdd6f91d28ea8b4081 /engines/titanic/moves | |
parent | 62957b38ac439718a9b9bd53d475f38bab73833a (diff) | |
download | scummvm-rg350-a14bc53ba534cca2e956de4bd950923d093d7c50.tar.gz scummvm-rg350-a14bc53ba534cca2e956de4bd950923d093d7c50.tar.bz2 scummvm-rg350-a14bc53ba534cca2e956de4bd950923d093d7c50.zip |
TITANIC: Fix arrow key movement in front of Parrot cage
Diffstat (limited to 'engines/titanic/moves')
-rw-r--r-- | engines/titanic/moves/move_player_in_parrot_room.cpp | 9 | ||||
-rw-r--r-- | engines/titanic/moves/move_player_in_parrot_room.h | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/titanic/moves/move_player_in_parrot_room.cpp b/engines/titanic/moves/move_player_in_parrot_room.cpp index 1ef2e96e92..186e448bba 100644 --- a/engines/titanic/moves/move_player_in_parrot_room.cpp +++ b/engines/titanic/moves/move_player_in_parrot_room.cpp @@ -58,4 +58,13 @@ bool CMovePlayerInParrotRoom::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { return true; } +bool CMovePlayerInParrotRoom::findPoint(Point &pt) { + if (_destination == "ParrotLobby.Node 1.E") { + pt = Point(600, 180); + return true; + } else { + return CMovePlayerTo::findPoint(pt); + } +} + } // End of namespace Titanic diff --git a/engines/titanic/moves/move_player_in_parrot_room.h b/engines/titanic/moves/move_player_in_parrot_room.h index 54dc2eb992..50a0b2a00e 100644 --- a/engines/titanic/moves/move_player_in_parrot_room.h +++ b/engines/titanic/moves/move_player_in_parrot_room.h @@ -44,6 +44,14 @@ public: * Load the data for the class from file */ virtual void load(SimpleFile *file); + + /** + * Returns a point that falls within the object. Used for simulating + * mouse clicks for movement when arrow keys are pressed + * @param pt Return point + * @returns True if a point was found + */ + virtual bool findPoint(Point &pt); }; } // End of namespace Titanic |