aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-17 20:55:32 -0400
committerPaul Gilbert2016-03-17 20:55:32 -0400
commit12ae5e10f3a20b1b909a6ec40257e39e063b78c5 (patch)
tree936eff629cd96723faedf54b076006ec19b8c145 /engines/titanic/game/sgt
parenta8d94d448ea977bdd5b1171e177de6dd714792a2 (diff)
downloadscummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.tar.gz
scummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.tar.bz2
scummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.zip
TITANIC: Added stubbed CEnterRoomMsg event handlers as needed
Diffstat (limited to 'engines/titanic/game/sgt')
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.cpp5
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/titanic/game/sgt/sgt_state_room.cpp b/engines/titanic/game/sgt/sgt_state_room.cpp
index e0d8de1282..a6dc523bcf 100644
--- a/engines/titanic/game/sgt/sgt_state_room.cpp
+++ b/engines/titanic/game/sgt/sgt_state_room.cpp
@@ -90,4 +90,9 @@ void CSGTStateRoom::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CSGTStateRoom::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CSGTStateRoom::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/sgt/sgt_state_room.h b/engines/titanic/game/sgt/sgt_state_room.h
index dfac6894b9..dbe4538ced 100644
--- a/engines/titanic/game/sgt/sgt_state_room.h
+++ b/engines/titanic/game/sgt/sgt_state_room.h
@@ -24,6 +24,7 @@
#define TITANIC_SGT_STATE_ROOM_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
@@ -44,7 +45,7 @@ struct CSGTStateRoomStatics {
int _v14;
};
-class CSGTStateRoom : public CBackground {
+class CSGTStateRoom : public CBackground, CEnterRoomMsgTarget {
private:
static CSGTStateRoomStatics *_statics;
private:
@@ -53,6 +54,8 @@ private:
int _fieldE8;
int _fieldEC;
int _fieldF0;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CSGTStateRoom();