diff options
author | Nipun Garg | 2019-06-21 07:47:33 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:53 +0200 |
commit | 3969a805abd803bb52b3589aa20f79654a8ea3e1 (patch) | |
tree | d1ee97f9748cad7bc8461e29a10a0a09d55aab15 /engines | |
parent | 1cae287783814cbfa4b11b4f1fecdd3b7b566c39 (diff) | |
download | scummvm-rg350-3969a805abd803bb52b3589aa20f79654a8ea3e1.tar.gz scummvm-rg350-3969a805abd803bb52b3589aa20f79654a8ea3e1.tar.bz2 scummvm-rg350-3969a805abd803bb52b3589aa20f79654a8ea3e1.zip |
HDB: Add AIEntLevel2 data
Addition includes constants, structs and a
pointer array
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index dc0b37fbee..6994a81729 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -30,6 +30,7 @@ namespace HDB { enum { kMaxAnimFrames = 8, kMaxDeathFrames = 12, + kMaxLevel2Ents = 60, kMaxInventory = 10, kMaxDeliveries = 5, kMaxWaypoints = 10, @@ -508,6 +509,17 @@ struct InvEnt { InvEnt() : keep(0), ent(NULL) {} }; +struct AIEntLevel2 { + uint16 x; + uint16 y; + Tile *draw; + AIEntity *e; + void(*aiDraw)(AIEntity *e, int x, int y); + uint32 stunnedWait; + + AIEntLevel2() : x(0), y(0), draw(NULL), e(NULL), aiDraw(NULL), stunnedWait(0) {} +}; + struct Waypoint { int x, y, level; @@ -718,6 +730,9 @@ public: int _numGooCups; int _numMonkeystones; + AIEntLevel2 *_entsLevel2[kMaxLevel2Ents]; + int _numLevel2Ents; + InvEnt *_inventory[kMaxInventory]; int _numInventory; |