aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/moves
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 14:40:44 -0400
committerPaul Gilbert2017-08-06 14:40:44 -0400
commita14bc53ba534cca2e956de4bd950923d093d7c50 (patch)
tree8dfb829524cbbc1e45a0dfbdd6f91d28ea8b4081 /engines/titanic/moves
parent62957b38ac439718a9b9bd53d475f38bab73833a (diff)
downloadscummvm-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.cpp9
-rw-r--r--engines/titanic/moves/move_player_in_parrot_room.h8
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