aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/base
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-08-20 22:37:19 +0200
committerKudlaty <none@none>2009-08-20 22:37:19 +0200
commit2ea8cbb4f1f1d1b1f7b84ea8c10d8d7c9f969fa0 (patch)
tree9a413755d700e1b39ae184edb52ac160d95990f4 /src/bindings/scripts/base
parentf7bc620f4fa8fc7bd8752a2b10294e25d21041b8 (diff)
Merge [SD2]
r1356 Move HasFollowState() to public and move related Add/RemoveFollowState() to private (not intended that script can alter state directly) r1357 Add faint and revive for npc_ringo --HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/base')
-rw-r--r--src/bindings/scripts/base/follower_ai.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bindings/scripts/base/follower_ai.h b/src/bindings/scripts/base/follower_ai.h
index 1513cd4c49c..372fe38a581 100644
--- a/src/bindings/scripts/base/follower_ai.h
+++ b/src/bindings/scripts/base/follower_ai.h
@@ -43,16 +43,17 @@ class TRINITY_DLL_DECL FollowerAI : public ScriptedAI
void SetFollowPaused(bool bPaused); //if special event require follow mode to hold/resume during the follow
- protected:
bool HasFollowState(uint32 uiFollowState) { return (m_uiFollowState & uiFollowState); }
- void AddFollowState(uint32 uiFollowState) { m_uiFollowState |= uiFollowState; }
- void RemoveFollowState(uint32 uiFollowState) { m_uiFollowState &= ~uiFollowState; }
+ protected:
void SetFollowComplete(bool bWithEndEvent = false);
Player* GetLeaderForFollower();
private:
+ void AddFollowState(uint32 uiFollowState) { m_uiFollowState |= uiFollowState; }
+ void RemoveFollowState(uint32 uiFollowState) { m_uiFollowState &= ~uiFollowState; }
+
uint64 m_uiLeaderGUID;
uint32 m_uiUpdateFollowTimer;
uint32 m_uiFollowState;