From 72ee6a2bc5070ce1ee11b2732cabe601b702d6b8 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 25 Jun 2019 09:25:58 +0530 Subject: HDB: Add Inventory getter-setter functions --- engines/hdb/ai.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index a099deeca2..815a1ef3a9 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -819,6 +819,21 @@ public: // Inventory Functions bool addToInventory(AIEntity *e); void clearInventory(); + int getInvAmount() { + return _numInventory; + } + int getGemAmount() { + return _numGems; + } + int getMonkeystoneAmount() { + return _numMonkeystones; + } + int getGooCupAmount() { + return _numGooCups; + } + void setGemAmount(int amt) { + _numGems = amt; + } // Player Variables bool _playerDead; -- cgit v1.2.3