aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/core/game_object.h5
-rw-r--r--engines/titanic/moves/move_player_in_parrot_room.cpp9
-rw-r--r--engines/titanic/moves/move_player_in_parrot_room.h8
3 files changed, 20 insertions, 2 deletions
diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h
index 1c3cbf386c..9a7d426d0a 100644
--- a/engines/titanic/core/game_object.h
+++ b/engines/titanic/core/game_object.h
@@ -609,11 +609,12 @@ public:
bool checkPoint(const Point &pt, bool ignoreSurface = false, bool visibleOnly = false);
/**
- * Returns a point that falls within the object
+ * 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
*/
- bool findPoint(Point &pt);
+ virtual bool findPoint(Point &pt);
/**
* Set the position of the object
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