summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
committermadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
commitebea2b7efc1775de66e0c6b6ee66da6f9ad04422 (patch)
treef86e409e2daa70c3b00b66db0666c6e072451fad /src/Entities/Player.h
parentFixed a missing return value. (diff)
downloadcuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.gz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.bz2
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.lz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.xz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.zst
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h34
1 files changed, 21 insertions, 13 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 7641b0c31..8f9b46e0f 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -528,6 +528,24 @@ protected:
cStatManager m_Stats;
+ /** Flag representing whether the player is currently in a bed
+ Set by a right click on unoccupied bed, unset by a time fast forward or teleport */
+ bool m_bIsInBed;
+
+ /** How long till the player's inventory will be saved
+ Default save interval is #defined in PLAYER_INVENTORY_SAVE_INTERVAL */
+ unsigned int m_TicksUntilNextSave;
+
+ /** Flag used by food handling system to determine whether a teleport has just happened
+ Will not apply food penalties if found to be true; will set to false after processing
+ */
+ bool m_bIsTeleporting;
+
+ /** The UUID of the player, as read from the ClientHandle.
+ If no ClientHandle is given, the UUID is initialized to empty. */
+ AString m_UUID;
+
+
/** Sets the speed and sends it to the client, so that they are forced to move so. */
virtual void DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override;
@@ -554,19 +572,9 @@ protected:
/** Adds food exhaustion based on the difference between Pos and LastPos, sprinting status and swimming (in water block) */
void ApplyFoodExhaustionFromMovement();
- /** Flag representing whether the player is currently in a bed
- Set by a right click on unoccupied bed, unset by a time fast forward or teleport */
- bool m_bIsInBed;
-
- /** How long till the player's inventory will be saved
- Default save interval is #defined in PLAYER_INVENTORY_SAVE_INTERVAL */
- unsigned int m_TicksUntilNextSave;
-
- /** Flag used by food handling system to determine whether a teleport has just happened
- Will not apply food penalties if found to be true; will set to false after processing
- */
- bool m_bIsTeleporting;
-
+ /** Returns the filename for the player data based on the UUID given.
+ This can be used both for online and offline UUIDs. */
+ AString GetUUIDFileName(const AString & a_UUID);
} ; // tolua_export