summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 17:10:35 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-05-22 17:10:35 +0200
commit5e90976cd972e044248f71238d3e6b0672701870 (patch)
treec56305561b63dd385c32152d054bb02514972887 /src/Entities/Player.h
parentcEntity::SetSpeed(a_Vector3d) isn't virtualized anymore (diff)
downloadcuberite-5e90976cd972e044248f71238d3e6b0672701870.tar
cuberite-5e90976cd972e044248f71238d3e6b0672701870.tar.gz
cuberite-5e90976cd972e044248f71238d3e6b0672701870.tar.bz2
cuberite-5e90976cd972e044248f71238d3e6b0672701870.tar.lz
cuberite-5e90976cd972e044248f71238d3e6b0672701870.tar.xz
cuberite-5e90976cd972e044248f71238d3e6b0672701870.tar.zst
cuberite-5e90976cd972e044248f71238d3e6b0672701870.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index ee91beb4b..0f4773893 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -194,12 +194,14 @@ public:
/** Forces the player to move in the given direction. DEPRECATED! Use SetSpeed instead */
void ForceSetSpeed(const Vector3d & a_Speed); // tolua_export
- void SetSpeed(const Vector3d & a_Speed);
- virtual void SetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override;
-
- virtual void SetSpeedX(double a_SpeedX) override;
- virtual void SetSpeedY(double a_SpeedY) override;
- virtual void SetSpeedZ(double a_SpeedZ) override;
+ /** Sets the speed of the player and moves them in the given speed. */
+ void SetSpeed (const Vector3d & a_Speed);
+ virtual void SetSpeed (double a_SpeedX, double a_SpeedY, double a_SpeedZ) override;
+
+ /** Sets the speed for the X, Y or Z axis */
+ virtual void SetSpeedX (double a_SpeedX) override;
+ virtual void SetSpeedY (double a_SpeedY) override;
+ virtual void SetSpeedZ (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