diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inventory.h | 13 |
1 files changed, 11 insertions, 2 deletions
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 |