aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-30 00:46:51 +0530
committerEugene Sandulenko2019-09-03 17:17:05 +0200
commit8cf8a9663961c22a72c34fcc8e67b9228b50a387 (patch)
tree55040da93fa9b5325dec272dbe360519b95bebde /engines
parentea2e29317319d7166f9764ea085308395f8d31d6 (diff)
downloadscummvm-rg350-8cf8a9663961c22a72c34fcc8e67b9228b50a387.tar.gz
scummvm-rg350-8cf8a9663961c22a72c34fcc8e67b9228b50a387.tar.bz2
scummvm-rg350-8cf8a9663961c22a72c34fcc8e67b9228b50a387.zip
HDB: Add _deliveries data
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-init.cpp4
-rw-r--r--engines/hdb/ai.h17
2 files changed, 19 insertions, 2 deletions
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<Trigger *>;
_hereList = new Common::Array<HereT *>;
- // 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