diff options
author | Paul Gilbert | 2014-03-22 21:55:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-22 21:55:36 -0400 |
commit | 0b351f79d8ad874ce07fed54eb745a277da28edc (patch) | |
tree | 6c86f2fe3b768b877655e181e2f6c2038a7eb5f8 /engines/mads/hotspots.h | |
parent | 06766e930b3c6a858d6dccced7845eeec44708f7 (diff) | |
download | scummvm-rg350-0b351f79d8ad874ce07fed54eb745a277da28edc.tar.gz scummvm-rg350-0b351f79d8ad874ce07fed54eb745a277da28edc.tar.bz2 scummvm-rg350-0b351f79d8ad874ce07fed54eb745a277da28edc.zip |
MADS: Further fixes for hotspot highlighting
Diffstat (limited to 'engines/mads/hotspots.h')
-rw-r--r-- | engines/mads/hotspots.h | 11 |
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 |