summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-11 00:06:05 +0200
committermadmaxoft <github@xoft.cz>2014-07-11 00:06:05 +0200
commit2bd486660ab4140c42da8f0f92304d64afc604e2 (patch)
treecd3948ae4f809d52494db1d3466b3d13c5637a1d /src/Entities/Player.h
parentFixed style consistency. (diff)
downloadcuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar.gz
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar.bz2
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar.lz
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar.xz
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.tar.zst
cuberite-2bd486660ab4140c42da8f0f92304d64afc604e2.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index f247ac2f9..7641b0c31 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -41,6 +41,7 @@ public:
cPlayer(cClientHandle * a_Client, const AString & a_PlayerName);
+
virtual ~cPlayer();
virtual void SpawnOn(cClientHandle & a_Client) override;
@@ -337,7 +338,15 @@ public:
bool MoveToWorld(const char * a_WorldName); // tolua_export
bool SaveToDisk(void);
+
+ /** Loads the player data from the disk file.
+ Returns true on success, false on failure. */
bool LoadFromDisk(void);
+
+ /** Loads the player data from the specified file.
+ Returns true on success, false on failure. */
+ bool LoadFromFile(const AString & a_FileName);
+
void LoadPermissionsFromDisk(void); // tolua_export
const AString & GetLoadedWorldName() { return m_LoadedWorldName; }