aboutsummaryrefslogtreecommitdiff
path: root/src/game/PossessedAI.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-12 14:15:44 -0600
committermegamage <none@none>2009-03-12 14:15:44 -0600
commit1fbfc6da645058a6da3073dafde0e6bca621e31c (patch)
treee8046c844ec548cdee29d8eee5c9ecfc1b9d9ec2 /src/game/PossessedAI.h
parentab6e9bd7b43b2bbce899a780cdd942ac137e7d99 (diff)
*Assign possessed AI and pet AI to charmed creatures.
--HG-- branch : trunk
Diffstat (limited to 'src/game/PossessedAI.h')
-rw-r--r--src/game/PossessedAI.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/game/PossessedAI.h b/src/game/PossessedAI.h
index c9ad643eea1..bbfacb6454c 100644
--- a/src/game/PossessedAI.h
+++ b/src/game/PossessedAI.h
@@ -21,33 +21,5 @@
#ifndef MANGOS_POSSESSEDAI_H
#define MANGOS_POSSESSEDAI_H
-#include "CreatureAI.h"
-class Creature;
-
-class TRINITY_DLL_DECL PossessedAI : public CreatureAI
-{
- public:
- PossessedAI(Creature *c) : CreatureAI(c), i_pet(*c), i_victimGuid(0) {}
-
- // Possessed creatures shouldn't aggro by themselves
- void MoveInLineOfSight(Unit *) {}
- void AttackStart(Unit *);
- void EnterEvadeMode() {}
- void JustDied(Unit*);
- void KilledUnit(Unit* victim);
-
- void UpdateAI(const uint32);
- // Never permit this to be used, it must always be initialized with Creature::InitPossessedAI()
- static int Permissible(const Creature *) { return PERMIT_BASE_NO; }
-
- private:
- bool _isVisible(Unit *) const;
- bool _needToStop(void) const;
- void _stopAttack(void);
-
- Creature &i_pet;
- uint64 i_victimGuid;
-};
#endif
-