From edfaf7bc3c770c008be81f9ccb26835185d7d7d5 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 5 Jul 2009 21:40:51 +0000 Subject: Added an enum for the hotspot states svn-id: r42155 --- engines/gob/hotspots.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'engines/gob/hotspots.h') diff --git a/engines/gob/hotspots.h b/engines/gob/hotspots.h index 1801a10591..79a80526de 100644 --- a/engines/gob/hotspots.h +++ b/engines/gob/hotspots.h @@ -49,7 +49,18 @@ public: kTypeInput3NoLeave = 7, kTypeInput3Leave = 8, kTypeInputFloatNoLeave = 9, - kTypeInputFloatLeave = 10 + kTypeInputFloatLeave = 10, + kTypeEnable2 = 11, + kTypeEnable1 = 12, + kTypeClickEnter = 21 + }; + + enum State { + kStateFilledDisabled = 0xC, + kStateFilled = 0x8, + kStateDisabled = 0x4, + kStateType2 = 0x2, + kStateType1 = 0x1 }; Hotspots(GobEngine *vm); @@ -68,7 +79,7 @@ public: /** Push the current hotspots onto the stack. * - * @param all 0: Don't push global ones; 1: Push all; 2: Push only the ones with the correct state + * @param all 0: Don't push global ones; 1: Push all; 2: Push only the disabled ones * @param force Force a push although _shouldPush is false */ void push(uint8 all, bool force = false); @@ -115,12 +126,20 @@ private: bool isInput() const; bool isActiveInput() const; + bool isFilled() const; + bool isFilledEnabled() const; + bool isFilledNew() const; + bool isDisabled() const; + /** Are the specified coordinates in the hotspot? */ bool isIn(uint16 x, uint16 y) const; /** Does the specified button trigger the hotspot? */ bool buttonMatch(MouseButtons button) const; static uint8 getState(uint16 id); + + void disable(); + void enable(); }; struct StackEntry { -- cgit v1.2.3