aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_card.h
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-05 19:53:34 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit17f1903833491d1e80cb2091a0a0bd7dfe4280de (patch)
treeb6da57fefb1434427e794d503f138a8ff990d0c2 /engines/mohawk/riven_card.h
parent6b988670e89b01c554495058f9992bc7b8e25a2d (diff)
downloadscummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.tar.gz
scummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.tar.bz2
scummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.zip
MOHAWK: Remove the RivenHotspot enabled field
Diffstat (limited to 'engines/mohawk/riven_card.h')
-rw-r--r--engines/mohawk/riven_card.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/engines/mohawk/riven_card.h b/engines/mohawk/riven_card.h
index b4e41972f5..935ac05bc6 100644
--- a/engines/mohawk/riven_card.h
+++ b/engines/mohawk/riven_card.h
@@ -108,22 +108,34 @@ public:
/** Run one of the hotspot's scripts */
void runScript(uint16 scriptType);
+ /** Enable or disable the hotspot */
+ void enable(bool e);
+
+ /** Can the hotspot be interacted with? */
+ bool isEnabled() const;
+
+ /** Is the hotspot's purpose to zip to another card */
+ bool isZip() const;
+
uint16 blstID;
int16 name_resource;
uint16 index;
Common::Rect rect;
uint16 mouse_cursor;
- int16 zipModeHotspot;
-
- bool enabled; // TODO: Remove
private:
+ enum {
+ kFlagZip = 1,
+ kFlagEnabled = 2
+ };
+
void loadFromStream(Common::ReadStream *stream);
MohawkEngine_Riven *_vm;
uint16 _u0;
int16 _u1;
+ uint16 _flags;
RivenScriptList _scripts;
};