aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-02 08:47:11 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-02 08:47:11 -0400
commita277430f0ddde9ea2583f4b0c44fcafe8a2528bf (patch)
tree32a4bf8f1b6a32e237a9c486555f8215a2213ca9 /src/entities.cpp
parentaa73352387af9efc77495ebdac6d19fb276dd75a (diff)
added inventories
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp2
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 *)){