summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-09 03:44:20 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:20 +0200
commit2574573c883fd7b5d19d19547f34dbef6820b5ea (patch)
tree879dbef1bc12ff5924f9b5b012b190f04c5fe63e /src/Mobs/Monster.h
parentApplies splash potion effects to mobs as well as players (diff)
downloadcuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar.gz
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar.bz2
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar.lz
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar.xz
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.tar.zst
cuberite-2574573c883fd7b5d19d19547f34dbef6820b5ea.zip
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r--src/Mobs/Monster.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h
index 7d7e90eb2..dbf95fbed 100644
--- a/src/Mobs/Monster.h
+++ b/src/Mobs/Monster.h
@@ -107,6 +107,9 @@ public:
/// Reads the monster configuration for the specified monster name and assigns it to this object.
void GetMonsterConfig(const AString & a_Name);
+ /** Returns whether this mob is undead (skeleton, zombie, etc.) */
+ bool IsUndead(void);
+
virtual void EventLosePlayer(void);
virtual void CheckEventLostPlayer(void);
@@ -178,6 +181,7 @@ protected:
/** Stores if mobile is currently moving towards the ultimate, final destination */
bool m_bMovingToDestination;
+
/** Finds the first non-air block position (not the highest, as cWorld::GetHeight does)
If current Y is nonsolid, goes down to try to find a solid block, then returns that + 1
If current Y is solid, goes up to find first nonsolid block, and returns that */
@@ -220,6 +224,8 @@ protected:
int m_LastGroundHeight;
/* =========================== */
+
+ virtual void HandleEntityEffects(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect) override;
float m_IdleInterval;
float m_DestroyTimer;