From 3766c45c62eeca442e9ab700c09c547f08615b62 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan <tullivan99@gmail.com> Date: Wed, 29 Jun 2016 17:56:48 -0400 Subject: chests, item dropping --- include/inventory.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/inventory.hpp') diff --git a/include/inventory.hpp b/include/inventory.hpp index a85e537..ca402b3 100644 --- a/include/inventory.hpp +++ b/include/inventory.hpp @@ -219,13 +219,16 @@ public: /*********************************************************************************** * OLD STUFF THAT NEEDS TO GET UPDATED * **********************************************************************************/ + +using InventorySlot = std::pair<Item *, unsigned int>; + class Inventory { private: unsigned int size; //how many slots our inventory has unsigned int sel; //what item is currently selected int os = 0; public: - std::vector<std::pair<Item*, uint>> Items; + std::vector<InventorySlot> Items; bool invOpen = false; //is the inventory open bool invOpening = false; //is the opening animation playing @@ -253,6 +256,8 @@ public: void setSelectionDown(); void draw(void); // Draws a text list of items in this inventory (should only be called for the player for now) + + const Item* getCurrentItem(void); }; void initInventorySprites(void); -- cgit v1.2.3