diff options
author | Nipun Garg | 2019-06-19 23:54:46 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:50 +0200 |
commit | 54b43f1aca3c9c76262afbeb73aacacaabf5b0b1 (patch) | |
tree | 3d1fa78a0d29e689eafdf753c22fd40f5f872e0e /engines/hdb | |
parent | 20cc6d4b473df8db25cb0336a74e223a8dfdeaeb (diff) | |
download | scummvm-rg350-54b43f1aca3c9c76262afbeb73aacacaabf5b0b1.tar.gz scummvm-rg350-54b43f1aca3c9c76262afbeb73aacacaabf5b0b1.tar.bz2 scummvm-rg350-54b43f1aca3c9c76262afbeb73aacacaabf5b0b1.zip |
HDB: Add player resources and inventory
Addition includes constants, structs and
member variables
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 1c2f07a90e..0b695ac14d 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -27,6 +27,11 @@ namespace HDB { +enum { + kMaxInventory = 10, + kMaxDeliveries = 5 +}; + enum AIType { AI_NONE, AI_GUY, @@ -374,6 +379,11 @@ struct AIEntTypeInfo { extern AIEntTypeInfo aiEntList[]; +struct InvEnt { + uint16 keep; + AIEntity ent; +}; + struct CineCommand { CineType cmdType; double x, y; @@ -479,6 +489,9 @@ public: // Waypoint & Movement Functions void lookAtXY(int x, int y); + // Inventory Functions + bool addToInventory(AIEntity *e); + // Cinematic Variables Common::Array<CineCommand *> _cine; @@ -494,6 +507,15 @@ private: bool _playerEmerging; bool _playerRunning; + // Player Resources and Deliveries + + int _numGems; + int _numGooCups; + int _numMonkeystones; + + InvEnt _inventory[kMaxInventory]; + int _numInventory; + // Cinematics Variables bool _cineAbortable; bool _cineAborted; |