diff options
author | Paul Gilbert | 2016-08-19 23:41:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-19 23:41:19 -0400 |
commit | 3c2c82fcd593e7b358f359de69070b6dd0e92150 (patch) | |
tree | 53251f5642b35626c606633cfe7baa1ce87b1fea /engines/titanic/game/elevator_action_area.cpp | |
parent | 449d8a02e05754e889e13ff721ff2c0cb995c486 (diff) | |
download | scummvm-rg350-3c2c82fcd593e7b358f359de69070b6dd0e92150.tar.gz scummvm-rg350-3c2c82fcd593e7b358f359de69070b6dd0e92150.tar.bz2 scummvm-rg350-3c2c82fcd593e7b358f359de69070b6dd0e92150.zip |
TITANIC: Implemented more game classes
Diffstat (limited to 'engines/titanic/game/elevator_action_area.cpp')
-rw-r--r-- | engines/titanic/game/elevator_action_area.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/game/elevator_action_area.cpp b/engines/titanic/game/elevator_action_area.cpp index 1cbff8d64d..d59c9b9e7a 100644 --- a/engines/titanic/game/elevator_action_area.cpp +++ b/engines/titanic/game/elevator_action_area.cpp @@ -21,9 +21,14 @@ */ #include "titanic/game/elevator_action_area.h" +#include "titanic/core/room_item.h" namespace Titanic { +BEGIN_MESSAGE_MAP(CElevatorActionArea, CGameObject) + ON_MESSAGE(MouseButtonDownMsg) +END_MESSAGE_MAP() + void CElevatorActionArea::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_value, indent); @@ -36,4 +41,10 @@ void CElevatorActionArea::load(SimpleFile *file) { CGameObject::load(file); } +bool CElevatorActionArea::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { + CServiceElevatorMsg elevMsg(_value); + elevMsg.execute(findRoom()->findByName("Service Elevator Entity")); + return true; +} + } // End of namespace Titanic |