diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-02 08:47:11 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-02 08:47:11 -0400 |
commit | a277430f0ddde9ea2583f4b0c44fcafe8a2528bf (patch) | |
tree | 32a4bf8f1b6a32e237a9c486555f8215a2213ca9 /src/entities.cpp | |
parent | aa73352387af9efc77495ebdac6d19fb276dd75a (diff) |
added inventories
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 9d7ce95..d5328f0 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -89,6 +89,7 @@ Player::Player(){ //sets all of the player specific traits on object creation alive = true; ground = false; near = true; + inv = new Inventory(PLAYER_INV_SIZE); } void Player::interact(){ //the function that will cause the player to search for things to interact with @@ -104,6 +105,7 @@ NPC::NPC(){ //sets all of the NPC specific traits on object creation alive = true; canMove = true; near = false; + inv = new Inventory(NPC_INV_SIZE); } void NPC::addAIFunc(int (*func)(NPC *)){ |