diff options
author | Paul Gilbert | 2014-03-25 22:07:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-25 22:07:33 -0400 |
commit | 407021d245f1e0446867824c6306337f18fe8eb3 (patch) | |
tree | 6f3f7815e20661bc624cfe8e15edc744324079bd /engines/mads/hotspots.h | |
parent | 7b15d2e379ce6ecfc131db803fbe704caaf8d385 (diff) | |
download | scummvm-rg350-407021d245f1e0446867824c6306337f18fe8eb3.tar.gz scummvm-rg350-407021d245f1e0446867824c6306337f18fe8eb3.tar.bz2 scummvm-rg350-407021d245f1e0446867824c6306337f18fe8eb3.zip |
MADS: Added a Facing enum for the player directions
Diffstat (limited to 'engines/mads/hotspots.h')
-rw-r--r-- | engines/mads/hotspots.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/mads/hotspots.h b/engines/mads/hotspots.h index 37c37fa1c2..a36993f1ac 100644 --- a/engines/mads/hotspots.h +++ b/engines/mads/hotspots.h @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "mads/events.h" +#include "mads/player.h" namespace MADS { @@ -36,7 +37,7 @@ public: int _seqIndex; Common::Rect _bounds; Common::Point _feetPos; - int _facing; + Facing _facing; int _descId; int _vocabId; int _articleNumber; @@ -60,7 +61,7 @@ public: Common::Array<MADS::DynamicHotspot>::size_type size() const { return _entries.size(); } DynamicHotspot &operator[](uint idx) { return _entries[idx]; } int add(int descId, int vocabId, int seqIndex, const Common::Rect &bounds); - int setPosition(int index, int xp, int yp, int facing); + int setPosition(int index, int xp, int yp, Facing facing); int setCursor(int index, CursorType cursor); void remove(int index); void clear(); @@ -72,7 +73,7 @@ class Hotspot { public: Common::Rect _bounds; Common::Point _feetPos; - int _facing; + Facing _facing; int _articleNumber; bool _active; CursorType _cursor; |