summaryrefslogtreecommitdiffstats
path: root/source/Entities/Entity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-08 17:56:16 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-08 17:56:16 +0200
commit50e24fb75fec614bb195e5a322e2ceff9cdd2b1a (patch)
tree7b27adb5db66607df2beb623dbcca11490518786 /source/Entities/Entity.h
parentInitial boat support (diff)
downloadcuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar.gz
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar.bz2
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar.lz
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar.xz
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.tar.zst
cuberite-50e24fb75fec614bb195e5a322e2ceff9cdd2b1a.zip
Diffstat (limited to '')
-rw-r--r--source/Entities/Entity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Entities/Entity.h b/source/Entities/Entity.h
index b4777d249..156f737a3 100644
--- a/source/Entities/Entity.h
+++ b/source/Entities/Entity.h
@@ -92,6 +92,7 @@ public:
etMonster,
etFallingBlock,
etMinecart,
+ etBoat,
etTNT,
etProjectile,
@@ -119,6 +120,7 @@ public:
bool IsPickup (void) const { return (m_EntityType == etPickup); }
bool IsMob (void) const { return (m_EntityType == etMob); }
bool IsMinecart(void) const { return (m_EntityType == etMinecart); }
+ bool IsBoat (void) const { return (m_EntityType == etBoat); }
bool IsTNT (void) const { return (m_EntityType == etTNT); }
/// Returns true if the entity is of the specified class or a subclass (cPawn's IsA("cEntity") returns true)