diff options
author | Mike Hunsinger <mike.hunsinger@gmail.com> | 2014-01-23 08:27:39 +0100 |
---|---|---|
committer | Mike Hunsinger <mike.hunsinger@gmail.com> | 2014-01-23 08:27:39 +0100 |
commit | 41b05416c75b9cbe31406f04b58b5da9892872f8 (patch) | |
tree | 0c592551b36871ae695f3bc5396fc92e5701f6b8 /src/Entities/Player.h | |
parent | Fix a crash but somewhere... (diff) | |
download | cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.gz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.bz2 cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.lz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.xz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.zst cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index bf3ca08e8..71033ab77 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -214,7 +214,14 @@ public: /// Returns the full color code to use for this player, based on their primary group or set in m_Color AString GetColor(void) const; - void TossItem(bool a_bDraggingItem, char a_Amount = 1, short a_CreateType = 0, short a_CreateHealth = 0); + // tosses the item in the selected hotbar slot + void TossEquippedItem(char a_Amount = 1); + + // tosses the item held in hand (when in UI windows) + void TossHeldItem(char a_Amount = 1); + + // tosses a pickup newly created from a_Item + void TossPickup(const cItem & a_Item); /// Heals the player by the specified amount of HPs (positive only); sends health update void Heal(int a_Health); |