summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 10:54:07 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 10:54:07 +0200
commit5ef6c8fe72f96dec20e2305ba190759c17512861 (patch)
tree06910de86f8769df8583cde5dafb9449b6d06d78 /src/Entities/Player.h
parentFixed MCADefrag compilation. (diff)
downloadcuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.gz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.bz2
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.lz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.xz
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.tar.zst
cuberite-5ef6c8fe72f96dec20e2305ba190759c17512861.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 78b534d83..43f27e045 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -191,9 +191,12 @@ public:
// Sets the current gamemode, doesn't check validity, doesn't send update packets to client
void LoginSetGameMode(eGameMode a_GameMode);
- /** Forces the player to move in the given direction. */
+ /** Forces the player to move in the given direction. DEPRECATED! Use SetSpeed instead */
void ForceSetSpeed(const Vector3d & a_Speed); // tolua_export
+ virtual void SetSpeed(const Vector3d & a_Speed) override;
+ virtual void SetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override
+
/** Tries to move to a new position, with attachment-related checks (y == -999) */
void MoveTo(const Vector3d & a_NewPos); // tolua_export