From 9ab6025a0cc3ab31c476f0b478ac69bfadd7f670 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 29 Oct 2015 15:51:07 -0400 Subject: inventory visuals / item drop (Q) --- include/inventory.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/inventory.h b/include/inventory.h index cb3e59d..e27391a 100644 --- a/include/inventory.h +++ b/include/inventory.h @@ -5,8 +5,12 @@ #define DEBUG -enum ITEM_ID { // Contains item IDs for every item in the game, this is how items are stored. IDs are also used to lookup item strings - TEST_ITEM = 1, // A test item (duh) +/* + * A list of all item IDs. +*/ + +enum ITEM_ID { + TEST_ITEM = 1, SWORD_ITEM = 2 }; @@ -26,10 +30,15 @@ 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(ITEM_ID id); + + bool tossd; + int itemToss(void); void setSelection(unsigned int s); void draw(void); // Draws a text list of items in this inventory (should only be called for the player for now) + }; unsigned int initInventorySprites(void); // Loads as many inventory textures as it can find, returns count -- cgit v1.2.3