diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 10:40:13 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 10:40:13 +0200 |
commit | 191479cd81d4f5dc6bc31a1d0b023528b2a62d3f (patch) | |
tree | 6ae50c41a69a85c8f7f25e5249615a00307ba03b /source/Player.cpp | |
parent | Fixed previous commit (diff) | |
download | cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar.gz cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar.bz2 cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar.lz cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar.xz cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.tar.zst cuberite-191479cd81d4f5dc6bc31a1d0b023528b2a62d3f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Player.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index 776bf3e3f..d659c949a 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -325,6 +325,36 @@ void cPlayer::SendHealth() +void cPlayer::ClearInventoryPaintSlots(void) +{ + // Clear the list of slots that are being inventory-painted. Used by cWindow only + m_InventoryPaintSlots.clear(); +} + + + + + +void cPlayer::AddInventoryPaintSlot(int a_SlotNum) +{ + // Add a slot to the list for inventory painting. Used by cWindow only + m_InventoryPaintSlots.push_back(a_SlotNum); +} + + + + + +const cSlotNums & cPlayer::GetInventoryPaintSlots(void) const +{ + // Return the list of slots currently stored for inventory painting. Used by cWindow only + return m_InventoryPaintSlots; +} + + + + + void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI) { if (m_GameMode == eGameMode_Creative) |