diff options
author | Paul Gilbert | 2016-03-30 21:01:51 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-30 21:01:51 -0400 |
commit | 348b2d4b4bf9c6e8c6ca134ce7968eb9e9521a9c (patch) | |
tree | 9f6d760a91c7c86e8da8d8cae69a606d5e078860 /engines/titanic/pet_control/pet_control.h | |
parent | 08a801b1128d63e5c2cedee218a6dce7d6f04f28 (diff) | |
download | scummvm-rg350-348b2d4b4bf9c6e8c6ca134ce7968eb9e9521a9c.tar.gz scummvm-rg350-348b2d4b4bf9c6e8c6ca134ce7968eb9e9521a9c.tar.bz2 scummvm-rg350-348b2d4b4bf9c6e8c6ca134ce7968eb9e9521a9c.zip |
TITANIC: Fleshing out CPetVal
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r-- | engines/titanic/pet_control/pet_control.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h index fa21d4bf01..1bb2088e27 100644 --- a/engines/titanic/pet_control/pet_control.h +++ b/engines/titanic/pet_control/pet_control.h @@ -55,7 +55,7 @@ private: CString _string1; CTreeItem *_treeItem2; CString _string2; - int _field13A4; + CRoomItem *_hiddenRoom; Rect _oldBounds; private: /** @@ -77,8 +77,19 @@ private: * Called at the end of the post game-load handling */ void loaded(); + + /** + * Scan the specified room for an item by name + */ + CGameObject *findItemInRoom(CRoomItem *room, const CString &name) const; + + /** + * Returns a reference to the special hidden room container + */ + CRoomItem *getHiddenRoom(); public: CLASSDEF + CPetControl(); /** * Save the data for the class to file @@ -132,6 +143,12 @@ public: * Returns true if the current area can be changed */ bool canChangeArea() const { return _locked == 0; } + + /** + * Returns a game object used by the PET by name from within the + * special hidden room container + */ + CGameObject *getHiddenObject(const CString &name); }; } // End of namespace Titanic |