diff options
author | Paul Gilbert | 2016-08-21 21:41:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-21 21:41:48 -0400 |
commit | e7d0047b5334bef6688a5f81c200630a58ff89c4 (patch) | |
tree | 62fb8f5e0a453d67674e304b4f8102d93d5cba02 /engines/titanic/game/floor_indicator.cpp | |
parent | 9ebd75742eb3a4fac4f6ff3ae421ec67be1f28eb (diff) | |
download | scummvm-rg350-e7d0047b5334bef6688a5f81c200630a58ff89c4.tar.gz scummvm-rg350-e7d0047b5334bef6688a5f81c200630a58ff89c4.tar.bz2 scummvm-rg350-e7d0047b5334bef6688a5f81c200630a58ff89c4.zip |
TITANIC: Implemented more game classes
Diffstat (limited to 'engines/titanic/game/floor_indicator.cpp')
-rw-r--r-- | engines/titanic/game/floor_indicator.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/game/floor_indicator.cpp b/engines/titanic/game/floor_indicator.cpp index 360232c38c..3afb03c59d 100644 --- a/engines/titanic/game/floor_indicator.cpp +++ b/engines/titanic/game/floor_indicator.cpp @@ -21,9 +21,14 @@ */ #include "titanic/game/floor_indicator.h" +#include "titanic/pet_control/pet_control.h" namespace Titanic { +BEGIN_MESSAGE_MAP(CFloorIndicator, CGameObject) + ON_MESSAGE(EnterViewMsg) +END_MESSAGE_MAP() + void CFloorIndicator::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CGameObject::save(file, indent); @@ -34,4 +39,10 @@ void CFloorIndicator::load(SimpleFile *file) { CGameObject::load(file); } +bool CFloorIndicator::EnterViewMsg(CEnterViewMsg *msg) { + int floorNum = MAX(1, getPetControl()->getRoomsFloorNum()); + loadFrame(floorNum - 1); + return true; +} + } // End of namespace Titanic |