aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/MapManager.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-02-24 22:35:27 +0100
committerShauren <shauren.trinity@gmail.com>2018-03-25 19:28:36 +0300
commitbea7faa8f9d48894d836c7205b98e36126734d56 (patch)
treedf32e1a56518cb43445c5e708a6a855917bf6c62 /src/server/game/Maps/MapManager.h
parent4798d9ce7abd86be381af086763d8dbc9ed67ef3 (diff)
Core/Entities: Take terrain swaps into account when calculating LoS/height/area
Diffstat (limited to 'src/server/game/Maps/MapManager.h')
-rw-r--r--src/server/game/Maps/MapManager.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/server/game/Maps/MapManager.h b/src/server/game/Maps/MapManager.h
index 187e70d1bb2..892756db0d4 100644
--- a/src/server/game/Maps/MapManager.h
+++ b/src/server/game/Maps/MapManager.h
@@ -25,6 +25,7 @@
#include "GridStates.h"
#include "MapUpdater.h"
+class PhaseShift;
class Transport;
struct TransportCreatureProto;
@@ -38,20 +39,20 @@ class TC_GAME_API MapManager
Map* CreateMap(uint32 mapId, Player* player, uint32 loginInstanceId=0);
Map* FindMap(uint32 mapId, uint32 instanceId) const;
- uint32 GetAreaId(uint32 mapid, float x, float y, float z) const
+ uint32 GetAreaId(PhaseShift const& phaseShift, uint32 mapid, float x, float y, float z) const
{
Map const* m = const_cast<MapManager*>(this)->CreateBaseMap(mapid);
- return m->GetAreaId(x, y, z);
+ return m->GetAreaId(phaseShift, x, y, z);
}
- uint32 GetZoneId(uint32 mapid, float x, float y, float z) const
+ uint32 GetZoneId(PhaseShift const& phaseShift, uint32 mapid, float x, float y, float z) const
{
Map const* m = const_cast<MapManager*>(this)->CreateBaseMap(mapid);
- return m->GetZoneId(x, y, z);
+ return m->GetZoneId(phaseShift, x, y, z);
}
- void GetZoneAndAreaId(uint32& zoneid, uint32& areaid, uint32 mapid, float x, float y, float z)
+ void GetZoneAndAreaId(PhaseShift const& phaseShift, uint32& zoneid, uint32& areaid, uint32 mapid, float x, float y, float z)
{
Map const* m = const_cast<MapManager*>(this)->CreateBaseMap(mapid);
- m->GetZoneAndAreaId(zoneid, areaid, x, y, z);
+ m->GetZoneAndAreaId(phaseShift, zoneid, areaid, x, y, z);
}
void Initialize(void);