From 8cf8a9663961c22a72c34fcc8e67b9228b50a387 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 30 Jun 2019 00:46:51 +0530 Subject: HDB: Add _deliveries data --- engines/hdb/ai-init.cpp | 4 ++-- engines/hdb/ai.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 56ecad26ca..feeac65ba6 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -673,8 +673,8 @@ AI::AI() { _triggerList = new Common::Array; _hereList = new Common::Array; - // REMOVE: Remove for final. Used here due to lack of a MENU - _numGems = _numGooCups = _numMonkeystones = _numInventory = 0; + warning("REMOVE: Remove for final. Used here due to lack of a MENU"); + _numGems = _numGooCups = _numMonkeystones = _numInventory = _numDeliveries = 0; _stunAnim = 0; _stunTimer = g_system->getMillis(); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index ba1461d536..41337082f1 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -572,6 +572,20 @@ struct InvEnt { InvEnt() : keep(0), ent(NULL) {} }; +struct DlvEnt { + char itemTextName[32]; + char itemGfxName[32]; + Tile *itemGfx; + + char destTextName[32]; + char destGfxName[32]; + Tile *destGfx; + + char id[32]; + + DlvEnt() : itemTextName(""), itemGfxName(""), itemGfx(NULL), destTextName(""), destGfxName(""), destGfx(NULL) {} +}; + struct Waypoint { int x, y, level; @@ -1072,6 +1086,9 @@ public: InvEnt _inventory[kMaxInventory]; int _numInventory; + DlvEnt _deliveries[kMaxDeliveries]; + int _numDeliveries; + Waypoint _waypoints[kMaxWaypoints]; int _numWaypoints; Tile *_waypointGfx[4]; // Animating waypoint gfx -- cgit v1.2.3