diff options
author | madmaxoft <github@xoft.cz> | 2014-01-24 08:55:41 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-24 08:55:41 +0100 |
commit | 8a254faaf7909fec390f1fda6e2cf060fda13462 (patch) | |
tree | 9617be2f24f8385ba20195d094800d3e5aaedd49 /src/Entities/Player.h | |
parent | Fixed flint&steel failure on the Y world edges. (diff) | |
parent | Fixed indentation once and for all. (diff) | |
download | cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.gz cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.bz2 cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.lz cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.xz cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.zst cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.zip |
Diffstat (limited to '')
-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 52ba2065c..46d0de69d 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -224,7 +224,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); |