diff options
| author | Nipun Garg | 2019-07-14 00:26:13 +0530 | 
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:17:19 +0200 | 
| commit | f4e2fbcbc7fe2dbb184fa223df98328d0511caf4 (patch) | |
| tree | 00c11e37e5e2fcd9531cd24c8b18e31b8285ead5 | |
| parent | 4216aa965c6484081f4eb37081a25486fdbe0ebe (diff) | |
| download | scummvm-rg350-f4e2fbcbc7fe2dbb184fa223df98328d0511caf4.tar.gz scummvm-rg350-f4e2fbcbc7fe2dbb184fa223df98328d0511caf4.tar.bz2 scummvm-rg350-f4e2fbcbc7fe2dbb184fa223df98328d0511caf4.zip  | |
HDB: Add missing Gfx variable and Weapon functions
| -rw-r--r-- | engines/hdb/ai.h | 14 | 
1 files changed, 14 insertions, 0 deletions
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  | 
