aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/hotspots.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/hotspots.h')
-rw-r--r--engines/mads/hotspots.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/mads/hotspots.h b/engines/mads/hotspots.h
index ed18fbf252..a53b86d880 100644
--- a/engines/mads/hotspots.h
+++ b/engines/mads/hotspots.h
@@ -30,7 +30,6 @@ namespace MADS {
class MADSEngine;
-
class DynamicHotspot {
public:
bool _active;
@@ -74,6 +73,7 @@ public:
Common::Point _feetPos;
int _facing;
int _articleNumber;
+ bool _active;
CursorType _cursor;
int _vocabId;
int _verbId;
@@ -83,8 +83,15 @@ public:
};
class Hotspots : public Common::Array<Hotspot> {
+private:
+ MADSEngine *_vm;
public:
- void activate(int hotspotId, bool active);
+ Hotspots(MADSEngine *vm) : _vm(vm) {}
+
+ /**
+ * Sets the active state of a given hotspot
+ */
+ void activate(int vocabId, bool active);
};
} // End of namespace MADS