summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2016-12-07 21:15:30 +0100
committerLukas Pioch <lukas@zgow.de>2016-12-10 13:32:11 +0100
commit0c10704d1f0e8ac1573ecc9ccdddd14690dcca38 (patch)
treefb810cb4529cabb39927da41d80491db009f7723 /src/Entities
parentPowered rails can kick-start minecarts (#3472) (diff)
downloadcuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar.gz
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar.bz2
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar.lz
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar.xz
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.tar.zst
cuberite-0c10704d1f0e8ac1573ecc9ccdddd14690dcca38.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 4833f8b5c..c9d445de7 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -191,7 +191,6 @@ public:
double GetHeadYaw (void) const { return m_HeadYaw; } // In degrees
double GetHeight (void) const { return m_Height; }
double GetMass (void) const { return m_Mass; }
- const Vector3d & GetPosition (void) const { return m_Position; }
double GetPosX (void) const { return m_Position.x; }
double GetPosY (void) const { return m_Position.y; }
double GetPosZ (void) const { return m_Position.z; }
@@ -199,7 +198,6 @@ public:
double GetPitch (void) const { return m_Rot.y; } // In degrees, [-180, +180), but normal client clips to [-90, +90]
double GetRoll (void) const { return m_Rot.z; } // In degrees, unused in current client
Vector3d GetLookVector(void) const;
- const Vector3d & GetSpeed (void) const { return m_Speed; }
double GetSpeedX (void) const { return m_Speed.x; }
double GetSpeedY (void) const { return m_Speed.y; }
double GetSpeedZ (void) const { return m_Speed.z; }
@@ -292,6 +290,12 @@ public:
// tolua_end
+ /** Exported in ManualBindings */
+ const Vector3d & GetPosition(void) const { return m_Position; }
+
+ /** Exported in ManualBindings */
+ const Vector3d & GetSpeed(void) const { return m_Speed; }
+
/** Destroy the entity without scheduling memory freeing. This should only be used by cChunk or cClientHandle for internal memory management. */
void DestroyNoScheduling(bool a_ShouldBroadcast);