diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2017-03-28 02:41:50 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2017-03-28 02:41:50 -0300 |
| commit | 83162fafa453c1d34fe23ddd86a43c3dff058300 (patch) | |
| tree | 91e6ccd7cd4248e68acc5842d5c7e9ea2a73466a /src/server/game/AI | |
| parent | 2f99fa09c9bacbad376d7a296c3311f94ec8a552 (diff) | |
Core/AI: Build fix
- Stop exposing DoublePosition constructor versions, they're only used for internal representation
- Moved IsInBounds function to public scope
Diffstat (limited to 'src/server/game/AI')
| -rw-r--r-- | src/server/game/AI/CreatureAI.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h index 5a8158f1a69..7e0f4142a6c 100644 --- a/src/server/game/AI/CreatureAI.h +++ b/src/server/game/AI/CreatureAI.h @@ -81,7 +81,6 @@ class TC_GAME_API CreatureAI : public UnitAI 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; - static bool IsInBounds(CreatureBoundary const* boundary, Position const* who); void SetBoundary(CreatureBoundary const* boundary) { _boundary = boundary; me->DoImmediateBoundaryCheck(); } public: @@ -197,6 +196,8 @@ class TC_GAME_API CreatureAI : public UnitAI virtual bool CheckInRoom(); CreatureBoundary const* GetBoundary() const { return _boundary; } + static bool IsInBounds(CreatureBoundary const* boundary, Position const* who); + protected: virtual void MoveInLineOfSight(Unit* /*who*/); |
