diff options
author | tycho <tycho@hanoverdesktop> | 2013-12-20 01:13:04 +0100 |
---|---|---|
committer | tycho <tycho@hanoverdesktop> | 2013-12-20 01:13:04 +0100 |
commit | 7735a956f06821e30116df808f94801b5fbd19e6 (patch) | |
tree | 6c9c9c0b7484d1dd7343ba05c9b54b098e8104fd /src/Entities/Entity.h | |
parent | fixed D9025 (diff) | |
parent | Merge pull request #450 from mc-server/redstonefixes (diff) | |
download | cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.gz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.bz2 cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.lz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.xz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.zst cuberite-7735a956f06821e30116df808f94801b5fbd19e6.zip |
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 8d1692c98..7107a4a13 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -75,6 +75,7 @@ public: etTNT, etProjectile, etExpOrb, + etFloater, // Common variations etMob = etMonster, // DEPRECATED, use etMonster instead! @@ -129,6 +130,8 @@ public: 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); } /// 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; |