diff options
Diffstat (limited to 'src/game/GuardAI.h')
-rw-r--r-- | src/game/GuardAI.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/GuardAI.h b/src/game/GuardAI.h index 3d6b07e998b..db1bfe0229d 100644 --- a/src/game/GuardAI.h +++ b/src/game/GuardAI.h @@ -17,11 +17,15 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef TRINITY_GUARDAI_H #define TRINITY_GUARDAI_H + #include "CreatureAI.h" #include "Timer.h" + class Creature; + class TRINITY_DLL_DECL GuardAI : public CreatureAI { enum GuardState @@ -29,14 +33,19 @@ class TRINITY_DLL_DECL GuardAI : public CreatureAI STATE_NORMAL = 1, STATE_LOOK_AT_VICTIM = 2 }; + public: + explicit GuardAI(Creature *c); + void MoveInLineOfSight(Unit *); void EnterEvadeMode(); void JustDied(Unit *); bool IsVisible(Unit *) const; + void UpdateAI(const uint32); static int Permissible(const Creature *); + private: uint64 i_victimGuid; GuardState i_state; |