diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-21 08:04:33 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-21 08:04:33 -0400 |
commit | bbdc924d409f74594bd8c8b0d4bf55d5e5f32209 (patch) | |
tree | 6bbe247053be8686ed0223225f4d2be76f75fed9 /include/inventory.h | |
parent | 569d23b5d4577fce1473a82ae7f8977205ff7f0f (diff) |
Created currency and new inventory
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) }; |