diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-02 19:20:59 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-02 19:20:59 +0200 |
commit | 079634d18cf63abad05db0fda9a4510aa75c0522 (patch) | |
tree | 4a9e3da9b43b229d03366a471fc6f2d16dd57995 /src | |
parent | Added a custom name test to the debuggers plugin. (diff) | |
download | cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar.gz cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar.bz2 cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar.lz cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar.xz cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.tar.zst cuberite-079634d18cf63abad05db0fda9a4510aa75c0522.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.h | 2 | ||||
-rw-r--r-- | src/Mobs/Monster.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index da64bd64f..49380c776 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -401,7 +401,7 @@ public: /** If true the player can fly even when he's not in creative. */ void SetCanFly(bool a_CanFly); - /** Is a custom name for this player set? */ + /** Returns true if the player has a custom name. */ bool HasCustomName(void) const { return !m_CustomName.empty(); } /** Returns the custom name of this player. If the player hasn't a custom name, it will return an empty string. */ diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index a777978f6..1d66d50e5 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -150,7 +150,7 @@ public: /** Returns true if the monster has a custom name. */ bool HasCustomName(void) const { return !m_CustomName.empty(); } - /** Gets the custom name of the monster. If no custom name is set, the function returns a empty string. */ + /** Gets the custom name of the monster. If no custom name is set, the function returns an empty string. */ const AString & GetCustomName(void) const { return m_CustomName; } /** Sets the custom name of the monster. You see the name over the monster. @@ -161,7 +161,7 @@ public: bool IsCustomNameAlwaysVisible(void) const { return m_CustomNameAlwaysVisible; } /** Sets the custom name visiblity of this monster. - If false, you only see the name when you sight the mob. If true, you always see the custom name. */ + If it's false, you only see the name when you sight the mob. If it's true, you always see the custom name. */ void SetCustomNameAlwaysVisible(bool a_CustomNameAlwaysVisible); /// Translates MobType enum to a string, empty string if unknown |