aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/pet/pet_pellerator.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-27 07:50:19 -0400
committerPaul Gilbert2016-08-27 07:50:19 -0400
commit795cdb6365bcf01a92950e6fee8632a3a749d165 (patch)
treef0224d5f26f4f27da0413c04c22ff41e18334c1b /engines/titanic/game/pet/pet_pellerator.cpp
parent7acd288e365c352602feff3cd03b610ddbe76603 (diff)
downloadscummvm-rg350-795cdb6365bcf01a92950e6fee8632a3a749d165.tar.gz
scummvm-rg350-795cdb6365bcf01a92950e6fee8632a3a749d165.tar.bz2
scummvm-rg350-795cdb6365bcf01a92950e6fee8632a3a749d165.zip
TITANIC: Implemented PET game classes
Diffstat (limited to 'engines/titanic/game/pet/pet_pellerator.cpp')
-rw-r--r--engines/titanic/game/pet/pet_pellerator.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/titanic/game/pet/pet_pellerator.cpp b/engines/titanic/game/pet/pet_pellerator.cpp
index a29942ca59..59516ebcde 100644
--- a/engines/titanic/game/pet/pet_pellerator.cpp
+++ b/engines/titanic/game/pet/pet_pellerator.cpp
@@ -24,6 +24,10 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CPETPellerator, CPETTransport)
+ ON_MESSAGE(PETActivateMsg)
+END_MESSAGE_MAP()
+
void CPETPellerator::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
CPETTransport::save(file, indent);
@@ -34,4 +38,24 @@ void CPETPellerator::load(SimpleFile *file) {
CPETTransport::load(file);
}
+bool CPETPellerator::PETActivateMsg(CPETActivateMsg *msg) {
+ CStatusChangeMsg statusMsg;
+
+ if (msg->_name == "PromenadeDeck")
+ statusMsg._newStatus = 0;
+ else if (msg->_name == "MusicRoom")
+ statusMsg._newStatus = 1;
+ else if (msg->_name == "Bar")
+ statusMsg._newStatus = 2;
+ else if (msg->_name == "TopOfWell")
+ statusMsg._newStatus = 4;
+ else if (msg->_name == "1stClassRestaurant")
+ statusMsg._newStatus = 5;
+ else if (msg->_name == "Arboretum")
+ statusMsg._newStatus = 6;
+
+ statusMsg.execute("PelleratorObject");
+ return true;
+}
+
} // End of namespace Titanic