From f4e2fbcbc7fe2dbb184fa223df98328d0511caf4 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 14 Jul 2019 00:26:13 +0530 Subject: HDB: Add missing Gfx variable and Weapon functions --- engines/hdb/ai.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 3d20a1ed74..fcafdd8fc2 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -899,6 +899,19 @@ public: void movePlayer(uint16 buttons); void playerUse(); + void setPlayerWeapon(AIType w, Tile *gfx) { + _weaponSelected = w; + _weaponGfx = gfx; + } + AIType getPlayerWeapon() { + return _weaponSelected; + } + Tile *getPlayerWeaponGfx() { + return _weaponGfx; + } + Tile *getPlayerWeaponSelGfx() { + return _weaponSelGfx; + } AIEntity *getPlayer() { if (!_player) @@ -1146,6 +1159,7 @@ public: Picture *_slugAttackGfx[kMaxAnimFrames]; Tile *_weaponSelGfx; + Tile *_weaponGfx; AIType _weaponSelected; // Player Resources and Deliveries -- cgit v1.2.3