summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-04-04 07:53:14 +0200
committerMattes D <github@xoft.cz>2017-04-04 07:53:14 +0200
commitfb205174350792c5840897b63d7457b3536e0c27 (patch)
treeff5a7e38c3f56793a382a59287c352ec0769bc35 /src/Entities/Player.h
parentAdded a nullptr check to cEntity::IsA (#3659) (diff)
downloadcuberite-fb205174350792c5840897b63d7457b3536e0c27.tar
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.gz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.bz2
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.lz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.xz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.zst
cuberite-fb205174350792c5840897b63d7457b3536e0c27.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index b592913bd..058ece26e 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -139,6 +139,12 @@ public:
virtual void TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ) override;
+ // Sets the current gamemode, doesn't check validity, doesn't send update packets to client
+ void LoginSetGameMode(eGameMode a_GameMode);
+
+ // Updates player's capabilities - flying, visibility, etc. from their gamemode.
+ void SetCapabilities();
+
// tolua_begin
/** Prevent the player from moving and lock him into a_Location. */
@@ -174,12 +180,6 @@ public:
*/
void SetGameMode(eGameMode a_GameMode);
- // Sets the current gamemode, doesn't check validity, doesn't send update packets to client
- void LoginSetGameMode(eGameMode a_GameMode);
-
- // Updates player's capabilities - flying, visibility, etc. from their gamemode.
- void SetCapabilities();
-
/** Returns true if the player is in Creative mode, either explicitly, or by inheriting from current world */
bool IsGameModeCreative(void) const;