diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 01:16:03 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 01:16:03 +0100 |
commit | 320cc74f0a1a8439f8f80a1fb45a19c950f42377 (patch) | |
tree | 9c05acedb74282b8a7133aca1d2ea23030c25c04 /src/Entities/Entity.h | |
parent | Merge pull request #684 from narroo/Bug402 (diff) | |
download | cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.gz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.bz2 cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.lz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.xz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.zst cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index b2edfc2b4..29ffd949d 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -81,6 +81,7 @@ public: etProjectile, etExpOrb, etFloater, + etPainting, // Common variations etMob = etMonster, // DEPRECATED, use etMonster instead! @@ -139,6 +140,7 @@ public: 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 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; |