diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
commit | cd0081bb677c09b21fc5017dc1e01eaa18774698 (patch) | |
tree | 3a5ea294a105a298d91817a2599ae296b7c34d4b /src/Mobs/Monster.h | |
parent | Added better soulsand rims (diff) | |
parent | Updated core (diff) | |
download | cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.gz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.bz2 cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.lz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.xz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.zst cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index e5dcb0309..f04e45ac6 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -64,7 +64,7 @@ public: virtual bool ReachedDestination(void); // tolua_begin - eMonsterType GetMobType(void) const {return m_MobType; } + eMonsterType GetMobType(void) const { return m_MobType; } eFamily GetMobFamily(void) const; // tolua_end @@ -133,16 +133,19 @@ public: 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 + /** Translates MobType enum to a string, empty string if unknown */ static AString MobTypeToString(eMonsterType a_MobType); - /// Translates MobType string to the enum, mtInvalidType if not recognized + /** Translates MobType enum to the vanilla name of the mob, empty string if unknown. */ + static AString MobTypeToVanillaName(eMonsterType a_MobType); + + /** Translates MobType string to the enum, mtInvalidType if not recognized */ static eMonsterType StringToMobType(const AString & a_MobTypeName); - /// Returns the mob family based on the type + /** Returns the mob family based on the type */ static eFamily FamilyFromType(eMonsterType a_MobType); - /// Returns the spawn delay (number of game ticks between spawn attempts) for the given mob family + /** Returns the spawn delay (number of game ticks between spawn attempts) for the given mob family */ static int GetSpawnDelay(cMonster::eFamily a_MobFamily); // tolua_end |