From 60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Wed, 30 Aug 2017 15:08:57 +0300 Subject: BehaviorAttacker --- src/Mobs/Monster.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Mobs/Monster.h') 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 -- cgit v1.2.3