aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game
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
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')
-rw-r--r--engines/titanic/game/light.cpp5
-rw-r--r--engines/titanic/game/light.h5
-rw-r--r--engines/titanic/game/light_switch.cpp5
-rw-r--r--engines/titanic/game/light_switch.h5
-rw-r--r--engines/titanic/game/long_stick_dispenser.cpp6
-rw-r--r--engines/titanic/game/long_stick_dispenser.h5
-rw-r--r--engines/titanic/game/parrot/player_meets_parrot.cpp5
-rw-r--r--engines/titanic/game/parrot/player_meets_parrot.h5
-rw-r--r--engines/titanic/game/pet/pet_monitor.cpp5
-rw-r--r--engines/titanic/game/pet/pet_monitor.h5
-rw-r--r--engines/titanic/game/pet/pet_position.cpp5
-rw-r--r--engines/titanic/game/pet/pet_position.h5
-rw-r--r--engines/titanic/game/pet/pet_transport.cpp5
-rw-r--r--engines/titanic/game/pet/pet_transport.h5
-rw-r--r--engines/titanic/game/phonograph.cpp5
-rw-r--r--engines/titanic/game/phonograph.h5
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.cpp5
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.h5
-rw-r--r--engines/titanic/game/ship_setting.cpp5
-rw-r--r--engines/titanic/game/ship_setting.h7
-rw-r--r--engines/titanic/game/transport/lift.cpp5
-rw-r--r--engines/titanic/game/transport/lift.h5
-rw-r--r--engines/titanic/game/transport/lift_indicator.h5
-rw-r--r--engines/titanic/game/transport/pellerator.cpp5
-rw-r--r--engines/titanic/game/transport/pellerator.h5
-rw-r--r--engines/titanic/game/up_lighter.cpp5
-rw-r--r--engines/titanic/game/up_lighter.h5
27 files changed, 123 insertions, 15 deletions
diff --git a/engines/titanic/game/light.cpp b/engines/titanic/game/light.cpp
index 4f5a492f2f..7a24391b0e 100644
--- a/engines/titanic/game/light.cpp
+++ b/engines/titanic/game/light.cpp
@@ -57,4 +57,9 @@ void CLight::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CLight::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CLight::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/light.h b/engines/titanic/game/light.h
index ea6073d038..650e6ba87e 100644
--- a/engines/titanic/game/light.h
+++ b/engines/titanic/game/light.h
@@ -24,10 +24,11 @@
#define TITANIC_LIGHT_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CLight : public CBackground {
+class CLight : public CBackground, CEnterRoomMsgTarget {
private:
int _fieldE0;
int _fieldE4;
@@ -37,6 +38,8 @@ private:
int _fieldF4;
int _fieldF8;
int _fieldFC;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CLight();
diff --git a/engines/titanic/game/light_switch.cpp b/engines/titanic/game/light_switch.cpp
index 605fab37f8..5e1b94ac18 100644
--- a/engines/titanic/game/light_switch.cpp
+++ b/engines/titanic/game/light_switch.cpp
@@ -50,4 +50,9 @@ void CLightSwitch::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CLightSwitch::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CLightSwitch::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/light_switch.h b/engines/titanic/game/light_switch.h
index 334cba75a6..fd2c392d13 100644
--- a/engines/titanic/game/light_switch.h
+++ b/engines/titanic/game/light_switch.h
@@ -24,16 +24,19 @@
#define TITANIC_LIGHT_SWITCH_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CLightSwitch : public CBackground {
+class CLightSwitch : public CBackground, CEnterRoomMsgTarget {
public:
static int _v1;
private:
int _fieldE0;
int _fieldE4;
int _fieldE8;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CLightSwitch();
diff --git a/engines/titanic/game/long_stick_dispenser.cpp b/engines/titanic/game/long_stick_dispenser.cpp
index 97981cc01d..237c1f6112 100644
--- a/engines/titanic/game/long_stick_dispenser.cpp
+++ b/engines/titanic/game/long_stick_dispenser.cpp
@@ -42,4 +42,10 @@ void CLongStickDispenser::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CLongStickDispenser::handleEvent(const CEnterRoomMsg &msg) {
+ _fieldC0 = 0;
+ _fieldC4 = 1;
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/long_stick_dispenser.h b/engines/titanic/game/long_stick_dispenser.h
index 30e3541087..75ada29a96 100644
--- a/engines/titanic/game/long_stick_dispenser.h
+++ b/engines/titanic/game/long_stick_dispenser.h
@@ -24,14 +24,17 @@
#define TITANIC_LONG_STICK_DISPENSER_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
class CLongStickDispenser : public CGameObject {
-public:
+private:
int _fieldBC;
int _fieldC0;
int _fieldC4;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CLongStickDispenser() : CGameObject(), _fieldBC(0),
diff --git a/engines/titanic/game/parrot/player_meets_parrot.cpp b/engines/titanic/game/parrot/player_meets_parrot.cpp
index 1d7bd657ac..70628b345a 100644
--- a/engines/titanic/game/parrot/player_meets_parrot.cpp
+++ b/engines/titanic/game/parrot/player_meets_parrot.cpp
@@ -34,4 +34,9 @@ void CPlayerMeetsParrot::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CPlayerMeetsParrot::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPlayerMeetsParrot::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/parrot/player_meets_parrot.h b/engines/titanic/game/parrot/player_meets_parrot.h
index d0c3b9d9f3..8572fd701d 100644
--- a/engines/titanic/game/parrot/player_meets_parrot.h
+++ b/engines/titanic/game/parrot/player_meets_parrot.h
@@ -24,10 +24,13 @@
#define TITANIC_PLAYER_MEETS_PARROT_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPlayerMeetsParrot : public CGameObject {
+class CPlayerMeetsParrot : public CGameObject, CEnterRoomMsgTarget {
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
diff --git a/engines/titanic/game/pet/pet_monitor.cpp b/engines/titanic/game/pet/pet_monitor.cpp
index 534fb3fb03..649ac978e9 100644
--- a/engines/titanic/game/pet/pet_monitor.cpp
+++ b/engines/titanic/game/pet/pet_monitor.cpp
@@ -34,4 +34,9 @@ void CPETMonitor::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CPETMonitor::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPETMonitor::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/pet/pet_monitor.h b/engines/titanic/game/pet/pet_monitor.h
index ff2209802d..97961ee929 100644
--- a/engines/titanic/game/pet/pet_monitor.h
+++ b/engines/titanic/game/pet/pet_monitor.h
@@ -24,10 +24,13 @@
#define TITANIC_PET_MONITOR_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPETMonitor : public CGameObject {
+class CPETMonitor : public CGameObject, CEnterRoomMsgTarget {
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
diff --git a/engines/titanic/game/pet/pet_position.cpp b/engines/titanic/game/pet/pet_position.cpp
index 80ccec74cd..aafc21beb2 100644
--- a/engines/titanic/game/pet/pet_position.cpp
+++ b/engines/titanic/game/pet/pet_position.cpp
@@ -34,4 +34,9 @@ void CPETPosition::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CPETPosition::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPETPosition::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/pet/pet_position.h b/engines/titanic/game/pet/pet_position.h
index 407a42f0ae..d72f42ca3a 100644
--- a/engines/titanic/game/pet/pet_position.h
+++ b/engines/titanic/game/pet/pet_position.h
@@ -24,10 +24,13 @@
#define TITANIC_PET_POSITION_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPETPosition : public CGameObject {
+class CPETPosition : public CGameObject, CEnterRoomMsgTarget {
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
diff --git a/engines/titanic/game/pet/pet_transport.cpp b/engines/titanic/game/pet/pet_transport.cpp
index 037e0b3278..40cc155c5b 100644
--- a/engines/titanic/game/pet/pet_transport.cpp
+++ b/engines/titanic/game/pet/pet_transport.cpp
@@ -34,4 +34,9 @@ void CPETTransport::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CPETTransport::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPETTransport::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/pet/pet_transport.h b/engines/titanic/game/pet/pet_transport.h
index 1aa6df8ced..1eb48322e2 100644
--- a/engines/titanic/game/pet/pet_transport.h
+++ b/engines/titanic/game/pet/pet_transport.h
@@ -24,10 +24,13 @@
#define TITANIC_PET_TRANSPORT_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPETTransport : public CGameObject {
+class CPETTransport : public CGameObject, CEnterRoomMsgTarget {
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
diff --git a/engines/titanic/game/phonograph.cpp b/engines/titanic/game/phonograph.cpp
index 3461e34cb6..2ff8ca99bb 100644
--- a/engines/titanic/game/phonograph.cpp
+++ b/engines/titanic/game/phonograph.cpp
@@ -55,4 +55,9 @@ void CPhonograph::load(SimpleFile *file) {
CMusicPlayer::load(file);
}
+bool CPhonograph::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPhonograph::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/phonograph.h b/engines/titanic/game/phonograph.h
index 14712e5c1b..3ba2d1ce87 100644
--- a/engines/titanic/game/phonograph.h
+++ b/engines/titanic/game/phonograph.h
@@ -24,10 +24,11 @@
#define TITANIC_PHONOGRAPH_H
#include "titanic/sound/music_player.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPhonograph : public CMusicPlayer {
+class CPhonograph : public CMusicPlayer, CEnterRoomMsgTarget {
protected:
CString _string2;
int _fieldE0;
@@ -36,6 +37,8 @@ protected:
int _fieldEC;
int _fieldF0;
int _fieldF4;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CPhonograph();
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();
diff --git a/engines/titanic/game/ship_setting.cpp b/engines/titanic/game/ship_setting.cpp
index d53c5289e6..7a3951df71 100644
--- a/engines/titanic/game/ship_setting.cpp
+++ b/engines/titanic/game/ship_setting.cpp
@@ -48,4 +48,9 @@ void CShipSetting::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CShipSetting::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CShipSetting::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/ship_setting.h b/engines/titanic/game/ship_setting.h
index a3b5d5f511..30780fd3d7 100644
--- a/engines/titanic/game/ship_setting.h
+++ b/engines/titanic/game/ship_setting.h
@@ -24,15 +24,18 @@
#define TITANIC_SHIP_SETTING_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CShipSetting : public CBackground {
-public:
+class CShipSetting : public CBackground, CEnterRoomMsgTarget {
+private:
CString _string3;
Common::Point _pos1;
CString _string4;
CString _string5;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CShipSetting();
diff --git a/engines/titanic/game/transport/lift.cpp b/engines/titanic/game/transport/lift.cpp
index 1e21b9f582..22201291aa 100644
--- a/engines/titanic/game/transport/lift.cpp
+++ b/engines/titanic/game/transport/lift.cpp
@@ -57,4 +57,9 @@ void CLift::load(SimpleFile *file) {
CTransport::load(file);
}
+bool CLift::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CLift::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/transport/lift.h b/engines/titanic/game/transport/lift.h
index b1cd48960e..42a340c61f 100644
--- a/engines/titanic/game/transport/lift.h
+++ b/engines/titanic/game/transport/lift.h
@@ -24,10 +24,11 @@
#define TITANIC_LIFT_H
#include "titanic/game/transport/transport.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CLift : public CTransport {
+class CLift : public CTransport, CEnterRoomMsgTarget {
private:
static int _v1;
static int _v2;
@@ -37,6 +38,8 @@ private:
static int _v6;
int _fieldF8;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CLift() : CTransport(), _fieldF8(1) {}
diff --git a/engines/titanic/game/transport/lift_indicator.h b/engines/titanic/game/transport/lift_indicator.h
index 2fe6e1a61e..de913c56a5 100644
--- a/engines/titanic/game/transport/lift_indicator.h
+++ b/engines/titanic/game/transport/lift_indicator.h
@@ -24,15 +24,18 @@
#define TITANIC_LIFT_INDICATOR_H
#include "titanic/game/transport/lift.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CLiftindicator : public CLift {
+class CLiftindicator : public CLift, CEnterRoomMsgTarget {
private:
int _fieldFC;
Common::Point _pos2;
int _field108;
int _field10C;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg) { return true; }
public:
CLASSDEF
CLiftindicator();
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index 400214a140..99c4db3160 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -43,4 +43,9 @@ void CPellerator::load(SimpleFile *file) {
CTransport::load(file);
}
+bool CPellerator::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CPellerator::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/transport/pellerator.h b/engines/titanic/game/transport/pellerator.h
index e72cbb4b9d..502af2430a 100644
--- a/engines/titanic/game/transport/pellerator.h
+++ b/engines/titanic/game/transport/pellerator.h
@@ -24,13 +24,16 @@
#define TITANIC_PELLERATOR_H
#include "titanic/game/transport/transport.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CPellerator : public CTransport {
+class CPellerator : public CTransport, CEnterRoomMsgTarget {
private:
static int _v1;
static int _v2;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
diff --git a/engines/titanic/game/up_lighter.cpp b/engines/titanic/game/up_lighter.cpp
index 0e6c4d88cc..beb159f967 100644
--- a/engines/titanic/game/up_lighter.cpp
+++ b/engines/titanic/game/up_lighter.cpp
@@ -48,4 +48,9 @@ void CUpLighter::load(SimpleFile *file) {
CDropTarget::load(file);
}
+bool CUpLighter::handleEvent(const CEnterRoomMsg &msg) {
+ warning("CUpLighter::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/up_lighter.h b/engines/titanic/game/up_lighter.h
index e24e712c1c..15fa14c16a 100644
--- a/engines/titanic/game/up_lighter.h
+++ b/engines/titanic/game/up_lighter.h
@@ -24,15 +24,18 @@
#define TITANIC_UP_LIGHTER_H
#include "titanic/core/drop_target.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CUpLighter : public CDropTarget {
+class CUpLighter : public CDropTarget, CEnterRoomMsgTarget {
private:
int _field118;
int _field11C;
int _field120;
int _field124;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CUpLighter();