diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-29 17:56:48 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-29 17:56:48 -0400 |
commit | 3766c45c62eeca442e9ab700c09c547f08615b62 (patch) | |
tree | 37e2c5c2c28f7a0c79eb39daa6276e018595be18 /src/inventory.cpp | |
parent | df12451f837854c816bed32ae0d962fba9601959 (diff) |
chests, item dropping
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index ede5eeb..7e8c94e 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -727,3 +727,11 @@ bool Inventory::detectCollision(vec2 one, vec2 two) { (void)two; return false; } + +const Item* Inventory::getCurrentItem(void) +{ + if (Items.size() > 0) + return Items[sel].first; + else + return nullptr; +} |