summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
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