summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-19 17:32:06 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-19 17:32:06 +0100
commit86bfed735e28fe86ec40e89e59eb868c4a0a9b19 (patch)
tree68a11fb935be0f3ab96dfafbaefa942378a5e532 /src/Entities/Entity.h
parentUpdate Contributing.md (diff)
downloadcuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.gz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.bz2
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.lz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.xz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.zst
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.zip
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r--src/Entities/Entity.h3
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;