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/AggressorAI.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/AggressorAI.h')
| -rw-r--r-- | src/game/AggressorAI.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/AggressorAI.h b/src/game/AggressorAI.h index a2a0230939a..983498716e6 100644 --- a/src/game/AggressorAI.h +++ b/src/game/AggressorAI.h @@ -36,7 +36,7 @@ class TRINITY_DLL_DECL AggressorAI : public CreatureAI public: - AggressorAI(Creature *c); + explicit AggressorAI(Creature *c); void EnterEvadeMode(); @@ -44,7 +44,6 @@ class TRINITY_DLL_DECL AggressorAI : public CreatureAI static int Permissible(const Creature *); private: - Creature &i_creature; uint64 i_victimGuid; AggressorState i_state; TimeTracker i_tracker; |
