aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/hotspots.h
diff options
context:
space:
mode:
authorPaul Gilbert2007-08-05 02:56:51 +0000
committerPaul Gilbert2007-08-05 02:56:51 +0000
commitd03e3e9c870a7d0d28c6e43ee3f0fe0af2a4847d (patch)
tree38ce2911b264007a0abfca6b95775104b3bfd0bb /engines/lure/hotspots.h
parentd31d50ac3dbf5c12b126b4d26ba2cd15e7057dcc (diff)
downloadscummvm-rg350-d03e3e9c870a7d0d28c6e43ee3f0fe0af2a4847d.tar.gz
scummvm-rg350-d03e3e9c870a7d0d28c6e43ee3f0fe0af2a4847d.tar.bz2
scummvm-rg350-d03e3e9c870a7d0d28c6e43ee3f0fe0af2a4847d.zip
Added code for hotspot fields I didn't originally understand
svn-id: r28457
Diffstat (limited to 'engines/lure/hotspots.h')
-rw-r--r--engines/lure/hotspots.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/lure/hotspots.h b/engines/lure/hotspots.h
index 3f8bc544f6..fb3bb1478b 100644
--- a/engines/lure/hotspots.h
+++ b/engines/lure/hotspots.h
@@ -243,6 +243,11 @@ enum HotspotPrecheckResult {PC_EXECUTE, PC_NOT_IN_ROOM, PC_FAILED, PC_WAIT, PC_E
enum BarPlaceResult {BP_KEEP_TRYING, BP_GOT_THERE, BP_FAIL};
+struct DestStructure {
+ uint8 counter;
+ Point position;
+};
+
#define MAX_NUM_FRAMES 16
class Hotspot {
@@ -277,6 +282,7 @@ private:
bool _frameStartsUsed;
uint16 _frameStarts[MAX_NUM_FRAMES];
char _nameBuffer[MAX_HOTSPOT_NAME_SIZE];
+ DestStructure _tempDest;
// Runtime fields
uint16 _frameCtr;
@@ -516,6 +522,7 @@ public:
void doAction(Action action, HotspotData *hotspot);
CurrentActionStack &currentActions() { return _currentActions; }
PathFinder &pathFinder() { return _pathFinder; }
+ DestStructure &tempDest() { return _tempDest; }
uint16 frameCtr() { return _frameCtr; }
void setFrameCtr(uint16 value) { _frameCtr = value; }
void decrFrameCtr() { if (_frameCtr > 0) --_frameCtr; }