diff options
author | madmaxoft <github@xoft.cz> | 2013-08-30 17:29:46 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-30 17:29:46 +0200 |
commit | 88f3fe7f000992fe7a3c47d4e235f725e9b77b69 (patch) | |
tree | d6b7590cc71e3849ae3388760bb2c87b03d6c4be /source/Entities/Player.h | |
parent | Updated ProtectionAreas to the latest version. (diff) | |
download | cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar.gz cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar.bz2 cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar.lz cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar.xz cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.tar.zst cuberite-88f3fe7f000992fe7a3c47d4e235f725e9b77b69.zip |
Diffstat (limited to 'source/Entities/Player.h')
-rw-r--r-- | source/Entities/Player.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/Entities/Player.h b/source/Entities/Player.h index 4adf946db..82ff48954 100644 --- a/source/Entities/Player.h +++ b/source/Entities/Player.h @@ -73,7 +73,7 @@ public: void CancelChargingBow(void); /// Returns true if the player is currently charging the bow - bool IsChargingBox(void) const { return m_IsChargingBow; } + bool IsChargingBow(void) const { return m_IsChargingBow; } void SetTouchGround( bool a_bTouchGround ); inline void SetStance( const double a_Stance ) { m_Stance = a_Stance; } @@ -90,6 +90,12 @@ public: // tolua_begin + /// Returns the position where projectiles thrown by this player should start, player eye position + adjustment + Vector3d GetThrowStartPos(void) const; + + /// Returns the initial speed vector of a throw, with a 3D length of a_SpeedCoeff. + Vector3d GetThrowSpeed(double a_SpeedCoeff) const; + /// Returns the current gamemode. Partly OBSOLETE, you should use IsGameModeXXX() functions wherever applicable eGameMode GetGameMode(void) const { return m_GameMode; } |