aboutsummaryrefslogtreecommitdiff
path: root/src/game/GuardAI.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:51:44 -0700
committermaximius <none@none>2009-10-17 15:51:44 -0700
commite585187b248f48b3c6e9247b49fa07c6565d65e5 (patch)
tree637c5b7ddacf41040bef4ea4f75a97da64c6a9bc /src/game/GuardAI.h
parent26b5e033ffde3d161382fc9addbfa99738379641 (diff)
*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
Diffstat (limited to 'src/game/GuardAI.h')
-rw-r--r--src/game/GuardAI.h9
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;