summaryrefslogtreecommitdiffstats
path: root/source/Entity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 11:02:06 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 11:02:06 +0100
commit5eff323db2c9ebe18a354fba18359343426c60a7 (patch)
tree6cefb697dc81a6552182a32b44afb2428f211bd6 /source/Entity.h
parentMade FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it. (diff)
downloadcuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar.gz
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar.bz2
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar.lz
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar.xz
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.tar.zst
cuberite-5eff323db2c9ebe18a354fba18359343426c60a7.zip
Diffstat (limited to 'source/Entity.h')
-rw-r--r--source/Entity.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/Entity.h b/source/Entity.h
index f4f96df23..d18896ee7 100644
--- a/source/Entity.h
+++ b/source/Entity.h
@@ -11,7 +11,7 @@
-// Place this macro in the header of each cEntity descendant class and you're done :)
+// Place this macro in the public section of each cEntity descendant class and you're done :)
#define CLASS_PROTODEF(classname) \
virtual bool IsA(const char * a_ClassName) const override\
{ \
@@ -84,9 +84,10 @@ 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 == etMob); }
+ bool IsPlayer (void) const { return (m_EntityType == etPlayer); }
+ bool IsPickup (void) const { return (m_EntityType == etPickup); }
+ bool IsMob (void) const { return (m_EntityType == etMob); }
+ bool IsMinecart(void) const { return (m_EntityType == etMinecart); }
/// 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;