diff options
author | Paul Gilbert | 2016-05-01 22:33:54 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:38:05 -0400 |
commit | c3dadcfe3b9d62eb19970b200e941f138f8abf1b (patch) | |
tree | 86cb10425d020ff41e0d469381cdebdebbf6c0f3 /engines/titanic/pet_control/pet_remote.h | |
parent | 8a6a5ad5c10b682bef145b414ebed386aa7df842 (diff) | |
download | scummvm-rg350-c3dadcfe3b9d62eb19970b200e941f138f8abf1b.tar.gz scummvm-rg350-c3dadcfe3b9d62eb19970b200e941f138f8abf1b.tar.bz2 scummvm-rg350-c3dadcfe3b9d62eb19970b200e941f138f8abf1b.zip |
TITANIC: Beginnings of PET Remote glyph classes
Diffstat (limited to 'engines/titanic/pet_control/pet_remote.h')
-rw-r--r-- | engines/titanic/pet_control/pet_remote.h | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_remote.h b/engines/titanic/pet_control/pet_remote.h index 5db7e7f912..6982c93aef 100644 --- a/engines/titanic/pet_control/pet_remote.h +++ b/engines/titanic/pet_control/pet_remote.h @@ -23,16 +23,14 @@ #ifndef TITANIC_PET_REMOTE_H #define TITANIC_PET_REMOTE_H +#include "common/array.h" #include "titanic/pet_control/pet_section.h" #include "titanic/pet_control/pet_glyphs.h" +#include "titanic/pet_control/pet_remote_glyphs.h" #include "titanic/pet_control/pet_text.h" -#include "titanic/pet_control/pet_gfx_element.h" namespace Titanic { -class CPetRemoteGlyphs : public CPetGlyphs { -}; - class CPetRemote : public CPetSection { private: CPetRemoteGlyphs _items; @@ -68,6 +66,26 @@ private: * Return the index of a room name in the master room names list */ int roomIndexOf(const CString &name); + + /** + * Return a list of remote action glyph indexes for a given room + */ + void getRemoteData(int roomIndex, Common::Array<uint> &indexes); + + /** + * Clear the list of rooms glyphs + */ + void clearGlyphs() { _items.clear(); } + + /** + * Load the room glyphs + */ + bool loadGlyphs(const Common::Array<uint> &indexes); + + /** + * Load a single room glyph + */ + bool loadGlyph(int glyphIndex); public: CPetRemote(); @@ -123,9 +141,14 @@ public: /** * Get an element from the section by a designated Id */ - virtual CPetElement *getElement(uint id); + virtual CPetGfxElement *getElement(uint id); virtual void proc38(int val); + + /** + * Generates a PET message + */ + void generateMessage(RemoteMessage msgNum, const CString &name, int num); }; } // End of namespace Titanic |