summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:08:57 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:08:57 +0200
commit60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf (patch)
treec79d479defdcaee61cf9bc59bbc98047eb3f9b5c /src/Mobs/Monster.h
parentAttacker updates (diff)
downloadcuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.gz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.bz2
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.lz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.xz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.zst
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.zip
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r--src/Mobs/Monster.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h
index c893aed49..f97cd3e3f 100644
--- a/src/Mobs/Monster.h
+++ b/src/Mobs/Monster.h
@@ -220,6 +220,8 @@ public:
void AttachRightClickBehavior(cBehavior * a_Behavior);
void AttachDoTakeDamageBehavior(cBehavior * a_Behavior);
+ void PinBehavior(cBehavior * a_Behavior);
+ void UnpinBehavior(cBehavior * a_Behavior);
protected:
/** Whether or not m_NearestPlayer is stale. Always true at the beginning of a tick.
@@ -335,6 +337,7 @@ private:
cBehavior * m_CurrentTickControllingBehavior;
cBehavior * m_NewTickControllingBehavior;
+ cBehavior * m_PinnedBehavior;
enum TickState{NewControlStarting, OldControlEnding, Normal} m_TickControllingBehaviorState;
} ; // tolua_export