diff options
author | andrew <xdotftw@gmail.com> | 2014-03-25 19:59:33 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-25 19:59:33 +0100 |
commit | 2e28c09770a937b253680d7f62b9b2f4c8f4670c (patch) | |
tree | 60bc0e8da8940df8acd338692ac8a95327b2347e /src/Entities/Entity.h | |
parent | Plugins can set flying speed. (diff) | |
download | cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.gz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.bz2 cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.lz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.xz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.zst cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index df80093e5..e41f74b09 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -69,6 +69,7 @@ public: enum eEntityType { etEntity, // For all other types + etEnderCrystal, etPlayer, etPickup, etMonster, @@ -130,18 +131,19 @@ public: eEntityType GetEntityType(void) const { return m_EntityType; } - bool IsPlayer (void) const { return (m_EntityType == etPlayer); } - bool IsPickup (void) const { return (m_EntityType == etPickup); } - bool IsMob (void) const { return (m_EntityType == etMonster); } + bool IsEnderCrystal(void) const { return (m_EntityType == etEnderCrystal); } + bool IsPlayer (void) const { return (m_EntityType == etPlayer); } + bool IsPickup (void) const { return (m_EntityType == etPickup); } + bool IsMob (void) const { return (m_EntityType == etMonster); } bool IsFallingBlock(void) const { return (m_EntityType == etFallingBlock); } - bool IsMinecart (void) const { return (m_EntityType == etMinecart); } - bool IsBoat (void) const { return (m_EntityType == etBoat); } - bool IsTNT (void) const { return (m_EntityType == etTNT); } - bool IsProjectile (void) const { return (m_EntityType == etProjectile); } - bool IsExpOrb (void) const { return (m_EntityType == etExpOrb); } - bool IsFloater (void) const { return (m_EntityType == etFloater); } - bool IsItemFrame (void) const { return (m_EntityType == etItemFrame); } - bool IsPainting (void) const { return (m_EntityType == etPainting); } + bool IsMinecart (void) const { return (m_EntityType == etMinecart); } + bool IsBoat (void) const { return (m_EntityType == etBoat); } + bool IsTNT (void) const { return (m_EntityType == etTNT); } + bool IsProjectile (void) const { return (m_EntityType == etProjectile); } + bool IsExpOrb (void) const { return (m_EntityType == etExpOrb); } + bool IsFloater (void) const { return (m_EntityType == etFloater); } + bool IsItemFrame (void) const { return (m_EntityType == etItemFrame); } + bool IsPainting (void) const { return (m_EntityType == etPainting); } /// Returns true if the entity is of the specified class or a subclass (cPawn's IsA("cEntity") returns true) virtual bool IsA(const char * a_ClassName) const; |