diff options
author | megamage <none@none> | 2009-04-14 19:54:49 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-14 19:54:49 -0500 |
commit | 3a658002180e30de4e7037a14e2b4fc0788b5d40 (patch) | |
tree | f62abe1bfc8ec2fbf5fff81c5eb73c6cb1e99a04 /src/game/ReactorAI.h | |
parent | 4f4c6aeaf533419a7933e8ff0ee6f09d976a04b7 (diff) |
[7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases. Author: VladimirMangos
Also send pointer to AI constructors ans mark constructors as explicit.
This changes allow move now some generic often used AI code to CreatureAI helper functions.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ReactorAI.h')
-rw-r--r-- | src/game/ReactorAI.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/ReactorAI.h b/src/game/ReactorAI.h index 1cc7da43743..baed6a8e6e1 100644 --- a/src/game/ReactorAI.h +++ b/src/game/ReactorAI.h @@ -29,7 +29,7 @@ class TRINITY_DLL_DECL ReactorAI : public CreatureAI { public: - ReactorAI(Creature *c) : CreatureAI(c), i_creature(*c), i_victimGuid(0) {} + explicit ReactorAI(Creature *c) : CreatureAI(c), i_victimGuid(0) {} void MoveInLineOfSight(Unit *); void EnterEvadeMode(); @@ -39,7 +39,6 @@ class TRINITY_DLL_DECL ReactorAI : public CreatureAI static int Permissible(const Creature *); private: - Creature &i_creature; uint64 i_victimGuid; }; #endif |