aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-23 20:17:26 -0400
committerPaul Gilbert2016-07-15 19:24:18 -0400
commitf7d6db05e849855cbd17a60c3bbc3b1e96d1453a (patch)
treea0399d8b1a146a174e2af38e7b4e52473bb2964a /engines/titanic/pet_control/pet_rooms_glyphs.h
parent54eac84dc5051c9833ea96f0be6c7b44ba262817 (diff)
downloadscummvm-rg350-f7d6db05e849855cbd17a60c3bbc3b1e96d1453a.tar.gz
scummvm-rg350-f7d6db05e849855cbd17a60c3bbc3b1e96d1453a.tar.bz2
scummvm-rg350-f7d6db05e849855cbd17a60c3bbc3b1e96d1453a.zip
TITANIC: Adding Pet Room glyph methods
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.h b/engines/titanic/pet_control/pet_rooms_glyphs.h
index bed167f934..cb937ec5c0 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.h
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.h
@@ -31,7 +31,7 @@ namespace Titanic {
enum RoomGlyphMode { RGM_0 = 0, RGM_1 = 1, RGM_2 = 2 };
class CPetRoomsGlyph : public CPetGlyph {
-protected:
+private:
uint _roomFlags;
int _field38;
RoomGlyphMode _mode;
@@ -43,6 +43,12 @@ protected:
CGameObject *_field54;
CGameObject *_field58;
CGameObject *_field5C;
+private:
+ /**
+ * Find the selected button under the given point, based on the buttons
+ * starting at a designated top/left position
+ */
+ int getSelection(const Point &topLeft, const Point &pt);
public:
CPetRoomsGlyph();
CPetRoomsGlyph(uint flags);
@@ -65,7 +71,7 @@ public:
/**
*
*/
- virtual void proc28(const Point &pt);
+ virtual void proc28(const Point &topLeft, const Point &pt);
virtual int proc29(const Point &pt);