From a277430f0ddde9ea2583f4b0c44fcafe8a2528bf Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 2 Oct 2015 08:47:11 -0400 Subject: added inventories --- src/entities.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/entities.cpp') 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 *)){ -- cgit v1.2.3