diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-21 08:49:48 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-21 08:49:48 -0400 |
commit | afdbe5de31c9ae1009d36710eb2b1c31ec44a9f5 (patch) | |
tree | 58812c528ea6d4995a6acad83a156c6fd5bd0407 /include/inventory.h | |
parent | 3432a970912dac94d9ba527f10f0354dcc396bf4 (diff) | |
parent | 51c6e601c3d6451294506b72213244e3aee9822f (diff) |
cleaning up ui code
Diffstat (limited to 'include/inventory.h')
-rw-r--r-- | include/inventory.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/inventory.h b/include/inventory.h index 69cf073..7369642 100644 --- a/include/inventory.h +++ b/include/inventory.h @@ -11,11 +11,11 @@ class Item{ public: std::string name,type; - + float width; float height; int maxStackSize; - + std::string texloc; Texturec *tex; @@ -45,16 +45,18 @@ public: Inventory(unsigned int s); // Creates an inventory of size 's' ~Inventory(void); // Free's allocated memory - + int addItem(std::string name,uint count); int takeItem(std::string name,uint count); int hasItem(std::string name); - + int useItem(void); bool detectCollision(vec2,vec2); - + void setSelection(unsigned int s); - + void setSelectionUp(); + void setSelectionDown(); + void draw(void); // Draws a text list of items in this inventory (should only be called for the player for now) }; |