diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-03-08 18:41:46 +0100 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2018-03-08 18:41:46 +0100 |
| commit | df639d85e4e82add71432ea0a4cba91f238a30ba (patch) | |
| tree | 6fffc85dae24ae1a71db094231a928c5da41609c /src/server/game/AI/CreatureAI.h | |
| parent | 5df0a020fa54cc658ec6ae8e5df1cecd2cf3d3dc (diff) | |
Core/CreatureAI: CheckBoundary -> IsInBoundary, better reflects what it does. Also moved to public so spellscript can use it.
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
| -rw-r--r-- | src/server/game/AI/CreatureAI.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h index 94244445587..78b276325de 100644 --- a/src/server/game/AI/CreatureAI.h +++ b/src/server/game/AI/CreatureAI.h @@ -80,8 +80,6 @@ class TC_GAME_API CreatureAI : public UnitAI Creature* DoSummon(uint32 entry, WorldObject* obj, float radius = 5.0f, uint32 despawnTime = 30000, TempSummonType summonType = TEMPSUMMON_CORPSE_TIMED_DESPAWN); Creature* DoSummonFlyer(uint32 entry, WorldObject* obj, float flightZ, float radius = 5.0f, uint32 despawnTime = 30000, TempSummonType summonType = TEMPSUMMON_CORPSE_TIMED_DESPAWN); - bool CheckBoundary(Position const* who = nullptr) const; - public: enum EvadeReason { @@ -224,6 +222,7 @@ class TC_GAME_API CreatureAI : public UnitAI void SetBoundary(CreatureBoundary const* boundary, bool negativeBoundaries = false); static bool IsInBounds(CreatureBoundary const& boundary, Position const* who); + bool IsInBoundary(Position const* who = nullptr) const; protected: virtual void MoveInLineOfSight(Unit* /*who*/); |
