aboutsummaryrefslogtreecommitdiff
path: root/src/game/NullCreatureAI.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/NullCreatureAI.h
parentab6e9bd7b43b2bbce899a780cdd942ac137e7d99 (diff)
*Assign possessed AI and pet AI to charmed creatures.
--HG-- branch : trunk
Diffstat (limited to 'src/game/NullCreatureAI.h')
-rw-r--r--src/game/NullCreatureAI.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/NullCreatureAI.h b/src/game/NullCreatureAI.h
index 3c9c35cdc9d..b64bf43ce5f 100644
--- a/src/game/NullCreatureAI.h
+++ b/src/game/NullCreatureAI.h
@@ -36,6 +36,18 @@ class TRINITY_DLL_DECL PassiveAI : public CreatureAI
static int Permissible(const Creature *) { return PERMIT_BASE_IDLE; }
};
+class TRINITY_DLL_DECL PossessedAI : public PassiveAI
+{
+ public:
+ PossessedAI(Creature *c) : PassiveAI(c) {}
+
+ void UpdateAI(const uint32);
+ void EnterEvadeMode() {}
+
+ void JustDied(Unit*);
+ void KilledUnit(Unit* victim);
+};
+
class TRINITY_DLL_DECL NullCreatureAI : public PassiveAI
{
public: