From 443b77e47a7ef3a137e39c64abb277229a665d03 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Tue, 8 Dec 2015 15:56:17 -0500 Subject: Sword can now kill the first entity --- include/inventory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/inventory.h b/include/inventory.h index 5f05f3a..31b7d88 100644 --- a/include/inventory.h +++ b/include/inventory.h @@ -73,7 +73,7 @@ public: bool invHover = false; bool selected = false; bool mouseSel = false; - + bool usingi = false; Inventory(unsigned int s); // Creates an inventory of size 's' ~Inventory(void); // Free's allocated memory @@ -81,6 +81,7 @@ public: int addItem(ITEM_ID id,unsigned char count); // Add 'count' items with an id of 'id' to the inventory int takeItem(ITEM_ID id,unsigned char count); // Take 'count' items with an id of 'id' from the inventory int useItem(void); + bool detectCollision(vec2,vec2); void setSelection(unsigned int s); -- cgit v1.2.3