summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-21 12:02:31 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-21 12:02:31 +0100
commit231d6aed354737b01ff2f9f53a6c41c53cbee137 (patch)
treef73ced134d3a2099439d16a25366768899f46695
parentReplaced "const double &" with plain "double" for simplicity (diff)
downloadcuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar.gz
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar.bz2
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar.lz
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar.xz
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.tar.zst
cuberite-231d6aed354737b01ff2f9f53a6c41c53cbee137.zip
Diffstat (limited to '')
-rw-r--r--source/Inventory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Inventory.h b/source/Inventory.h
index bc6cb27f3..0ac839ac2 100644
--- a/source/Inventory.h
+++ b/source/Inventory.h
@@ -48,6 +48,13 @@ public:
const cItem & GetEquippedItem(void) const;
void SetEquippedSlot(int a_SlotNum); //tolua_export
short GetEquippedSlot(void) { return m_EquippedSlot; } //tolua_export
+
+ // tolua_begin
+ const cItem & GetEquippedHelmet (void) const { return m_Slots[c_ArmorOffset]; }
+ const cItem & GetEquippedChestplate(void) const { return m_Slots[c_ArmorOffset + 1]; }
+ const cItem & GetEquippedLeggings (void) const { return m_Slots[c_ArmorOffset + 2]; }
+ const cItem & GetEquippedBoots (void) const { return m_Slots[c_ArmorOffset + 3]; }
+ // tolua_end
void SendSlot( int a_SlotNum ); //tolua_export