AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Map.h"
Public Types | |
enum | EnterState { CAN_ENTER = 0 , CANNOT_ENTER_ALREADY_IN_MAP = 1 , CANNOT_ENTER_NO_ENTRY , CANNOT_ENTER_UNINSTANCED_DUNGEON , CANNOT_ENTER_DIFFICULTY_UNAVAILABLE , CANNOT_ENTER_NOT_IN_RAID , CANNOT_ENTER_CORPSE_IN_DIFFERENT_INSTANCE , CANNOT_ENTER_INSTANCE_BIND_MISMATCH , CANNOT_ENTER_TOO_MANY_INSTANCES , CANNOT_ENTER_MAX_PLAYERS , CANNOT_ENTER_ZONE_IN_COMBAT , CANNOT_ENTER_UNSPECIFIED_REASON } |
typedef MapRefMgr | PlayerList |
typedef std::unordered_multimap< ObjectGuid::LowType, Creature * > | CreatureBySpawnIdContainer |
typedef std::unordered_multimap< ObjectGuid::LowType, GameObject * > | GameObjectBySpawnIdContainer |
Public Types inherited from GridRefMgr< NGridType > | |
typedef LinkedListHead::Iterator< GridReference< NGridType > > | iterator |
Public Types inherited from RefMgr< TO, FROM > | |
typedef LinkedListHead::Iterator< Reference< TO, FROM > > | iterator |
Public Types inherited from LinkedListHead | |
typedef Iterator< LinkedListElement > | iterator |
Public Member Functions | |
Map (uint32 id, uint32 InstanceId, uint8 SpawnMode, Map *_parent=nullptr) | |
~Map () override | |
MapEntry const * | GetEntry () const |
bool | CanUnload (uint32 diff) |
virtual bool | AddPlayerToMap (Player *) |
virtual void | RemovePlayerFromMap (Player *, bool) |
virtual void | AfterPlayerUnlinkFromMap () |
template<class T > | |
bool | AddToMap (T *, bool checkTransport=false) |
template<class T > | |
void | RemoveFromMap (T *, bool) |
void | VisitNearbyCellsOf (WorldObject *obj, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &worldVisitor, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &largeGridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &largeWorldVisitor) |
void | VisitNearbyCellsOfPlayer (Player *player, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &worldVisitor, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &largeGridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &largeWorldVisitor) |
virtual void | Update (const uint32, const uint32, bool thread=true) |
float | GetVisibilityRange () const |
void | SetVisibilityRange (float range) |
virtual void | InitVisibilityDistance () |
void | PlayerRelocation (Player *, float x, float y, float z, float o) |
void | CreatureRelocation (Creature *creature, float x, float y, float z, float o) |
void | GameObjectRelocation (GameObject *go, float x, float y, float z, float o) |
void | DynamicObjectRelocation (DynamicObject *go, float x, float y, float z, float o) |
template<class T , class CONTAINER > | |
void | Visit (const Cell &cell, TypeContainerVisitor< T, CONTAINER > &visitor) |
bool | IsRemovalGrid (float x, float y) const |
bool | IsGridLoaded (float x, float y) const |
void | LoadGrid (float x, float y) |
void | LoadAllCells () |
bool | UnloadGrid (NGridType &ngrid) |
virtual void | UnloadAll () |
uint32 | GetId () const |
Map const * | GetParent () const |
std::shared_mutex & | GetMMapLock () const |
void | HandleDelayedVisibility () |
float | GetHeight (float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
float | GetGridHeight (float x, float y) const |
float | GetMinHeight (float x, float y) const |
Transport * | GetTransportForPos (uint32 phase, float x, float y, float z, WorldObject *worldobject=nullptr) |
void | GetFullTerrainStatusForPosition (uint32 phaseMask, float x, float y, float z, float collisionHeight, PositionFullTerrainStatus &data, uint8 reqLiquidType=MAP_ALL_LIQUIDS) |
LiquidData const | GetLiquidData (uint32 phaseMask, float x, float y, float z, float collisionHeight, uint8 ReqLiquidType) |
bool | GetAreaInfo (uint32 phaseMask, float x, float y, float z, uint32 &mogpflags, int32 &adtId, int32 &rootId, int32 &groupId) const |
uint32 | GetAreaId (uint32 phaseMask, float x, float y, float z) const |
uint32 | GetZoneId (uint32 phaseMask, float x, float y, float z) const |
void | GetZoneAndAreaId (uint32 phaseMask, uint32 &zoneid, uint32 &areaid, float x, float y, float z) const |
float | GetWaterLevel (float x, float y) const |
bool | IsInWater (uint32 phaseMask, float x, float y, float z, float collisionHeight) const |
bool | IsUnderWater (uint32 phaseMask, float x, float y, float z, float collisionHeight) const |
bool | HasEnoughWater (WorldObject const *searcher, float x, float y, float z) const |
bool | HasEnoughWater (WorldObject const *searcher, LiquidData const &liquidData) const |
void | MoveAllCreaturesInMoveList () |
void | MoveAllGameObjectsInMoveList () |
void | MoveAllDynamicObjectsInMoveList () |
void | RemoveAllObjectsInRemoveList () |
virtual void | RemoveAllPlayers () |
uint32 | GetInstanceId () const |
uint8 | GetSpawnMode () const |
virtual EnterState | CannotEnter (Player *, bool) |
const char * | GetMapName () const |
Difficulty | GetDifficulty () const |
bool | IsRegularDifficulty () const |
MapDifficulty const * | GetMapDifficulty () const |
bool | Instanceable () const |
bool | IsDungeon () const |
bool | IsNonRaidDungeon () const |
bool | IsRaid () const |
bool | IsRaidOrHeroicDungeon () const |
bool | IsHeroic () const |
bool | Is25ManRaid () const |
bool | IsBattleground () const |
bool | IsBattleArena () const |
bool | IsBattlegroundOrArena () const |
bool | IsWorldMap () const |
bool | GetEntrancePos (int32 &mapid, float &x, float &y) |
void | AddObjectToRemoveList (WorldObject *obj) |
void | AddObjectToSwitchList (WorldObject *obj, bool on) |
virtual void | DelayedUpdate (const uint32 diff) |
void | resetMarkedCells () |
bool | isCellMarked (uint32 pCellId) |
void | markCell (uint32 pCellId) |
void | resetMarkedCellsLarge () |
bool | isCellMarkedLarge (uint32 pCellId) |
void | markCellLarge (uint32 pCellId) |
bool | HavePlayers () const |
uint32 | GetPlayersCountExceptGMs () const |
void | AddWorldObject (WorldObject *obj) |
void | RemoveWorldObject (WorldObject *obj) |
void | SendToPlayers (WorldPacket const *data) const |
PlayerList const & | GetPlayers () const |
void | ScriptsStart (std::map< uint32, std::multimap< uint32, ScriptInfo > > const &scripts, uint32 id, Object *source, Object *target) |
Put scripts in the execution queue. More... | |
void | ScriptCommandStart (ScriptInfo const &script, uint32 delay, Object *source, Object *target) |
template<class T > | |
void | AddToActive (T *obj) |
template<class T > | |
void | RemoveFromActive (T *obj) |
template<class T > | |
void | SwitchGridContainers (T *obj, bool on) |
void | UpdateIteratorBack (Player *player) |
TempSummon * | SummonCreature (uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, bool visibleBySummonerOnly=false) |
GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true) |
GameObject * | SummonGameObject (uint32 entry, Position const &pos, float rotation0=0.0f, float rotation1=0.0f, float rotation2=0.0f, float rotation3=0.0f, uint32 respawnTime=100, bool checkTransport=true) |
void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
Corpse * | GetCorpse (ObjectGuid const guid) |
Creature * | GetCreature (ObjectGuid const guid) |
GameObject * | GetGameObject (ObjectGuid const guid) |
Transport * | GetTransport (ObjectGuid const guid) |
DynamicObject * | GetDynamicObject (ObjectGuid const guid) |
Pet * | GetPet (ObjectGuid const guid) |
MapStoredObjectTypesContainer & | GetObjectsStore () |
CreatureBySpawnIdContainer & | GetCreatureBySpawnIdStore () |
GameObjectBySpawnIdContainer & | GetGameObjectBySpawnIdStore () |
std::unordered_set< Corpse * > const * | GetCorpsesInCell (uint32 cellId) const |
Corpse * | GetCorpseByPlayer (ObjectGuid const &ownerGuid) const |
MapInstanced * | ToMapInstanced () |
MapInstanced const * | ToMapInstanced () const |
InstanceMap * | ToInstanceMap () |
InstanceMap const * | ToInstanceMap () const |
BattlegroundMap * | ToBattlegroundMap () |
BattlegroundMap const * | ToBattlegroundMap () const |
float | GetWaterOrGroundLevel (uint32 phasemask, float x, float y, float z, float *ground=nullptr, bool swim=false, float collisionHeight=DEFAULT_COLLISION_HEIGHT) const |
float | GetHeight (uint32 phasemask, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
bool | isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, PathGenerator *path, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
Check if a given source can reach a specific point following a path and normalize the coords. Use this method for long paths, otherwise use the overloaded method with the start coords when you need to do a quick check on small segments. More... | |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
validate the new destination and set reachable coords Check if a given unit can reach a specific point on a segment and set the correct dest coords NOTE: use this method with small segments. More... | |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, float startX, float startY, float startZ, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
bool | CheckCollisionAndGetValidCoords (WorldObject const *source, float startX, float startY, float startZ, float &destX, float &destY, float &destZ, bool failOnCollision=true) const |
validate the new destination and set coords Check if a given unit can face collisions in a specific segment More... | |
void | Balance () |
void | RemoveGameObjectModel (const GameObjectModel &model) |
void | InsertGameObjectModel (const GameObjectModel &model) |
bool | ContainsGameObjectModel (const GameObjectModel &model) const |
DynamicMapTree const & | GetDynamicMapTree () const |
bool | GetObjectHitPos (uint32 phasemask, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float modifyDist) |
float | GetGameObjectFloor (uint32 phasemask, float x, float y, float z, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
time_t | GetLinkedRespawnTime (ObjectGuid guid) const |
time_t | GetCreatureRespawnTime (ObjectGuid::LowType dbGuid) const |
time_t | GetGORespawnTime (ObjectGuid::LowType dbGuid) const |
void | SaveCreatureRespawnTime (ObjectGuid::LowType dbGuid, time_t &respawnTime) |
void | RemoveCreatureRespawnTime (ObjectGuid::LowType dbGuid) |
void | SaveGORespawnTime (ObjectGuid::LowType dbGuid, time_t &respawnTime) |
void | RemoveGORespawnTime (ObjectGuid::LowType dbGuid) |
void | LoadRespawnTimes () |
void | DeleteRespawnTimes () |
time_t | GetInstanceResetPeriod () const |
void | ScheduleCreatureRespawn (ObjectGuid, Milliseconds) |
void | LoadCorpseData () |
void | DeleteCorpseData () |
void | AddCorpse (Corpse *corpse) |
void | RemoveCorpse (Corpse *corpse) |
Corpse * | ConvertCorpseToBones (ObjectGuid const ownerGuid, bool insignia=false) |
void | RemoveOldCorpses () |
void | SendInitTransports (Player *player) |
void | SendRemoveTransports (Player *player) |
void | SendZoneDynamicInfo (Player *player) |
void | SendInitSelf (Player *player) |
void | PlayDirectSoundToMap (uint32 soundId, uint32 zoneId=0) |
void | SetZoneMusic (uint32 zoneId, uint32 musicId) |
void | SetZoneWeather (uint32 zoneId, WeatherState weatherId, float weatherGrade) |
void | SetZoneOverrideLight (uint32 zoneId, uint32 lightId, Milliseconds fadeInTime) |
void | UpdateEncounterState (EncounterCreditType type, uint32 creditEntry, Unit *source) |
void | LogEncounterFinished (EncounterCreditType type, uint32 creditEntry) |
void | DoForAllPlayers (std::function< void(Player *)> exec) |
GridMap * | GetGrid (float x, float y) |
void | EnsureGridCreated (const GridCoord &) |
bool | AllTransportsEmpty () const |
void | AllTransportsRemovePassengers () |
TransportsContainer const & | GetAllTransports () const |
template<HighGuid high> | |
ObjectGuid::LowType | GenerateLowGuid () |
void | AddUpdateObject (Object *obj) |
void | RemoveUpdateObject (Object *obj) |
std::size_t | GetActiveNonPlayersCount () const |
virtual std::string | GetDebugInfo () const |
template<> | |
void | AddToGrid (Creature *obj, Cell const &cell) |
template<> | |
void | AddToGrid (GameObject *obj, Cell const &cell) |
template<> | |
void | AddToGrid (DynamicObject *obj, Cell const &cell) |
template<> | |
void | AddToGrid (Corpse *obj, Cell const &cell) |
template<> | |
void | SwitchGridContainers (Creature *obj, bool on) |
template<> | |
void | SwitchGridContainers (GameObject *obj, bool on) |
template<> | |
void | DeleteFromWorld (Player *player) |
template<> | |
void | InitializeObject (Creature *) |
template<> | |
void | InitializeObject (GameObject *) |
template<> | |
bool | AddToMap (MotionTransport *obj, bool) |
template<> | |
void | RemoveFromMap (MotionTransport *obj, bool remove) |
template<> | |
void | AddToActive (Creature *c) |
template<> | |
void | AddToActive (DynamicObject *d) |
template<> | |
void | AddToActive (GameObject *d) |
template<> | |
void | RemoveFromActive (Creature *c) |
template<> | |
void | RemoveFromActive (DynamicObject *obj) |
template<> | |
void | RemoveFromActive (GameObject *obj) |
Public Member Functions inherited from GridRefMgr< NGridType > | |
GridReference< NGridType > * | getFirst () |
GridReference< NGridType > * | getLast () |
iterator | begin () |
iterator | end () |
iterator | rbegin () |
iterator | rend () |
Public Member Functions inherited from RefMgr< TO, FROM > | |
RefMgr ()=default | |
virtual | ~RefMgr () |
Reference< TO, FROM > * | getFirst () |
Reference< TO, FROM > const * | getFirst () const |
Reference< TO, FROM > * | getLast () |
Reference< TO, FROM > const * | getLast () const |
iterator | begin () |
iterator | end () |
iterator | rbegin () |
iterator | rend () |
void | clearReferences () |
Public Member Functions inherited from LinkedListHead | |
LinkedListHead () | |
bool | IsEmpty () const |
LinkedListElement * | getFirst () |
LinkedListElement const * | getFirst () const |
LinkedListElement * | getLast () |
LinkedListElement const * | getLast () const |
void | insertFirst (LinkedListElement *pElem) |
void | insertLast (LinkedListElement *pElem) |
uint32 | getSize () const |
void | incSize () |
void | decSize () |
Static Public Member Functions | |
static bool | ExistMap (uint32 mapid, int gx, int gy) |
static bool | ExistVMap (uint32 mapid, int gx, int gy) |
static void | DeleteRespawnTimesInDB (uint16 mapId, uint32 instanceId) |
Public Attributes | |
std::unordered_set< Unit * > | i_objectsForDelayedVisibility |
CreatureGroupHolderType | CreatureGroupHolder |
TaskScheduler | _creatureRespawnScheduler |
DataMap | CustomData |
Protected Types | |
typedef std::set< WorldObject * > | ActiveNonPlayers |
Protected Attributes | |
std::mutex | Lock |
std::mutex | GridLock |
std::shared_mutex | MMapLock |
MapEntry const * | i_mapEntry |
uint8 | i_spawnMode |
uint32 | i_InstanceId |
uint32 | m_unloadTimer |
float | m_VisibleDistance |
DynamicMapTree | _dynamicTree |
time_t | _instanceResetPeriod |
MapRefMgr | m_mapRefMgr |
MapRefMgr::iterator | m_mapRefIter |
ActiveNonPlayers | m_activeNonPlayers |
ActiveNonPlayers::iterator | m_activeNonPlayersIter |
TransportsContainer | _transports |
TransportsContainer::iterator | _transportsUpdateIter |
Private Types | |
typedef std::multimap< time_t, ScriptAction > | ScriptScheduleMap |
Friends | |
class | MapReference |
|
protected |
typedef std::unordered_multimap<ObjectGuid::LowType, Creature*> Map::CreatureBySpawnIdContainer |
typedef std::unordered_multimap<ObjectGuid::LowType, GameObject*> Map::GameObjectBySpawnIdContainer |
typedef MapRefMgr Map::PlayerList |
|
private |
enum Map::EnterState |
References GridMaps, InitVisibilityDistance(), m_parentMap, MAX_NUMBER_OF_GRIDS, setNGrid(), and sScriptMgr.
|
override |
References ASSERT, MMAP::MMapFactory::createOrGetMMapMgr(), GetId(), Object::GetTypeId(), i_InstanceId, i_worldObjects, WorldObject::IsWorldObject(), LOG_DEBUG, m_scriptSchedule, WorldObject::RemoveFromWorld(), WorldObject::ResetMap(), sScriptMgr, and MMAP::MMapMgr::unloadMapInstance().
|
inlineprivate |
References GetGameObjectBySpawnIdStore(), and WorldObject::GetMap().
Referenced by _ScriptProcessDoor(), and ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), LOG_ERROR, Object::ToCreature(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), LOG_ERROR, Object::ToCreature(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), LOG_ERROR, Object::ToPlayer(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), LOG_ERROR, Object::ToPlayer(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), Object::IsUnit(), LOG_ERROR, ObjectGuid::ToString(), and Object::ToUnit().
Referenced by ScriptsProcess().
|
inlineprivate |
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), LOG_ERROR, and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
References _FindGameObject(), ScriptInfo::command, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, ScriptInfo::GetDebugInfo(), GameObject::GetGoState(), GameObject::GetGoType(), Object::GetGUID(), GO_STATE_READY, ScriptInfo::GOGuid, Object::isType(), Object::IsUnit(), LOG_ERROR, ScriptInfo::ResetDelay, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_OPEN_DOOR, Object::ToGameObject(), ScriptInfo::ToggleDoor, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and GameObject::UseDoorOrButton().
Referenced by ScriptsProcess().
void Map::AddCorpse | ( | Corpse * | corpse | ) |
References _corpseBones, _corpsesByCell, _corpsesByPlayer, CORPSE_BONES, Corpse::GetCellCoord(), CoordPair< LIMIT >::GetId(), Corpse::GetOwnerGUID(), Corpse::GetType(), and WorldObject::SetMap().
Referenced by ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseData().
|
private |
References _creaturesToMove, MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_NONE.
Referenced by CreatureRelocation().
|
private |
References _dynamicObjectsToMove, MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_NONE.
Referenced by DynamicObjectRelocation().
|
private |
References _gameObjectsToMove, MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_NONE.
Referenced by GameObjectRelocation().
void Map::AddObjectToRemoveList | ( | WorldObject * | obj | ) |
References ASSERT, WorldObject::CleanupsBeforeDelete(), GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), and i_objectsToRemove.
Referenced by WorldObject::AddObjectToRemoveList(), and wp_commandscript::HandleWpModifyCommand().
void Map::AddObjectToSwitchList | ( | WorldObject * | obj, |
bool | on | ||
) |
References ABORT, ASSERT, GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), i_objectsToSwitch, Object::IsCreature(), and Object::IsGameObject().
Referenced by WorldObject::SetWorldObject().
|
virtual |
Reimplemented in InstanceMap, and BattlegroundMap.
References AddToGrid(), Player::AddToWorld(), ASSERT, Acore::ComputeCellCoord(), ConvertCorpseToBones(), EnsureGridLoaded(), Object::GetGUID(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Unit::IsAlive(), CoordPair< LIMIT >::IsCoordValid(), LOG_ERROR, Player::m_clientGUIDs, SendInitSelf(), SendInitTransports(), SendZoneDynamicInfo(), Player::SetMap(), sScriptMgr, ObjectGuid::ToString(), Player::UpdateObjectVisibility(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by InstanceMap::AddPlayerToMap(), BattlegroundMap::AddPlayerToMap(), and WorldSession::HandlePlayerLoginFromDB().
void Map::AddToActive | ( | Creature * | c | ) |
References AddToActiveHelper().
void Map::AddToActive | ( | DynamicObject * | d | ) |
References AddToActiveHelper().
void Map::AddToActive | ( | GameObject * | d | ) |
References AddToActiveHelper().
void Map::AddToActive | ( | T * | obj | ) |
References AddToActiveHelper().
Referenced by AddObjectHelper(), AddToMap(), and WorldObject::setActive().
|
inlineprivate |
References m_activeNonPlayers.
Referenced by AddToActive().
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded(), and WorldObject::IsWorldObject().
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), WorldObject::IsWorldObject(), and MovableMapObject::SetCurrentCell().
void Map::AddToGrid | ( | DynamicObject * | obj, |
Cell const & | cell | ||
) |
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), WorldObject::IsWorldObject(), and MovableMapObject::SetCurrentCell().
void Map::AddToGrid | ( | GameObject * | obj, |
Cell const & | cell | ||
) |
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), and MovableMapObject::SetCurrentCell().
|
private |
References Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), and Cell::GridY().
Referenced by AddPlayerToMap(), AddToMap(), MoveAllCreaturesInMoveList(), MoveAllDynamicObjectsInMoveList(), MoveAllGameObjectsInMoveList(), and PlayerRelocation().
bool Map::AddToMap | ( | MotionTransport * | obj, |
bool | |||
) |
References _transports, AddToActive(), GameObject::AddToWorld(), GridRefMgr< NGridType >::begin(), Object::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), Acore::ComputeCellCoord(), MapRefMgr::end(), EnsureGridLoaded(), Object::GetGUID(), GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), WorldObject::isActiveObject(), CoordPair< LIMIT >::IsCoordValid(), LinkedListHead::IsEmpty(), Object::IsInWorld(), LOG_ERROR, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
bool Map::AddToMap | ( | T * | obj, |
bool | checkTransport = false |
||
) |
References AddToActive(), AddToGrid(), ASSERT, Acore::ComputeCellCoord(), EnsureGridCreated(), EnsureGridLoaded(), GetTransportForPos(), Cell::GridX(), Cell::GridY(), InitializeObject(), CoordPair< LIMIT >::IsCoordValid(), LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Battleground::AddCreature(), Battleground::AddObject(), Player::BuildPlayerRepop(), ConvertCorpseToBones(), GameObject::Create(), MotionTransport::CreateGOPassenger(), MotionTransport::CreateNPCPassenger(), Player::CreatePet(), TransportMgr::CreateTransport(), MotionTransport::DelayedTeleportTransport(), Spell::EffectCreateTamedPet(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTameCreature(), Spell::EffectTransmitted(), GameEventMgr::GameEventSpawn(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), Pet::LoadPetFromDB(), GameObject::Refresh(), ScriptsProcess(), PoolGroup< T >::Spawn1Object(), Battlefield::SpawnCreature(), Battlefield::SpawnGameObject(), SummonCreature(), SummonGameObject(), WorldObject::SummonGameObject(), Player::SummonPet(), and GameObject::Update().
|
inline |
References _updateObjects.
Referenced by WorldObject::AddToObjectUpdate().
|
inline |
References i_worldObjects.
Referenced by WorldObject::SetMap(), and SwitchGridContainers().
|
virtual |
Reimplemented in InstanceMap.
Referenced by InstanceMap::AfterPlayerUnlinkFromMap(), WorldSession::HandleMoveWorldportAck(), and WorldSession::HandleSetRaidDifficultyOpcode().
bool Map::AllTransportsEmpty | ( | ) | const |
References _transports.
Referenced by MapInstanced::CreateInstanceForPlayer(), and UnloadAll().
void Map::AllTransportsRemovePassengers | ( | ) |
References _transports.
Referenced by MapInstanced::CreateInstanceForPlayer(), and UnloadAll().
|
inline |
|
inlineprivate |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link().
Referenced by EnsureGridCreated_i().
|
inlinevirtual |
Reimplemented in InstanceMap, BattlegroundMap, and MapInstanced.
References CAN_ENTER.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), and WorldSession::HandleMoveWorldportAck().
bool Map::CanReachPositionAndGetValidCoords | ( | WorldObject const * | source, |
float & | destX, | ||
float & | destY, | ||
float & | destZ, | ||
bool | failOnCollision = true , |
||
bool | failOnSlopes = true |
||
) | const |
validate the new destination and set reachable coords Check if a given unit can reach a specific point on a segment and set the correct dest coords NOTE: use this method with small segments.
failOnCollision | if true, the methods will return false when a collision occurs |
failOnSlopes | if true, the methods will return false when a non walkable slope is found |
References CanReachPositionAndGetValidCoords(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
bool Map::CanReachPositionAndGetValidCoords | ( | WorldObject const * | source, |
float | startX, | ||
float | startY, | ||
float | startZ, | ||
float & | destX, | ||
float & | destY, | ||
float & | destZ, | ||
bool | failOnCollision = true , |
||
bool | failOnSlopes = true |
||
) | const |
References Creature::CanEnterWater(), Unit::CanFly(), Creature::CanWalk(), CheckCollisionAndGetValidCoords(), WorldObject::GetCollisionHeight(), HasEnoughWater(), PathGenerator::IsWalkableClimb(), Object::ToCreature(), Object::ToPlayer(), and Object::ToUnit().
bool Map::CanReachPositionAndGetValidCoords | ( | WorldObject const * | source, |
PathGenerator * | path, | ||
float & | destX, | ||
float & | destY, | ||
float & | destZ, | ||
bool | failOnCollision = true , |
||
bool | failOnSlopes = true |
||
) | const |
Check if a given source can reach a specific point following a path and normalize the coords. Use this method for long paths, otherwise use the overloaded method with the start coords when you need to do a quick check on small segments.
References CanReachPositionAndGetValidCoords(), PathGenerator::GetPath(), and PathGenerator::GetStartPosition().
Referenced by CanReachPositionAndGetValidCoords(), MotionMaster::MoveBackwards(), and MotionMaster::MoveForwards().
|
inline |
References m_unloadTimer.
bool Map::CheckCollisionAndGetValidCoords | ( | WorldObject const * | source, |
float | startX, | ||
float | startY, | ||
float | startZ, | ||
float & | destX, | ||
float & | destY, | ||
float & | destZ, | ||
bool | failOnCollision = true |
||
) | const |
validate the new destination and set coords Check if a given unit can face collisions in a specific segment
References PathGenerator::CalculatePath(), CanFly, CONTACT_DISTANCE, VMAP::VMapFactory::createOrGetVMapMgr(), WorldObject::GetCollisionHeight(), GetGridHeight(), Unit::GetHoverHeight(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetObjectHitPos(), VMAP::VMapMgr2::GetObjectHitPos(), PathGenerator::GetPath(), PathGenerator::GetPathType(), WorldObject::GetPhaseMask(), INVALID_HEIGHT, Unit::IsFlying(), IsInWater(), Acore::IsValidMapCoord(), LOG_FATAL, PATHFIND_FARFROMPOLY_END, PATHFIND_INCOMPLETE, PATHFIND_NORMAL, PATHFIND_NOT_USING_PATH, PATHFIND_SHORTCUT, PathGenerator::SetUseRaycast(), Object::ToUnit(), WorldObject::UpdateAllowedPositionZ(), and VMAP_INVALID_HEIGHT_VALUE.
Referenced by CanReachPositionAndGetValidCoords().
|
inline |
References _dynamicTree, and DynamicMapTree::contains().
Corpse * Map::ConvertCorpseToBones | ( | ObjectGuid const | ownerGuid, |
bool | insignia = false |
||
) |
References AddCorpse(), AddToMap(), CharacterDatabase, CONFIG_DEATH_BONES_BG_OR_ARENA, CONFIG_DEATH_BONES_WORLD, CORPSE_END, CORPSE_FIELD_FLAGS, CORPSE_FIELD_ITEM, CORPSE_FIELD_OWNER, CORPSE_FLAG_BONES, CORPSE_FLAG_UNK2, Corpse::Create(), Corpse::DeleteFromDB(), EQUIPMENT_SLOT_END, Corpse::GetCellCoord(), GetCorpseByPlayer(), ObjectGuid::GetCounter(), Object::GetGUID(), Position::GetOrientation(), Corpse::GetOwnerGUID(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetUInt32Value(), IsBattlegroundOrArena(), IsRemovalGrid(), OBJECT_FIELD_TYPE, Position::Relocate(), RemoveCorpse(), Corpse::SetCellCoord(), Object::SetGuidValue(), WorldObject::SetPhaseMask(), Object::SetUInt32Value(), sWorld, and WorldObject::UpdatePositionData().
Referenced by AddPlayerToMap(), Player::RemovedInsignia(), and RemoveOldCorpses().
void Map::CreatureRelocation | ( | Creature * | creature, |
float | x, | ||
float | y, | ||
float | z, | ||
float | o | ||
) |
References AddCreatureToMoveList(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoaded(), MovableMapObject::GetCurrentCell(), Unit::GetVehicleKit(), Unit::IsVehicle(), Position::Relocate(), Vehicle::RelocatePassengers(), RemoveCreatureFromMoveList(), Unit::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by Creature::SetPosition(), StaticTransport::UpdatePassengerPositions(), MotionTransport::UpdatePassengerPositions(), and Unit::UpdatePosition().
|
virtual |
Reimplemented in MapInstanced.
References _transports, _transportsUpdateIter, MotionTransport::DelayedUpdate(), Object::IsInWorld(), and RemoveAllObjectsInRemoveList().
Referenced by MapInstanced::DelayedUpdate().
void Map::DeleteCorpseData | ( | ) |
References CHAR_DEL_CORPSES_FROM_MAP, CharacterDatabase, GetId(), GetInstanceId(), and PreparedStatementBase::SetData().
Referenced by InstanceMap::UnloadAll().
void Map::DeleteFromWorld | ( | Player * | player | ) |
References ObjectAccessor::RemoveObject(), and RemoveUpdateObject().
|
private |
Referenced by RemoveFromMap(), and RemovePlayerFromMap().
void Map::DeleteRespawnTimes | ( | ) |
References _creatureRespawnTimes, _goRespawnTimes, DeleteRespawnTimesInDB(), GetId(), and GetInstanceId().
Referenced by InstanceMap::UnloadAll().
References CHAR_DEL_CREATURE_RESPAWN_BY_INSTANCE, CHAR_DEL_GO_RESPAWN_BY_INSTANCE, CharacterDatabase, and PreparedStatementBase::SetData().
Referenced by InstanceSaveMgr::_ResetSave(), InstanceSaveMgr::DeleteInstanceSaveIfNeeded(), and DeleteRespawnTimes().
void Map::DoForAllPlayers | ( | std::function< void(Player *)> | exec | ) |
References GetPlayers().
Referenced by Battleground::_ProcessProgress(), WorldState::BuffAdalsSongOfBattle(), WorldState::BuffMagtheridonTeam(), BattlegroundSA::CaptureGraveyard(), WorldState::DispelAdalsSongOfBattle(), WorldState::DispelMagtheridonTeam(), npc_thrall_warchief::npc_thrall_warchiefAI::DoAction(), InstanceScript::DoCastSpellOnPlayers(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), InstanceScript::DoSendNotifyToInstance(), InstanceScript::DoStartTimedAchievement(), InstanceScript::DoStopTimedAchievement(), InstanceScript::DoUpdateAchievementCriteria(), BattlegroundSA::EventPlayerDamagedGO(), BattlegroundSA::EventPlayerUsedGO(), boss_azuregos::boss_azuregosAI::JustDied(), boss_rajaxx::JustDied(), boss_alar::JustDied(), boss_felblood_kaelthas::LapseAction(), BattlegroundSA::PostUpdateImpl(), spell_fire_festival_fortitude::PrepareSpellScript(), boss_azuregos::boss_azuregosAI::Reset(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::Reset(), npc_minigob_manabonk::SelectTargetInDalaran(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), Battleground::SpiritOfCompetitionEvent(), boss_nefarian::UpdateAI(), boss_cthun::UpdateAI(), npc_gunship::npc_gunshipAI::UpdateAI(), and npc_midsummer_bonfire::UpdateBonfireBlessingBuffs().
void Map::DynamicObjectRelocation | ( | DynamicObject * | go, |
float | x, | ||
float | y, | ||
float | z, | ||
float | o | ||
) |
References AddDynamicObjectToMoveList(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoaded(), MovableMapObject::GetCurrentCell(), Position::Relocate(), RemoveDynamicObjectFromMoveList(), WorldObject::SetPositionDataUpdate(), and WorldObject::UpdateObjectVisibility().
Referenced by StaticTransport::UpdatePassengerPositions(), and MotionTransport::UpdatePassengerPositions().
void Map::EnsureGridCreated | ( | const GridCoord & | p | ) |
References EnsureGridCreated_i(), getNGrid(), GridLock, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by AddToMap(), EnsureGridLoaded(), GetGrid(), and LoadMap().
|
private |
References buildNGridLinkage(), getNGrid(), GridMaps, LoadMapAndVMap(), MAX_NUMBER_OF_GRIDS, setNGrid(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by EnsureGridCreated().
|
private |
References ASSERT, Balance(), EnsureGridCreated(), GetId(), getNGrid(), Cell::GridX(), Cell::GridY(), i_InstanceId, isGridObjectDataLoaded(), ObjectGridLoader::LoadN(), LOG_DEBUG, and setGridObjectDataLoaded().
Referenced by AddPlayerToMap(), AddToMap(), CreatureRelocation(), DynamicObjectRelocation(), GameObjectRelocation(), LoadGrid(), MoveAllCreaturesInMoveList(), MoveAllDynamicObjectsInMoveList(), MoveAllGameObjectsInMoveList(), PlayerRelocation(), SummonCreature(), and Visit().
|
static |
References u_map_magic::asChar, u_map_magic::asUInt, LOG_ERROR, MapMagic, map_fileheader::mapMagic, MapVersionMagic, sWorld, and map_fileheader::versionMagic.
Referenced by MapMgr::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
|
static |
References VMAP::VMapFactory::createOrGetVMapMgr(), VMAP::FileNotFound, LOG_ERROR, VMAP::Success, sWorld, and VMAP::VersionMismatch.
Referenced by MapMgr::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
void Map::GameObjectRelocation | ( | GameObject * | go, |
float | x, | ||
float | y, | ||
float | z, | ||
float | o | ||
) |
References AddGameObjectToMoveList(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoaded(), MovableMapObject::GetCurrentCell(), Position::Relocate(), RemoveGameObjectFromMoveList(), WorldObject::SetPositionDataUpdate(), GameObject::UpdateModelPosition(), and WorldObject::UpdateObjectVisibility().
Referenced by GameObject::SetPosition(), StaticTransport::UpdatePassengerPositions(), MotionTransport::UpdatePassengerPositions(), and StaticTransport::UpdatePosition().
|
inline |
Referenced by Battleground::AddCreature(), Battleground::AddObject(), GameObject::Create(), Pet::CreateBaseAtTamed(), Spell::EffectAddFarsight(), Spell::EffectDuel(), Spell::EffectPersistentAA(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), Creature::LoadCreatureFromDB(), GameObject::LoadGameObjectFromDB(), Pet::LoadPetFromDB(), Battlefield::SpawnCreature(), Battlefield::SpawnGameObject(), WorldObject::SummonGameObject(), and Player::SummonPet().
|
inline |
References m_activeNonPlayers.
Referenced by debug_commandscript::HandleDebugObjectCountMap().
|
inline |
References GetAreaInfo(), GetGrid(), GetWMOAreaTableEntryByTripple(), GROUND_HEIGHT_TOLERANCE, i_mapEntry, INVALID_HEIGHT, and MapEntry::linked_zone.
Referenced by MapMgr::GetAreaId(), GetLiquidData(), GetZoneAndAreaId(), and GetZoneId().
bool Map::GetAreaInfo | ( | uint32 | phaseMask, |
float | x, | ||
float | y, | ||
float | z, | ||
uint32 & | mogpflags, | ||
int32 & | adtId, | ||
int32 & | rootId, | ||
int32 & | groupId | ||
) | const |
References _dynamicTree, VMAP::VMapFactory::createOrGetVMapMgr(), DynamicMapTree::GetAreaInfo(), VMAP::IVMapMgr::GetAreaInfo(), GetGrid(), and GetId().
Referenced by GetAreaId().
Corpse * Map::GetCorpse | ( | ObjectGuid const | guid | ) |
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetCorpse(), and ScriptsProcess().
|
inline |
References _corpsesByPlayer.
Referenced by ConvertCorpseToBones(), Player::GetCorpse(), and WorldSession::HandleMoveWorldportAck().
References _corpsesByCell.
Referenced by ObjectWorldLoader::Visit().
Creature * Map::GetCreature | ( | ObjectGuid const | guid | ) |
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by Battleground::_ProcessResurrect(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ActivatePrisoners(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::AddWave1(), boss_tyrannus::boss_tyrannusAI::boss_tyrannusAI(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::CallNextRajaxxLeader(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::CheckAchievementCriteriaMeet(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::CheckAchievementCriteriaMeet(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::CheckAchievementCriteriaMeet(), spell_sha_fire_nova::CheckFireTotem(), instance_molten_core::instance_molten_core_InstanceMapScript::CheckMajordomoExecutus(), boss_prince_valanar_icc::boss_prince_valanarAI::CheckRoom(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::CheckTombReset(), instance_stratholme::instance_stratholme_InstanceMapScript::CheckZiggurats(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::CleanupInstance(), violet_hold_trashAI::ClearDoorSealAura(), npc_hor_lich_king::npc_hor_lich_kingAI::DoAction(), npc_vh_void_sentry::npc_vh_void_sentryAI::DoAction(), instance_molten_core::instance_molten_core_InstanceMapScript::DoAction(), boss_ayamiss::DoAction(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::DoAction(), npc_pos_martin_or_gorkun_second::npc_pos_martin_or_gorkun_secondAI::DoAction(), boss_black_knight::boss_black_knightAI::DoAction(), boss_tyrannus::boss_tyrannusAI::DoAction(), InstanceScript::DoCastSpellOnPlayer(), WorldSession::DoLootRelease(), InstanceScript::DoRespawnCreature(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::DoSummonGrandChampion(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::DoWipe1(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectDestroyAllTotems(), Spell::EffectScriptEffect(), BattlegroundEY::EventTeamCapturedPoint(), Battleground::GetBGCreature(), boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), Battlefield::GetCreature(), InstanceScript::GetCreature(), ObjectAccessor::GetCreature(), npc_ranshalla::npc_ranshallaAI::GetSpeakerByEntry(), SmartScript::GetTargets(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBattlemasterJoinArena(), BattlegroundIC::HandleCapturedNodes(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::HandleDropAttempt(), spell_sha_fire_nova::HandleDummy(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::HandleOutro(), WorldSession::HandleTotemDestroyed(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), TempSummon::InitStats(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::InstanceCleanup(), instance_violet_hold::instance_violet_hold_InstanceMapScript::InstanceCleanup(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::InstanceCleanup(), instance_ulduar::instance_ulduar_InstanceMapScript::IsEncounterInProgress(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::IsWaveAllDead(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_rajaxx::JustDied(), boss_jormungarAI::JustDied(), npc_ulduar_hodir_priest::npc_ulduar_hodir_priestAI::JustDied(), npc_ulduar_hodir_druid::npc_ulduar_hodir_druidAI::JustDied(), npc_ulduar_hodir_shaman::npc_ulduar_hodir_shamanAI::JustDied(), npc_ulduar_hodir_mage::npc_ulduar_hodir_mageAI::JustDied(), boss_skarvald_the_constructor::JustDied(), boss_dalronn_the_controller::JustDied(), npc_ichor_globule::npc_ichor_globuleAI::JustDied(), npc_vh_void_sentry::npc_vh_void_sentryAI::JustDied(), boss_anubarak_trial::boss_anubarak_trialAI::JustEngagedWith(), npc_pos_deathwhisper_necrolyte::npc_pos_deathwhisper_necrolyteAI::JustEngagedWith(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith(), boss_skarvald_the_constructor::JustEngagedWith(), boss_dalronn_the_controller::JustEngagedWith(), boss_erekem::boss_erekemAI::JustEngagedWith(), npc_erekem_guard::npc_erekem_guardAI::JustEngagedWith(), Player::KilledMonsterCredit(), boss_professor_putricide::boss_professor_putricideAI::MovementInform(), npc_hor_lich_king::npc_hor_lich_kingAI::MovementInform(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::MoveNPCIfAlive(), BattlegroundAB::NodeOccupied(), npc_pos_leader_second::npc_pos_leader_secondAI::npc_pos_leader_secondAI(), npc_pos_martin_or_gorkun_second::npc_pos_martin_or_gorkun_secondAI::npc_pos_martin_or_gorkun_secondAI(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::OnCreatureCreate(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::OnCreatureCreate(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnCreatureCreate(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), instance_molten_core::instance_molten_core_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), instance_naxxramas::instance_naxxramas_InstanceMapScript::OnGameObjectRemove(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnPlayerEnter(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnPlayerEnter(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::OnPlayerEnter(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnUnitDeath(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnUnitDeath(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), BattlegroundAV::PopulateNode(), BattlegroundIC::PostUpdateImpl(), instance_blackrock_spire::instance_blackrock_spireMapScript::ProcessEvent(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::ProcessEvent(), instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::RandomizeCompositionsAndShow(), instance_zulgurub::instance_zulgurub_InstanceMapScript::RemoveHakkarPowerStack(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::ReplaceMoiraIfSaved(), boss_tyrannus::boss_tyrannusAI::Reset(), instance_zulaman::instance_zulaman_InstanceMapScript::ResetAkilzonGauntlet(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ResetPrisoners(), ScheduleCreatureRespawn(), ScriptsProcess(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SendAddsUpStairs(), Player::SendLoot(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetBossState(), instance_blackrock_spire::instance_blackrock_spireMapScript::SetBossState(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetBossState(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SetBossState(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_black_temple::instance_black_temple_InstanceMapScript::SetBossState(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::SetData(), instance_blackrock_spire::instance_blackrock_spireMapScript::SetData(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetData(), instance_karazhan::instance_karazhan_InstanceMapScript::SetData(), instance_scholomance::instance_scholomance_InstanceMapScript::SetData(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::SetData(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::SetData(), instance_dire_maul::instance_dire_maul_InstanceMapScript::SetData(), instance_wailing_caverns::instance_wailing_caverns_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), instance_oculus::instance_oculus_InstanceMapScript::SetData(), instance_halls_of_stone::instance_halls_of_stone_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetData(), instance_utgarde_pinnacle::instance_utgarde_pinnacle_InstanceMapScript::SetData(), instance_violet_hold::instance_violet_hold_InstanceMapScript::SetData(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SpawnAnubArak(), instance_ulduar::instance_ulduar_InstanceMapScript::SpawnLeviathanEncounterVehicles(), instance_zulaman::instance_zulaman_InstanceMapScript::StartAkilzonGauntlet(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), instance_molten_core::instance_molten_core_InstanceMapScript::SummonMajordomoExecutus(), instance_blackrock_spire::instance_blackrock_spireMapScript::SummonSolakarWave(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::TombOfSevenEvent(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::TombOfSevenReset(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::Update(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::Update(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), boss_black_knight::boss_black_knightAI::UpdateAI(), npc_fos_corrupted_soul_fragment::npc_fos_corrupted_soul_fragmentAI::UpdateAI(), npc_hor_leader::npc_hor_leaderAI::UpdateAI(), npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI(), npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI(), boss_krick::boss_krickAI::UpdateAI(), boss_tyrannus::boss_tyrannusAI::UpdateAI(), npc_pos_leader::npc_pos_leaderAI::UpdateAI(), npc_pos_after_first_boss::npc_pos_after_first_bossAI::UpdateAI(), npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::UpdateAI(), npc_pos_martin_or_gorkun_second::npc_pos_martin_or_gorkun_secondAI::UpdateAI(), npc_pos_leader_second::npc_pos_leader_secondAI::UpdateAI(), boss_prince_valanar_icc::boss_prince_valanarAI::UpdateAI(), boss_faerlina::boss_faerlinaAI::UpdateAI(), npc_power_spark::npc_power_sparkAI::UpdateAI(), boss_erekem::boss_erekemAI::UpdateAI(), boss_xevozz::boss_xevozzAI::UpdateAI(), npc_vh_teleportation_portal::npc_vh_teleportation_portalAI::UpdateAI(), npc_ichor_globule::npc_ichor_globuleAI::UpdateAI(), and Player::UpdateTriggerVisibility().
|
inline |
References _creatureBySpawnIdStore.
Referenced by Creature::AddToWorld(), OPvPCapturePoint::DelCreature(), PoolGroup< T >::Despawn1Object(), OPvPCapturePointNA::DespawnCreatures(), SmartScript::FindCreatureNear(), OPvPCapturePointNA::GetAliveGuardsCount(), ChatHandler::GetCreatureFromPlayerMapByDbGuid(), list_commandscript::HandleListCreatureCommand(), and Creature::LoadCreatureFromDB().
|
inline |
References _creatureRespawnTimes.
Referenced by GetLinkedRespawnTime(), and Creature::LoadCreatureFromDB().
|
virtual |
Reimplemented in InstanceMap.
References GetDifficulty(), GetId(), GetInstanceId(), and HavePlayers().
Referenced by InstanceMap::GetDebugInfo().
|
inline |
References GetSpawnMode().
Referenced by InstanceSaveMgr::_ResetOrWarnAll(), npc_ritual_channeler::npc_ritual_channelerAI::AttackStart(), spell_gen_consumption::CalculateDamage(), InstanceMap::CannotEnter(), Player::CanRollForItemInLFG(), Spell::CheckCast(), MapInstanced::CreateInstanceForPlayer(), boss_twin_valkyrAI::DoAction(), GetDebugInfo(), GetMapDifficulty(), spell_valkyr_touch_aura::HandleEffectPeriodic(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), Player::inRandomLfgDungeon(), IsRegularDifficulty(), LogEncounterFinished(), npc_frost_sphere::npc_frost_sphereAI::npc_frost_sphereAI(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_essence_of_twin::OnGossipHello(), lfg::LFGPlayerScript::OnMapChanged(), Player::RewardReputation(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetData(), boss_jaraxxus::boss_jaraxxusAI::SpellHit(), Player::StoreRaidMapDifficulty(), boss_gluth::boss_gluthAI::UpdateAI(), and UpdateEncounterState().
|
inline |
References _dynamicTree.
Referenced by BattlegroundRV::CheckPositionForUnit(), and MysticBuffetTargetFilter::operator()().
DynamicObject * Map::GetDynamicObject | ( | ObjectGuid const | guid | ) |
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetDynamicObject().
|
inline |
References MapEntry::GetEntrancePos(), and i_mapEntry.
|
inline |
void Map::GetFullTerrainStatusForPosition | ( | uint32 | phaseMask, |
float | x, | ||
float | y, | ||
float | z, | ||
float | collisionHeight, | ||
PositionFullTerrainStatus & | data, | ||
uint8 | reqLiquidType = MAP_ALL_LIQUIDS |
||
) |
References AREA_FLAG_INSIDE, AREA_FLAG_OUTSIDE, PositionFullTerrainStatus::areaId, WMOAreaTableEntry::areaId, VMAP::AreaAndLiquidData::areaInfo, VMAP::VMapFactory::createOrGetVMapMgr(), LiquidData::DepthLevel, LiquidData::Entry, LiquidData::Flags, WMOAreaTableEntry::Flags, VMAP::AreaAndLiquidData::floorZ, PositionFullTerrainStatus::floorZ, GridMap::getArea(), VMAP::IVMapMgr::GetAreaAndLiquidData(), GetGrid(), GridMap::getHeight(), GetId(), GridMap::GetLiquidData(), GetWMOAreaTableEntryByTripple(), GROUND_HEIGHT_TOLERANCE, i_mapEntry, INVALID_HEIGHT, IsInWMOInterior(), LiquidData::Level, MapEntry::linked_zone, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_IN_WATER, LIQUID_MAP_NO_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, VMAP::AreaAndLiquidData::liquidInfo, PositionFullTerrainStatus::liquidInfo, AreaTableEntry::LiquidTypeOverride, PositionFullTerrainStatus::outdoors, sAreaTableStore, sLiquidTypeStore, LiquidData::Status, VMAP_INVALID_HEIGHT, and AreaTableEntry::zone.
Referenced by Creature::Create(), and WorldObject::UpdatePositionData().
GameObject * Map::GetGameObject | ( | ObjectGuid const | guid | ) |
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by boss_sjonnir::boss_sjonnirAI::ActivatePipe(), Spell::CheckCast(), Player::CheckDuelDistance(), Spell::CheckEffectTarget(), instance_stratholme::instance_stratholme_InstanceMapScript::CheckZiggurats(), boss_hodir::boss_hodirAI::DoAction(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::DoAction(), Spell::DoAllEffectOnTarget(), npc_rocknot::npc_rocknotAI::DoGo(), WorldSession::DoLootRelease(), InstanceScript::DoRespawnGameObject(), InstanceScript::DoUseDoorOrButton(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore(), Player::DuelComplete(), Spell::EffectSummonObject(), Battleground::GetBGObject(), Battlefield::GetGameObject(), InstanceScript::GetGameObject(), ObjectAccessor::GetGameObject(), Player::GetNextQuest(), BattlegroundRV::GetPillarAtPosition(), GetTransport(), WorldSession::HandleAutostoreLootItemOpcode(), InstanceScript::HandleGameObject(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMovementOpcodes(), boss_urok_doomhowl::boss_urok_doomhowlAI::InitializeAI(), instance_violet_hold::instance_violet_hold_InstanceMapScript::InstanceCleanup(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::InstanceCleanup(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_rend_blackhand::boss_rend_blackhandAI::JustDied(), boss_shade_of_aran::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), boss_sjonnir::boss_sjonnirAI::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_faerlina::boss_faerlinaAI::JustDied(), boss_four_horsemen::boss_four_horsemenAI::JustDied(), boss_gothik::boss_gothikAI::JustDied(), boss_kelthuzad::boss_kelthuzadAI::JustDied(), boss_noth::boss_nothAI::JustDied(), boss_thaddius::boss_thaddiusAI::JustDied(), boss_shade_of_aran::JustEngagedWith(), boss_sjonnir::boss_sjonnirAI::JustEngagedWith(), boss_kologarn::boss_kologarnAI::JustEngagedWith(), boss_thaddius_summon::boss_thaddius_summonAI::JustEngagedWith(), boss_faerlina::boss_faerlinaAI::JustEngagedWith(), boss_four_horsemen::boss_four_horsemenAI::JustEngagedWith(), boss_gothik::boss_gothikAI::JustEngagedWith(), boss_heigan::boss_heiganAI::JustEngagedWith(), boss_kelthuzad::boss_kelthuzadAI::JustEngagedWith(), boss_loatheb::boss_loathebAI::JustEngagedWith(), boss_maexxna::boss_maexxnaAI::JustEngagedWith(), boss_noth::boss_nothAI::JustEngagedWith(), instance_temple_of_ahnqiraj::instance_temple_of_ahnqiraj_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerEnter(), instance_temple_of_ahnqiraj::instance_temple_of_ahnqiraj_InstanceMapScript::OnUnitDeath(), boss_pyroguard_emberseer::boss_pyroguard_emberseerAI::OpenDoors(), Player::PrepareQuestMenu(), instance_blackrock_spire::instance_blackrock_spireMapScript::ProcessEvent(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::ProcessEvent(), instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::ReadSaveDataMore(), boss_sartharion_dragonAI::RemoveTwilightPortal(), boss_rend_blackhand::boss_rend_blackhandAI::Reset(), boss_shade_of_aran::Reset(), boss_faerlina::boss_faerlinaAI::Reset(), boss_four_horsemen::boss_four_horsemenAI::Reset(), boss_gothik::boss_gothikAI::Reset(), boss_heigan::boss_heiganAI::Reset(), boss_kelthuzad::boss_kelthuzadAI::Reset(), boss_loatheb::boss_loathebAI::Reset(), boss_maexxna::boss_maexxnaAI::Reset(), boss_noth::boss_nothAI::Reset(), boss_thaddius::boss_thaddiusAI::Reset(), boss_sjonnir::boss_sjonnirAI::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), ScriptsProcess(), Player::SendLoot(), Player::SendQuestGiverStatusMultiple(), Acore::VisibleNotifier::SendToSelf(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetBossState(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetBossState(), instance_gundrak::instance_gundrak_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_serpent_shrine::instance_serpentshrine_cavern_InstanceMapScript::SetBossState(), instance_hellfire_ramparts::instance_hellfire_ramparts_InstanceMapScript::SetBossState(), instance_ulduar::instance_ulduar_InstanceMapScript::setChestsLootable(), instance_blackrock_spire::instance_blackrock_spireMapScript::SetData(), instance_scholomance::instance_scholomance_InstanceMapScript::SetData(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetData(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), instance_oculus::instance_oculus_InstanceMapScript::SetData(), instance_halls_of_stone::instance_halls_of_stone_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_gundrak::instance_gundrak_InstanceMapScript::SetData(), instance_serpent_shrine::instance_serpentshrine_cavern_InstanceMapScript::SetData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetData(), instance_halls_of_lightning::instance_halls_of_lightning_InstanceMapScript::SetData(), boss_pyroguard_emberseer::boss_pyroguard_emberseerAI::SetData(), boss_rend_blackhand::boss_rend_blackhandAI::SummonWave(), brann_bronzebeard::brann_bronzebeardAI::SwitchHeadVisaul(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::Update(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_rend_blackhand::boss_rend_blackhandAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_hor_leader::npc_hor_leaderAI::UpdateAI(), npc_pos_leader_second::npc_pos_leader_secondAI::UpdateAI(), boss_gothik::boss_gothikAI::UpdateAI(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), boss_freya_nature_bomb::boss_freya_nature_bombAI::UpdateAI(), boss_hodir::boss_hodirAI::UpdateAI(), npc_pet_gen_plump_turkey::UpdateAI(), BattlegroundRV::UpdatePillars(), boss_pyroguard_emberseer::boss_pyroguard_emberseerAI::UpdateRunes(), Player::UpdateTriggerVisibility(), npc_ranshalla::npc_ranshallaAI::WaypointReached(), and npc_arthas::npc_arthasAI::WaypointReached().
|
inline |
References _gameobjectBySpawnIdStore.
Referenced by _FindGameObject(), GameObject::AddToWorld(), OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointGH::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePoint::DelObject(), PoolGroup< T >::Despawn1Object(), SmartScript::FindGameObjectNear(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), list_commandscript::HandleListObjectCommand(), Player::LoadFromDB(), and OPvPCapturePointEP_NPT::SummonGO().
|
inline |
References _dynamicTree, and DynamicMapTree::getHeight().
|
inline |
References _goRespawnTimes.
Referenced by GetLinkedRespawnTime(), and GameObject::LoadGameObjectFromDB().
GridMap * Map::GetGrid | ( | float | x, |
float | y | ||
) |
References EnsureGridCreated(), GridMaps, and SIZE_OF_GRIDS.
Referenced by GetAreaId(), GetAreaInfo(), GetFullTerrainStatusForPosition(), GetGridHeight(), GetLiquidData(), GetMinHeight(), GetWaterLevel(), and GetWaterOrGroundLevel().
float Map::GetGridHeight | ( | float | x, |
float | y | ||
) | const |
References GetGrid(), and VMAP_INVALID_HEIGHT_VALUE.
Referenced by CheckCollisionAndGetValidCoords(), and GetHeight().
|
inlineprivate |
References _guidGenerators.
float Map::GetHeight | ( | float | x, |
float | y, | ||
float | z, | ||
bool | checkVMap = true , |
||
float | maxSearchDist = DEFAULT_HEIGHT_SEARCH |
||
) | const |
References VMAP::VMapFactory::createOrGetVMapMgr(), GetGridHeight(), VMAP::IVMapMgr::getHeight(), GetId(), GROUND_HEIGHT_TOLERANCE, INVALID_HEIGHT, and VMAP_INVALID_HEIGHT_VALUE.
Referenced by BattlegroundRV::CheckPositionForUnit(), boss_ick::boss_ickAI::DamageTaken(), GetHeight(), WorldObject::GetMapHeight(), GetTransportForPos(), GetWaterOrGroundLevel(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), spell_winter_veil_racer_rocket_slam::HandleTriggerSpell(), spell_svalna_revive_champion::Land(), Creature::LoadCreatureFromDB(), Spell::SelectImplicitCasterDestTargets(), and npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached().
float Map::GetHeight | ( | uint32 | phasemask, |
float | x, | ||
float | y, | ||
float | z, | ||
bool | vmap = true , |
||
float | maxSearchDist = DEFAULT_HEIGHT_SEARCH |
||
) | const |
References _dynamicTree, GetHeight(), and DynamicMapTree::getHeight().
|
inline |
References i_mapEntry, and MapEntry::MapID.
Referenced by Group::_cancelHomebindIfInstance(), AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), WorldState::BuffAdalsSongOfBattle(), WorldState::BuffMagtheridonTeam(), spell_gen_consumption::CalculateDamage(), MapUpdateRequest::call(), InstanceMap::CannotEnter(), Player::CanRollForItemInLFG(), InstanceScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), GameObject::Create(), StaticTransport::Create(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstance(), MapInstanced::CreateInstanceForPlayer(), InstanceMap::CreateInstanceScript(), TransportMgr::CreateInstanceTransports(), OPvPCapturePoint::DelCreature(), DeleteCorpseData(), DeleteRespawnTimes(), WorldState::DispelAdalsSongOfBattle(), WorldState::DispelMagtheridonTeam(), CreatureAI::DoZoneInCombat(), EnsureGridLoaded(), anonymous_namespace{AllMapScript.cpp}::ForeachMaps(), GetAreaInfo(), GetDebugInfo(), GetFullTerrainStatusForPosition(), GetHeight(), GetLiquidData(), GetMapDifficulty(), debug_commandscript::HandleDebugObjectCountMap(), spell_valkyr_touch_aura::HandleEffectPeriodic(), gobject_commandscript::HandleGameObjectAddCommand(), go_commandscript::HandleGoZoneXYCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcAddCommand(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandleSetRaidDifficultyOpcode(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), Player::inRandomLfgDungeon(), isInLineOfSight(), DisableMgr::IsPathfindingEnabled(), LoadCorpseData(), LoadMap(), LoadMMap(), ObjectGridLoader::LoadN(), LoadRespawnTimes(), LoadVMap(), LogEncounterFinished(), AchievementCriteriaData::Meets(), MotionMaster::MoveFall(), lfg::LFGPlayerScript::OnMapChanged(), InstanceMap::PermBindAllPlayers(), RemoveAllPlayers(), RemoveCreatureRespawnTime(), RemoveGORespawnTime(), InstanceMap::Reset(), Player::RewardReputation(), SaveCreatureRespawnTime(), SaveGORespawnTime(), InstanceMap::SendResetWarnings(), World::SetInitialWorldSettings(), WorldObject::SetMap(), Player::SetMover(), SummonCreatureGroup(), MotionTransport::TeleportTransport(), UnloadGrid(), Update(), UpdateEncounterState(), ObjectGridLoader::Visit(), and ~Map().
|
inline |
References i_InstanceId.
Referenced by InstanceSaveMgr::_ResetOrWarnAll(), AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), DeleteCorpseData(), DeleteRespawnTimes(), GetDebugInfo(), debug_commandscript::HandleDebugObjectCountMap(), misc_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), LoadCorpseData(), InstanceScript::LoadInstanceSavedGameobjectStateData(), LoadRespawnTimes(), InstanceMap::PermBindAllPlayers(), RemoveCreatureRespawnTime(), RemoveGORespawnTime(), SaveCreatureRespawnTime(), SaveGORespawnTime(), InstanceScript::SaveToDB(), InstanceScript::SetCompletedEncountersMask(), WorldObject::SetMap(), Update(), and InstanceMap::~InstanceMap().
|
inline |
time_t Map::GetLinkedRespawnTime | ( | ObjectGuid | guid | ) | const |
References ObjectGuid::GetCounter(), GetCreatureRespawnTime(), GetGORespawnTime(), ObjectGuid::GetHigh(), and sObjectMgr.
Referenced by Creature::Respawn(), and GameObject::Update().
LiquidData const Map::GetLiquidData | ( | uint32 | phaseMask, |
float | x, | ||
float | y, | ||
float | z, | ||
float | collisionHeight, | ||
uint8 | ReqLiquidType | ||
) |
References VMAP::VMapFactory::createOrGetVMapMgr(), LiquidData::DepthLevel, LiquidData::Entry, LiquidData::Flags, GetAreaId(), GetGrid(), GetId(), VMAP::IVMapMgr::GetLiquidLevel(), GROUND_HEIGHT_TOLERANCE, INVALID_HEIGHT, IsInWMOInterior(), LiquidData::Level, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_IN_WATER, LIQUID_MAP_NO_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, LOG_DEBUG, sAreaTableStore, sLiquidTypeStore, and LiquidData::Status.
Referenced by PathGenerator::BuildPolyPath(), PathGenerator::GetNavTerrain(), GetWaterOrGroundLevel(), HasEnoughWater(), IsInWater(), IsUnderWater(), Spell::SelectImplicitCasterDestTargets(), and spell_spawn_blood_pool::SetDest().
MapDifficulty const * Map::GetMapDifficulty | ( | ) | const |
References GetDifficulty(), GetId(), and GetMapDifficultyData().
Referenced by InstanceMap::GetMaxPlayers(), and InstanceMap::GetMaxResetDelay().
char const * Map::GetMapName | ( | ) | const |
References i_mapEntry, MapEntry::name, and sWorld.
Referenced by InstanceMap::CannotEnter(), debug_commandscript::HandleDebugObjectCountMap(), go_commandscript::HandleGoZoneXYCommand(), LoadMMap(), LoadVMap(), LogCommandUsage(), and InstanceMap::PermBindAllPlayers().
float Map::GetMinHeight | ( | float | x, |
float | y | ||
) | const |
References GetGrid().
Referenced by WorldSession::HandleMovementOpcodes().
|
inline |
References MMapLock.
References ASSERT, i_grids, and MAX_NUMBER_OF_GRIDS.
Referenced by AddToGrid(), EnsureGridCreated(), EnsureGridCreated_i(), EnsureGridLoaded(), IsGridLoaded(), isGridObjectDataLoaded(), IsRemovalGrid(), setGridObjectDataLoaded(), SwitchGridContainers(), and Visit().
bool Map::GetObjectHitPos | ( | uint32 | phasemask, |
float | x1, | ||
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2, | ||
float & | rx, | ||
float & | ry, | ||
float & | rz, | ||
float | modifyDist | ||
) |
References _dynamicTree, and DynamicMapTree::GetObjectHitPos().
Referenced by CheckCollisionAndGetValidCoords(), and Spell::SelectImplicitCasterDestTargets().
|
inline |
References _objectsStore.
Referenced by Corpse::AddToWorld(), Creature::AddToWorld(), DynamicObject::AddToWorld(), GameObject::AddToWorld(), Pet::AddToWorld(), debug_commandscript::HandleDebugObjectCountMap(), Corpse::RemoveFromWorld(), Creature::RemoveFromWorld(), DynamicObject::RemoveFromWorld(), GameObject::RemoveFromWorld(), Pet::RemoveFromWorld(), GameEventMgr::RunSmartAIScripts(), and Update().
|
inline |
References m_parentMap.
Pet * Map::GetPet | ( | ObjectGuid const | guid | ) |
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetPet(), and ScriptsProcess().
|
inline |
References m_mapRefMgr.
Referenced by AddToMap(), boss_hadronox::boss_hadronoxAI::AnyPlayerValid(), MotionTransport::BuildUpdate(), StaticTransport::BuildUpdate(), InstanceMap::CannotEnter(), boss_professor_putricide::boss_professor_putricideAI::ChangePhase(), boss_gothik::boss_gothikAI::CheckGroupSplitted(), boss_volazj::CheckPhaseMinions(), boss_skadi_grauf::boss_skadi_graufAI::CheckPlayers(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::ChromieWhisper(), brann_bronzebeard::brann_bronzebeardAI::DoAction(), npc_arthas::npc_arthasAI::DoAction(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::DoCheckDedicatedInsanity(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoCheckHeraldOfTheTitans(), DoForAllPlayers(), instance_violet_hold::instance_violet_hold_InstanceMapScript::DoNeedCleanup(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::DoNeedCleanup(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::DoNeedCleanup(), ScriptedAI::DoPlayMusic(), InstanceScript::DoSendNotifyToInstance(), ScriptedAI::DoTeleportAll(), boss_icehowl::boss_icehowlAI::DoTrampleIfValid(), InstanceScript::DoUpdateWorldState(), CreatureAI::DoZoneInCombat(), boss_sapphiron::boss_sapphironAI::EnterCombatSelfFunction(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::EnterEvadeMode(), boss_thorim::boss_thorimAI::GetArenaPlayer(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::GetCreatureEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetCreatureEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetGameObjectEntry(), spell_teron_gorefiend_shadowy_construct::HandleEffectApply(), spell_valkyr_touch_aura::HandleEffectPeriodic(), spell_yogg_saron_brain_link_aura::HandleOnEffectApply(), WorldSession::HandleSetRaidDifficultyOpcode(), boss_ichoron::boss_ichoronAI::IchoronDoCastToAllHostilePlayers(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::InstanceCleanup(), boss_halion::boss_halionAI::IsAnyPlayerValid(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::IsEncounterInProgress(), boss_apothecary_hummel::boss_apothecary_hummelAI::JustDied(), npc_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::JustDied(), boss_yoggsaron::boss_yoggsaronAI::JustDied(), boss_ahune::JustDied(), boss_four_horsemen::boss_four_horsemenAI::JustDied(), boss_devourer_of_souls::boss_devourer_of_soulsAI::JustEngagedWith(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustSummoned(), boss_gothik::boss_gothikAI::JustSummoned(), LogEncounterFinished(), WorldSession::LogoutPlayer(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), PlayDirectSoundToMap(), SmartScript::ProcessAction(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::RemoveBackPack(), RemoveFromMap(), boss_krystallus::boss_krystallusAI::RemoveStonedEffect(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::ReplaceMoiraIfSaved(), npc_singularity::Reset(), boss_volazj::ResetPlayersPhaseMask(), boss_yoggsaron_constrictor_tentacle::boss_yoggsaron_constrictor_tentacleAI::SelectConstrictTarget(), boss_yoggsaron_corruptor_tentacle::boss_yoggsaron_corruptor_tentacleAI::SelectCorruptionTarget(), boss_gluth::boss_gluthAI::SelectPlayerInRoom(), boss_thorim_arena_npcs::boss_thorim_arena_npcsAI::SelectT(), spell_gen_rallying_cry_of_the_dragonslayer::SelectTarget(), ScriptedAI::SelectTargetFromPlayerList(), CreatureTextMgr::SendChatPacket(), CreatureTextMgr::SendNonChatPacket(), SendPacketToPlayers(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SendUpdateWorldState(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), GameObject::SetLootRecipient(), Creature::SetLootRecipient(), SetZoneMusic(), SetZoneOverrideLight(), SetZoneWeather(), boss_hodir::boss_hodirAI::SpawnHelpers(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), boss_chromaggus::boss_chromaggusAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), npc_toc5_grand_champion_minion::npc_toc5_grand_champion_minionAI::UpdateAI(), boss_grand_champion::boss_grand_championAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), boss_gormok::boss_gormokAI::UpdateAI(), boss_twin_valkyrAI::UpdateAI(), npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI(), npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::UpdateAI(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::UpdateAI(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::UpdateAI(), npc_gunship_boarding_addAI::UpdateAI(), npc_gunship_gunner::npc_gunship_gunnerAI::UpdateAI(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI(), npc_icc_gauntlet_controller::npc_icc_gauntlet_controllerAI::UpdateAI(), npc_icc_putricades_trap::npc_icc_putricades_trapAI::UpdateAI(), boss_heigan::boss_heiganAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), npc_scion_of_eternity::npc_scion_of_eternityAI::UpdateAI(), boss_keristrasza::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_vezax::boss_vezaxAI::UpdateAI(), boss_hodir::boss_hodirAI::UpdateAI(), boss_ignis::boss_ignisAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::UpdateAI(), npc_ulduar_flames_initial::npc_ulduar_flames_initialAI::UpdateAI(), npc_demonic_vapor::UpdateAI(), UpdateEncounterState(), npc_grimstone::npc_grimstoneAI::UpdateEscortAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateWorldState(), and npc_thrall_bfu::npc_thrall_bfuAI::UpdateWorldState().
uint32 Map::GetPlayersCountExceptGMs | ( | ) | const |
References MapRefMgr::begin(), MapRefMgr::end(), and m_mapRefMgr.
Referenced by InstanceMap::CannotEnter(), instance_naxxramas::instance_naxxramas_InstanceMapScript::CheckAchievementCriteriaMeet(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::CheckAchievementCriteriaMeet(), AchievementCriteriaData::Meets(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::OnPlayerEnter(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::OnPlayerEnter(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::OnPlayerEnter(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), and instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update().
|
inline |
References i_spawnMode.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), SmartScript::FillScript(), GetDifficulty(), SpellMgr::GetSpellIdForDifficulty(), Unit::HandleAuraProc(), gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), spell_dreamwalker_summon_portal::HandleScript(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), IsVampire(), AchievementCriteriaData::Meets(), achievement_once_bitten_twice_shy::OnCheck(), ScriptedAI::ScriptedAI(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::UpdateAI(), and ObjectGridLoader::Visit().
Transport * Map::GetTransport | ( | ObjectGuid const | guid | ) |
References GetGameObject(), ObjectGuid::GetHigh(), and GameObject::ToTransport().
Referenced by ObjectAccessor::GetTransport(), WorldSession::HandleMovementOpcodes(), npc_gunship::npc_gunshipAI::JustDied(), npc_gunship_boarding_addAI::MovementInform(), ScriptsProcess(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::UpdateAI(), and npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::UpdateAI().
Transport * Map::GetTransportForPos | ( | uint32 | phase, |
float | x, | ||
float | y, | ||
float | z, | ||
WorldObject * | worldobject = nullptr |
||
) |
References _transports, WorldObject::FindNearestGameObjectOfType(), GAMEOBJECT_TYPE_TRANSPORT, GetHeight(), and VMAP::Nothing.
Referenced by AddToMap(), and Creature::Update().
|
inline |
float Map::GetWaterLevel | ( | float | x, |
float | y | ||
) | const |
References GetGrid().
Referenced by go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), and go_commandscript::HandleGoZoneXYCommand().
float Map::GetWaterOrGroundLevel | ( | uint32 | phasemask, |
float | x, | ||
float | y, | ||
float | z, | ||
float * | ground = nullptr , |
||
bool | swim = false , |
||
float | collisionHeight = DEFAULT_COLLISION_HEIGHT |
||
) | const |
References GetGrid(), GetHeight(), GetLiquidData(), LiquidData::Level, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_NO_WATER, MAP_ALL_LIQUIDS, LiquidData::Status, VMAP_INVALID_HEIGHT_VALUE, and Z_OFFSET_FIND_HEIGHT.
Referenced by WorldObject::GetMapWaterOrGroundLevel().
void Map::GetZoneAndAreaId | ( | uint32 | phaseMask, |
uint32 & | zoneid, | ||
uint32 & | areaid, | ||
float | x, | ||
float | y, | ||
float | z | ||
) | const |
References GetAreaId(), and sAreaTableStore.
Referenced by WorldObject::AddToWorld(), and MapMgr::GetZoneAndAreaId().
References GetAreaId(), and sAreaTableStore.
Referenced by MapMgr::GetZoneId().
void Map::HandleDelayedVisibility | ( | ) |
References i_objectsForDelayedVisibility.
Referenced by Update().
bool Map::HasEnoughWater | ( | WorldObject const * | searcher, |
float | x, | ||
float | y, | ||
float | z | ||
) | const |
References WorldObject::GetCollisionHeight(), GetLiquidData(), WorldObject::GetPhaseMask(), HasEnoughWater(), MAP_ALL_LIQUIDS, MAP_LIQUID_STATUS_SWIMMING, and LiquidData::Status.
Referenced by CanReachPositionAndGetValidCoords(), and HasEnoughWater().
bool Map::HasEnoughWater | ( | WorldObject const * | searcher, |
LiquidData const & | liquidData | ||
) | const |
References LiquidData::DepthLevel, WorldObject::GetMinHeightInWater(), INVALID_HEIGHT, and LiquidData::Level.
|
inline |
References LinkedListHead::IsEmpty(), and m_mapRefMgr.
Referenced by InstanceMap::AfterPlayerUnlinkFromMap(), MapInstanced::CreateInstanceForPlayer(), GetDebugInfo(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::IsEncounterInProgress(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), InstanceMap::Reset(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SpawnGunship(), InstanceMap::UnloadAll(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), and npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI().
void Map::InitializeObject | ( | Creature * | ) |
void Map::InitializeObject | ( | GameObject * | ) |
|
private |
Referenced by AddToMap().
|
virtual |
Reimplemented in InstanceMap, BattlegroundMap, and MapInstanced.
References GetId(), World::GetMaxVisibleDistanceOnContinents(), and m_VisibleDistance.
Referenced by Map().
|
inline |
References _dynamicTree, and DynamicMapTree::insert().
Referenced by GameObject::AddToWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
|
inline |
References i_mapEntry, and MapEntry::Instanceable().
Referenced by ObjectMgr::AddCreData(), ObjectMgr::AddGOData(), Vehicle::ApplyAllImmunities(), MapMgr::CreateMap(), PoolGroup< T >::Despawn1Object(), MapMgr::FindBaseNonInstanceMap(), MapMgr::FindMap(), GameEventMgr::GameEventSpawn(), MapMgr::GetNumInstances(), MapMgr::GetNumPlayersInInstances(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGroupSummonCommand(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), AuraEffect::HandlePhase(), AuraEffect::HandlePreventResurrection(), ArenaSpectator::HandleSpectatorSpectateCommand(), misc_commandscript::HandleSummonCommand(), OutdoorPvP::SetMapFromZone(), PoolGroup< T >::Spawn1Object(), ToMapInstanced(), and UpdateCreatureHalaa().
|
inline |
References i_spawnMode, IsRaid(), and RAID_DIFFICULTY_MASK_25MAN.
Referenced by boss_thorim::boss_thorimAI::DamageTaken(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::DoAction(), spell_archavon_rock_shards::HandleScript(), instance_ulduar::instance_ulduar_InstanceMapScript::instance_ulduar_InstanceMapScript(), spell_the_lich_king_vile_spirits_aura::Load(), AchievementCriteriaData::Meets(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), AreaTrigger_at_celestial_planetarium_enterance::OnTrigger(), npc_frostwing_vrykul::npc_frostwing_vrykulAI::Reset(), npc_gunship::npc_gunshipAI::SetGUID(), instance_ulduar::instance_ulduar_InstanceMapScript::SpawnLeviathanEncounterVehicles(), boss_prince_valanar_icc::boss_prince_valanarAI::UpdateAI(), npc_icc_valkyr_herald::npc_icc_valkyr_heraldAI::UpdateAI(), boss_grobbulus_poison_cloud::boss_grobbulus_poison_cloudAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_freya_lifebinder::boss_freya_lifebinderAI::UpdateAI(), boss_freya_nature_bomb::boss_freya_nature_bombAI::UpdateAI(), boss_vezax::boss_vezaxAI::UpdateAI(), boss_kologarn_eyebeam::boss_kologarn_eyebeamAI::UpdateAI(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::UpdateAI(), and UpdateEncounterState().
|
inline |
References i_mapEntry, and MapEntry::IsBattleArena().
Referenced by BattlegroundMap::AddPlayerToMap(), WorldSession::HandleEnterPlayerVehicle(), WorldSession::HandleMoveWorldportAck(), ArenaSpectator::HandleResetCommand(), spectator_commandscript::HandleSpectatorLeaveCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), ArenaSpectator::HandleSpectatorWatchCommand(), Unit::HandleSpellClick(), BattlegroundMap::InitVisibilityDistance(), Unit::PatchValuesUpdate(), and BattlegroundMap::RemovePlayerFromMap().
|
inline |
References i_mapEntry, and MapEntry::IsBattleground().
Referenced by SpellMgr::GetSpellIdForDifficulty(), and AuraEffect::HandleAuraDummy().
|
inline |
References i_mapEntry, and MapEntry::IsBattlegroundOrArena().
Referenced by Spell::CheckCast(), ConvertCorpseToBones(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstanceForPlayer(), spell_dk_scourge_strike::HandleAfterHit(), misc_commandscript::HandleAppearCommand(), spell_dk_blood_caked_blade::HandleProc(), misc_commandscript::HandleSummonCommand(), isInLineOfSight(), DisableMgr::IsPathfindingEnabled(), Player::SetEntryPoint(), and ToBattlegroundMap().
|
inline |
References marked_cells.
Referenced by VisitNearbyCellsOf().
|
inline |
References marked_cells_large.
Referenced by VisitNearbyCellsOf(), and VisitNearbyCellsOfPlayer().
|
inline |
References i_mapEntry, and MapEntry::IsDungeon().
Referenced by Group::_cancelHomebindIfInstance(), InstanceSaveMgr::_ResetOrWarnAll(), InstanceMap::AddPlayerToMap(), GameObject::AddToSkillupList(), Spell::CheckCast(), MapInstanced::CreateInstance(), TransportMgr::CreateTransport(), Spell::DoAllEffectOnTarget(), ScriptedAI::DoTeleportAll(), CreatureAI::DoZoneInCombat(), Spell::EffectTeleportUnits(), SmartScript::FillScript(), Acore::XP::Gain(), WorldObject::GetInstanceScript(), Unit::GetMeleeAttackPoint(), SpellMgr::GetSpellIdForDifficulty(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), spell_freezing_circle::HandleDamage(), spell_item_nitro_boots::HandleDummy(), instance_commandscript::HandleInstanceSaveDataCommand(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSummonCommand(), InstanceSave::InsertToDB(), Player::IsAtGroupRewardDistance(), boss_ossirian::JustEngagedWith(), Unit::Kill(), WorldSession::LogoutPlayer(), Condition::Meets(), AchievementCriteriaData::Meets(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), InstanceMap::PermBindAllPlayers(), SmartScript::ProcessAction(), boss_krystallus::boss_krystallusAI::RemoveStonedEffect(), CreatureTextMgr::SendChatPacket(), Player::SetEntryPoint(), Creature::SetLootRecipient(), lfg::LFGMgr::TeleportPlayer(), ToInstanceMap(), and AchievementMgr::UpdateAchievementCriteria().
|
private |
References getNGrid(), isGridObjectDataLoaded(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
References Acore::ComputeGridCoord(), and IsGridLoaded().
Referenced by ObjectMgr::AddGOData(), GameEventMgr::GameEventSpawn(), IsGridLoaded(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData(), PoolGroup< T >::Spawn1Object(), SwitchGridContainers(), and Visit().
References getNGrid(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded().
Referenced by EnsureGridLoaded(), and IsGridLoaded().
|
inline |
References DUNGEON_DIFFICULTY_HEROIC, i_spawnMode, IsRaid(), and RAID_DIFFICULTY_10MAN_HEROIC.
Referenced by spell_svala_ritual_strike_aura::CalculateAmount(), boss_eregos::boss_eregosAI::DamageTaken(), npc_orb_carrier::npc_orb_carrierAI::DoAction(), npc_molten_golem::npc_molten_golemAI::DoAction(), BattleExperienceEvent::Execute(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::FillInitialWorldStates(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetData(), spell_freezing_circle::HandleDamage(), spell_prince_taldaram_conjure_flame_sphere::HandleScript(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::InstanceCleanup(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::IsHeroic(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::IsHeroic(), boss_loken::boss_lokenAI::JustEngagedWith(), boss_krystallus::boss_krystallusAI::JustEngagedWith(), npc_tirion_fordring_tft::npc_tirion_fordringAI::JustReachedHome(), npc_frost_tomb::npc_frost_tomb(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), at_shattered_halls_execution::OnTrigger(), spell_blood_queen_pact_of_the_darkfallen_dmg_aura::PeriodicTick(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::ReadSaveDataMore(), npc_tirion_fordring_tft::npc_tirion_fordringAI::Reset(), ScriptedAI::ScriptedAI(), instance_gundrak::instance_gundrak_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_oculus::instance_oculus_InstanceMapScript::SetData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetData(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), boss_skadi_grauf::boss_skadi_graufAI::SpawnFlameTriggers(), boss_skadi_grauf::boss_skadi_graufAI::SpellHitTarget(), boss_ionar::boss_ionarAI::Split(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::Update(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), npc_time_rift::UpdateAI(), npc_stormforged_lieutenant::npc_stormforged_lieutenantAI::UpdateAI(), boss_ionar::boss_ionarAI::UpdateAI(), boss_loken::boss_lokenAI::UpdateAI(), boss_volkhan::boss_volkhanAI::UpdateAI(), npc_molten_golem::npc_molten_golemAI::UpdateAI(), npc_hol_monument::npc_hol_monumentAI::UpdateAI(), UpdateEncounterState(), and instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::WriteSaveDataMore().
bool Map::isInLineOfSight | ( | float | x1, |
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2, | ||
uint32 | phasemask, | ||
LineOfSightChecks | checks, | ||
VMAP::ModelIgnoreFlags | ignoreFlags | ||
) | const |
References _dynamicTree, CONFIG_CHECK_GOBJECT_LOS, CONFIG_VMAP_BLIZZLIKE_LOS_OPEN_WORLD, CONFIG_VMAP_BLIZZLIKE_PVP_LOS, VMAP::VMapFactory::createOrGetVMapMgr(), GetId(), IsBattlegroundOrArena(), isInLineOfSight(), DynamicMapTree::isInLineOfSight(), IsWorldMap(), LINEOFSIGHT_CHECK_GOBJECT_ALL, LINEOFSIGHT_CHECK_GOBJECT_M2, LINEOFSIGHT_CHECK_VMAP, VMAP::M2, VMAP::Nothing, and sWorld.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), isInLineOfSight(), WorldObject::IsWithinLOS(), WorldObject::IsWithinLOSInMap(), npc_ulduar_snow_mound::MoveInLineOfSight(), spell_blood_council_summon_shadow_resonance::SetDest(), and PathGenerator::ShortenPathUntilDist().
bool Map::IsInWater | ( | uint32 | phaseMask, |
float | x, | ||
float | y, | ||
float | z, | ||
float | collisionHeight | ||
) | const |
References GetLiquidData(), MAP_ALL_LIQUIDS, MAP_LIQUID_STATUS_SWIMMING, and LiquidData::Status.
Referenced by CheckCollisionAndGetValidCoords(), ConfusedMovementGenerator< T >::DoInitialize(), PathGenerator::IsSwimmableSegment(), Spell::SelectImplicitCasterDestTargets(), and WorldObject::UpdateAllowedPositionZ().
|
inline |
References i_mapEntry, and MapEntry::IsNonRaidDungeon().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and Player::RewardReputation().
|
inline |
References i_mapEntry, and MapEntry::IsRaid().
Referenced by Group::_cancelHomebindIfInstance(), InstanceMap::CannotEnter(), Creature::CreateFromProto(), MapInstanced::CreateInstanceForPlayer(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), Creature::InitEntry(), InstanceMap::InstanceMap(), Is25ManRaid(), IsHeroic(), IsRaidOrHeroicDungeon(), LogEncounterFinished(), AchievementCriteriaData::Meets(), InstanceMap::SendResetWarnings(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
References DUNGEON_DIFFICULTY_NORMAL, i_spawnMode, and IsRaid().
Referenced by Unit::Kill(), and WorldSession::LogoutPlayer().
|
inline |
References GetDifficulty(), and REGULAR_DIFFICULTY.
|
inline |
References Acore::ComputeGridCoord(), getNGrid(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by ObjectMgr::AddCreData(), ConvertCorpseToBones(), and UpdateCreatureHalaa().
bool Map::IsUnderWater | ( | uint32 | phaseMask, |
float | x, | ||
float | y, | ||
float | z, | ||
float | collisionHeight | ||
) | const |
References GetLiquidData(), LIQUID_MAP_UNDER_WATER, MAP_LIQUID_TYPE_OCEAN, MAP_LIQUID_TYPE_WATER, and LiquidData::Status.
Referenced by WorldSession::HandleMovementOpcodes().
|
inline |
void Map::LoadAllCells | ( | ) |
References CENTER_GRID_CELL_ID, LoadGrid(), SIZE_OF_GRID_CELL, and TOTAL_NUMBER_OF_CELLS_PER_MAP.
Referenced by World::SetInitialWorldSettings().
void Map::LoadCorpseData | ( | ) |
References AddCorpse(), CHAR_SEL_CORPSES, CharacterDatabase, CORPSE_BONES, Field::Get(), GetId(), GetInstanceId(), Corpse::LoadCorpseFromDB(), LOG_ERROR, MAX_CORPSE_TYPE, PreparedStatementBase::SetData(), and WorldObject::UpdatePositionData().
Referenced by MapMgr::CreateBaseMap(), and MapInstanced::CreateInstance().
void Map::LoadGrid | ( | float | x, |
float | y | ||
) |
References EnsureGridLoaded().
Referenced by at_zulgurub_entrance_speech::_OnTrigger(), at_zulgurub_bridge_speech::_OnTrigger(), at_zulgurub_temple_speech::_OnTrigger(), at_zulgurub_bloodfire_pit_speech::_OnTrigger(), at_zulgurub_edge_of_madness_speech::_OnTrigger(), CinematicMgr::BeginCinematic(), instance_stratholme::instance_stratholme_InstanceMapScript::CheckZiggurats(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::CleanupInstance(), MotionTransport::DelayedTeleportTransport(), boss_nightbane::DoAction(), npc_thrall_warchief::npc_thrall_warchiefAI::DoAction(), npc_crok_scourgebane::npc_crok_scourgebaneAI::DoAction(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::EnsureGridLoaded(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::EnsureGridLoaded(), WorldSession::HandleMoveWorldportAck(), boss_kelidan_the_breaker::JustDied(), boss_kurinnaxx::JustDied(), LoadAllCells(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnPlayerEnter(), instance_stratholme::instance_stratholme_InstanceMapScript::OnPlayerEnter(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnPlayerEnter(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnPlayerEnter(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), at_sindragosa_lair::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), FlightPathMovementGenerator::PreloadEndGrid(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData(), instance_dire_maul::instance_dire_maul_InstanceMapScript::SetData(), instance_wailing_caverns::instance_wailing_caverns_InstanceMapScript::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetData(), Vehicle::TeleportVehicle(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), MotionTransport::UpdatePosition(), and StaticTransport::UpdatePosition().
|
private |
References EnsureGridCreated(), GetId(), GridMaps, i_InstanceId, LOG_DEBUG, LOG_ERROR, m_parentMap, sScriptMgr, and sWorld.
Referenced by LoadMapAndVMap().
|
private |
References i_InstanceId, LoadMap(), LoadMMap(), and LoadVMap().
Referenced by EnsureGridCreated_i().
|
private |
References MMAP::MMapFactory::createOrGetMMapMgr(), GetId(), GetMapName(), DisableMgr::IsPathfindingEnabled(), MMAP::MMapMgr::loadMap(), LOG_DEBUG, MMAP::MMAP_LOAD_RESULT_ERROR, MMAP::MMAP_LOAD_RESULT_IGNORED, and MMAP::MMAP_LOAD_RESULT_OK.
Referenced by LoadMapAndVMap().
void Map::LoadRespawnTimes | ( | ) |
References _creatureRespawnTimes, _goRespawnTimes, CHAR_SEL_CREATURE_RESPAWNS, CHAR_SEL_GO_RESPAWNS, CharacterDatabase, Field::Get(), GetId(), GetInstanceId(), and PreparedStatementBase::SetData().
Referenced by MapMgr::CreateBaseMap(), and MapInstanced::CreateInstance().
|
private |
References VMAP::VMapFactory::createOrGetVMapMgr(), GetId(), GetMapName(), VMAP::VMapMgr2::loadMap(), LOG_DEBUG, sWorld, VMAP::VMAP_LOAD_RESULT_ERROR, VMAP::VMAP_LOAD_RESULT_IGNORED, and VMAP::VMAP_LOAD_RESULT_OK.
Referenced by LoadMapAndVMap().
void Map::LogEncounterFinished | ( | EncounterCreditType | type, |
uint32 | creditEntry | ||
) |
References MapRefMgr::begin(), CharacterDatabase, CleanStringForMysqlQuery(), MapRefMgr::end(), GetDifficulty(), GetEntry(), GetId(), GetPlayers(), IsRaid(), and ToInstanceMap().
Referenced by UpdateEncounterState().
|
inline |
|
inline |
References marked_cells_large.
Referenced by VisitNearbyCellsOf(), and VisitNearbyCellsOfPlayer().
void Map::MoveAllCreaturesInMoveList | ( | ) |
References _creaturesToMove, MovableMapObject::_moveState, AddToGrid(), Cell::DiffGrid(), EnsureGridLoaded(), WorldObject::FindMap(), MovableMapObject::GetCurrentCell(), Position::GetPositionX(), Position::GetPositionY(), Object::IsInWorld(), MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, and GridObject< T >::RemoveFromGrid().
Referenced by Update().
void Map::MoveAllDynamicObjectsInMoveList | ( | ) |
References _dynamicObjectsToMove, MovableMapObject::_moveState, AddToGrid(), Cell::DiffGrid(), EnsureGridLoaded(), WorldObject::FindMap(), MovableMapObject::GetCurrentCell(), Position::GetPositionX(), Position::GetPositionY(), Object::IsInWorld(), MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, and GridObject< T >::RemoveFromGrid().
Referenced by Update().
void Map::MoveAllGameObjectsInMoveList | ( | ) |
References _gameObjectsToMove, MovableMapObject::_moveState, AddToGrid(), Cell::DiffGrid(), EnsureGridLoaded(), WorldObject::FindMap(), MovableMapObject::GetCurrentCell(), Position::GetPositionX(), Position::GetPositionY(), Object::IsInWorld(), MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, and GridObject< T >::RemoveFromGrid().
Referenced by Update().
References MapRefMgr::begin(), MapRefMgr::end(), GetPlayers(), LinkedListHead::IsEmpty(), and SMSG_PLAY_SOUND.
Referenced by instance_naxxramas::instance_naxxramas_InstanceMapScript::Update().
void Map::PlayerRelocation | ( | Player * | player, |
float | x, | ||
float | y, | ||
float | z, | ||
float | o | ||
) |
References AddToGrid(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoaded(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetVehicleKit(), Unit::IsVehicle(), Position::Relocate(), Vehicle::RelocatePassengers(), GridObject< T >::RemoveFromGrid(), Player::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by at_icc_saurfang_portal::OnTrigger(), StaticTransport::UpdatePassengerPositions(), MotionTransport::UpdatePassengerPositions(), and Unit::UpdatePosition().
void Map::RemoveAllObjectsInRemoveList | ( | ) |
References Unit::CleanupsBeforeDelete(), ObjectAccessor::GetCorpse(), Object::GetGUID(), Object::GetTypeId(), i_objectsToRemove, i_objectsToSwitch, WorldObject::IsPermanentWorldObject(), LOG_ERROR, RemoveFromMap(), Object::ToCreature(), Object::ToGameObject(), GameObject::ToMotionTransport(), ObjectGuid::ToString(), TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by DelayedUpdate(), and UnloadGrid().
|
virtual |
Reimplemented in BattlegroundMap.
References MapRefMgr::begin(), MapRefMgr::end(), GetId(), WorldObject::GetName(), Position::GetOrientation(), HavePlayers(), Player::IsBeingTeleportedFar(), LOG_ERROR, Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, m_mapRefMgr, and Player::TeleportTo().
void Map::RemoveCorpse | ( | Corpse * | corpse | ) |
References _corpseBones, _corpsesByCell, _corpsesByPlayer, ASSERT, CORPSE_BONES, WorldObject::DestroyForNearbyPlayers(), Corpse::GetCellCoord(), CoordPair< LIMIT >::GetId(), Corpse::GetOwnerGUID(), Corpse::GetType(), GridObject< T >::IsInGrid(), RemoveFromMap(), Corpse::RemoveFromWorld(), and WorldObject::ResetMap().
Referenced by ConvertCorpseToBones(), and RemoveOldCorpses().
|
private |
References MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by CreatureRelocation().
void Map::RemoveCreatureRespawnTime | ( | ObjectGuid::LowType | dbGuid | ) |
References _creatureRespawnTimes, CHAR_DEL_CREATURE_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), and PreparedStatementBase::SetData().
Referenced by Creature::DeleteFromDB(), Creature::Respawn(), and SaveCreatureRespawnTime().
|
private |
References MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by DynamicObjectRelocation().
void Map::RemoveFromActive | ( | Creature * | c | ) |
References RemoveFromActiveHelper().
void Map::RemoveFromActive | ( | DynamicObject * | obj | ) |
References RemoveFromActiveHelper().
void Map::RemoveFromActive | ( | GameObject * | obj | ) |
References RemoveFromActiveHelper().
void Map::RemoveFromActive | ( | T * | obj | ) |
References RemoveFromActiveHelper().
Referenced by RemoveFromMap(), and WorldObject::setActive().
|
inlineprivate |
References m_activeNonPlayers, and m_activeNonPlayersIter.
Referenced by RemoveFromActive().
void Map::RemoveFromMap | ( | MotionTransport * | obj, |
bool | remove | ||
) |
References _transports, _transportsUpdateIter, MapRefMgr::begin(), Object::BuildOutOfRangeUpdateBlock(), UpdateData::BuildPacket(), CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, DeleteFromWorld(), MapRefMgr::end(), GetPlayers(), WorldObject::isActiveObject(), LinkedListHead::IsEmpty(), RemoveFromActive(), GameObject::RemoveFromWorld(), WorldObject::ResetMap(), GameObject::SaveRespawnTime(), and sWorld.
void Map::RemoveFromMap | ( | T * | obj, |
bool | remove | ||
) |
References DeleteFromWorld(), RemoveFromActive(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by MotionTransport::DelayedTeleportTransport(), RemoveAllObjectsInRemoveList(), and RemoveCorpse().
|
private |
References MovableMapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by GameObjectRelocation().
|
inline |
References _dynamicTree, and DynamicMapTree::remove().
Referenced by GameObject::RemoveFromWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
void Map::RemoveGORespawnTime | ( | ObjectGuid::LowType | dbGuid | ) |
References _goRespawnTimes, CHAR_DEL_GO_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), and PreparedStatementBase::SetData().
Referenced by GameObject::DeleteFromDB(), GameObject::LoadGameObjectFromDB(), GameObject::Respawn(), and SaveGORespawnTime().
void Map::RemoveOldCorpses | ( | ) |
References _corpseBones, _corpsesByPlayer, ConvertCorpseToBones(), GameTime::GetGameTime(), and RemoveCorpse().
Referenced by World::Update().
|
virtual |
Reimplemented in InstanceMap, and BattlegroundMap.
References ASSERT, DeleteFromWorld(), HostileRefMgr::deleteReferences(), WorldObject::DestroyForNearbyPlayers(), Unit::getHostileRefMgr(), GridObject< T >::IsInGrid(), Object::IsInWorld(), GridObject< T >::RemoveFromGrid(), Player::RemoveFromWorld(), SendRemoveTransports(), and sScriptMgr.
Referenced by WorldSession::HandleMoveWorldportAck(), WorldSession::HandleSetRaidDifficultyOpcode(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), and Player::TeleportTo().
|
inline |
References _updateObjects.
Referenced by DeleteFromWorld(), and WorldObject::RemoveFromObjectUpdate().
|
inline |
References i_worldObjects.
Referenced by WorldObject::ResetMap(), and SwitchGridContainers().
|
inline |
|
inline |
void Map::SaveCreatureRespawnTime | ( | ObjectGuid::LowType | dbGuid, |
time_t & | respawnTime | ||
) |
References _creatureRespawnTimes, CHAR_REP_CREATURE_RESPAWN, CharacterDatabase, GameTime::GetGameTime(), GetId(), GetInstanceId(), GetInstanceResetPeriod(), RemoveCreatureRespawnTime(), PreparedStatementBase::SetData(), and YEAR.
Referenced by Creature::SaveRespawnTime().
void Map::SaveGORespawnTime | ( | ObjectGuid::LowType | dbGuid, |
time_t & | respawnTime | ||
) |
References _goRespawnTimes, CHAR_REP_GO_RESPAWN, CharacterDatabase, GameTime::GetGameTime(), GetId(), GetInstanceId(), GetInstanceResetPeriod(), RemoveGORespawnTime(), PreparedStatementBase::SetData(), and YEAR.
Referenced by GameObject::SaveRespawnTime().
void Map::ScheduleCreatureRespawn | ( | ObjectGuid | creatureGuid, |
Milliseconds | respawnTimer | ||
) |
References _creatureRespawnScheduler, GetCreature(), and TaskScheduler::Schedule().
Referenced by Creature::ForcedDespawn().
void Map::ScriptCommandStart | ( | ScriptInfo const & | script, |
uint32 | delay, | ||
Object * | source, | ||
Object * | target | ||
) |
References ObjectGuid::Empty, GameTime::GetGameTime(), Object::GetGUID(), i_scriptLock, Object::IsItem(), m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), ScriptAction::sourceGUID, sScriptMgr, and ScriptAction::targetGUID.
|
private |
Process queued scripts.
Process overdue queued scripts
References _creatureBySpawnIdStore, _FindGameObject(), _GetScriptCreature(), _GetScriptCreatureSourceOrTarget(), _GetScriptPlayer(), _GetScriptPlayerSourceOrTarget(), _GetScriptUnit(), _GetScriptWorldObject(), _ScriptProcessDoor(), AddToMap(), ScriptInfo::Amount, ScriptInfo::CallScript, Unit::CastSpell(), ScriptInfo::CastSpell, CHAT_MSG_RAID_BOSS_WHISPER, CHAT_TYPE_BOSS_EMOTE, CHAT_TYPE_SAY, CHAT_TYPE_TEXT_EMOTE, CHAT_TYPE_WHISPER, CHAT_TYPE_YELL, ScriptInfo::ChatType, ScriptInfo::CheckIfExists, ScriptInfo::command, ScriptInfo::CreateItem, ScriptInfo::CreatureEntry, ScriptInfo::DespawnDelay, ScriptInfo::DespawnSelf, ScriptInfo::DestX, ScriptInfo::DestY, ScriptInfo::DestZ, ScriptInfo::Distance, ScriptInfo::Emote, ScriptInfo::EmoteID, ScriptInfo::Equip, EQUIP_ERR_OK, ScriptInfo::EquipmentID, Player::FailQuest(), ScriptInfo::FieldID, ScriptInfo::FieldSet, ScriptInfo::FieldValue, HashMapHolder< T >::Find(), ScriptInfo::Flags, ScriptInfo::FlagToggle, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_TRAP, GetClosestCreatureWithEntry(), GetCorpse(), GetCreature(), ScriptInfo::GetDebugInfo(), WorldObject::GetDistance(), GetGameObject(), GameTime::GetGameTime(), GameObject::GetGoType(), Object::GetGUID(), ObjectGuid::GetHigh(), WorldObject::GetMap(), Position::GetOrientation(), GetPet(), ObjectAccessor::GetPlayer(), GetScriptsMapByType(), GetTransport(), GO_READY, ScriptInfo::GOGuid, Player::GroupEventHappens(), Object::IsCreature(), Object::IsGameObject(), Object::IsPlayer(), ScriptInfo::IsRepeatable, GameObject::isSpawned(), Object::IsUnit(), WorldObject::IsWithinDistInMap(), ScriptInfo::ItemEntry, ScriptInfo::Kill, ScriptInfo::KillCredit, ScriptInfo::LoadPath, LOG_ERROR, m_scriptSchedule, ScriptInfo::MapID, ScriptInfo::Model, ScriptInfo::ModelID, Unit::MonsterMoveWithSpeed(), ScriptInfo::Movement, ScriptInfo::MovementDistance, ScriptInfo::MovementType, ScriptInfo::MoveTo, ScriptInfo::MovieID, Unit::NearTeleportTo(), NULL_BAG, NULL_SLOT, OBJECT_FIELD_ENTRY, ScriptInfo::Orientation, ScriptAction::ownerGUID, ScriptInfo::Path, ScriptInfo::PathID, ScriptInfo::PlayMovie, ScriptInfo::Playsound, ScriptInfo::PosX, ScriptInfo::PosY, ScriptInfo::PosZ, ScriptInfo::QuestExplored, ScriptInfo::QuestID, ScriptInfo::Radius, RANDOM_MOTION_TYPE, ScriptInfo::RemoveAura, ScriptInfo::RemoveCorpse, ScriptInfo::RespawnGameobject, Unit::Say(), ScriptAction::script, SCRIPT_COMMAND_ACTIVATE_OBJECT, SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT, SCRIPT_COMMAND_CAST_SPELL, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_CLOSE_GOSSIP, SCRIPT_COMMAND_CREATE_ITEM, SCRIPT_COMMAND_DESPAWN_SELF, SCRIPT_COMMAND_EMOTE, SCRIPT_COMMAND_EQUIP, SCRIPT_COMMAND_FIELD_SET, SCRIPT_COMMAND_FLAG_REMOVE, SCRIPT_COMMAND_FLAG_SET, SCRIPT_COMMAND_KILL, SCRIPT_COMMAND_KILL_CREDIT, SCRIPT_COMMAND_LOAD_PATH, SCRIPT_COMMAND_MODEL, SCRIPT_COMMAND_MOVE_TO, SCRIPT_COMMAND_MOVEMENT, SCRIPT_COMMAND_OPEN_DOOR, SCRIPT_COMMAND_ORIENTATION, SCRIPT_COMMAND_PLAY_SOUND, SCRIPT_COMMAND_PLAYMOVIE, SCRIPT_COMMAND_QUEST_EXPLORED, SCRIPT_COMMAND_REMOVE_AURA, SCRIPT_COMMAND_RESPAWN_GAMEOBJECT, SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_TELEPORT_TO, SCRIPT_COMMAND_TEMP_SUMMON_CREATURE, ScriptInfo::ScriptID, ScriptsStart(), ScriptInfo::ScriptType, ScriptInfo::SearchRadius, GameObject::SetLootState(), GameObject::SetRespawnTime(), SF_CASTSPELL_SEARCH_CREATURE, SF_CASTSPELL_SOURCE_TO_SOURCE, SF_CASTSPELL_SOURCE_TO_TARGET, SF_CASTSPELL_TARGET_TO_SOURCE, SF_CASTSPELL_TARGET_TO_TARGET, SF_CASTSPELL_TRIGGERED, SF_EMOTE_USE_STATE, SF_KILLCREDIT_REWARD_GROUP, SF_ORIENTATION_FACE_TARGET, SF_PLAYSOUND_DISTANCE_RADIUS, SF_PLAYSOUND_DISTANCE_SOUND, SF_PLAYSOUND_TARGET_PLAYER, SF_REMOVEAURA_REVERSE, SF_TALK_USE_PLAYER, SF_TELEPORT_USE_CREATURE, ScriptInfo::SoundID, ScriptAction::sourceGUID, ScriptInfo::SpellID, sScriptMgr, WorldObject::SummonTrigger(), sWaypointMgr, ScriptInfo::Talk, ScriptAction::targetGUID, ScriptInfo::TeleportTo, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, ScriptInfo::TempSummonCreature, Unit::TextEmote(), ScriptInfo::TextID, Object::ToGameObject(), Object::ToPlayer(), ObjectGuid::ToString(), Object::ToUnit(), ScriptInfo::TravelTime, UNIT_NPC_EMOTESTATE, WAYPOINT_MOTION_TYPE, Unit::Whisper(), and Unit::Yell().
Referenced by ScriptCommandStart(), ScriptsStart(), and Update().
void Map::ScriptsStart | ( | std::map< uint32, std::multimap< uint32, ScriptInfo > > const & | scripts, |
uint32 | id, | ||
Object * | source, | ||
Object * | target | ||
) |
Put scripts in the execution queue.
References ObjectGuid::Empty, GameTime::GetGameTime(), Object::GetGUID(), i_scriptLock, Object::IsItem(), m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), ScriptAction::sourceGUID, sScriptMgr, and ScriptAction::targetGUID.
Referenced by MotionTransport::DoEventIfAny(), FlightPathMovementGenerator::DoEventIfAny(), WorldSession::DoLootRelease(), Spell::EffectDummy(), Spell::EffectScriptEffect(), Spell::EffectSendEvent(), WaypointMovementGenerator< Creature >::OnArrived(), ScriptsProcess(), and GameObject::Use().
void Map::SendInitSelf | ( | Player * | player | ) |
References Player::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), UpdateData::Clear(), ByteBuffer::clear(), Player::GetAurasForTarget(), Object::GetGUID(), WorldObject::GetTransport(), Player::HaveAtClient(), LOG_DEBUG, Player::SendDirectMessage(), and ObjectGuid::ToString().
Referenced by AddPlayerToMap(), and WorldSession::HandlePlayerLoginToCharInWorld().
void Map::SendInitTransports | ( | Player * | player | ) |
References _transports, UpdateData::BuildPacket(), Player::GetSession(), WorldObject::GetTransport(), and WorldSession::SendPacket().
Referenced by AddPlayerToMap(), and WorldSession::HandlePlayerLoginToCharInWorld().
|
private |
References _updateObjects, ASSERT, Object::BuildUpdate(), ByteBuffer::clear(), and Object::IsInWorld().
Referenced by Update().
void Map::SendRemoveTransports | ( | Player * | player | ) |
References _transports, UpdateData::AddOutOfRangeGUID(), UpdateData::BuildPacket(), Player::GetSession(), WorldObject::GetTransport(), Player::m_clientGUIDs, and WorldSession::SendPacket().
Referenced by RemovePlayerFromMap().
void Map::SendToPlayers | ( | WorldPacket const * | data | ) | const |
References MapRefMgr::begin(), MapRefMgr::end(), and m_mapRefMgr.
Referenced by boss_ossirian::JustEngagedWith(), and InstanceScript::SendEncounterUnit().
void Map::SendZoneDynamicInfo | ( | Player * | player | ) |
References _defaultLight, _zoneDynamicInfo, WorldObject::GetZoneId(), Player::SendDirectMessage(), SMSG_OVERRIDE_LIGHT, and WorldPackets::Misc::Weather::Write().
Referenced by AddPlayerToMap(), and WorldSession::HandlePlayerLoginToCharInWorld().
References getNGrid(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setGridObjectDataLoaded().
Referenced by EnsureGridLoaded().
References ABORT, i_grids, LOG_ERROR, and MAX_NUMBER_OF_GRIDS.
Referenced by EnsureGridCreated_i(), Map(), and UnloadGrid().
|
inline |
References m_VisibleDistance.
Referenced by boss_nightbane::DoAction(), boss_nightbane::PathEndReached(), and instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState().
References _zoneDynamicInfo, MapRefMgr::begin(), MapRefMgr::end(), GetPlayers(), WorldPackets::Packet::GetRawPacket(), LinkedListHead::IsEmpty(), and WorldPackets::Misc::PlayMusic::Write().
Referenced by boss_the_lich_king::boss_the_lich_kingAI::DamageTaken(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), npc_gunship::npc_gunshipAI::JustDied(), npc_tirion_fordring_tft::npc_tirion_fordringAI::MovementInform(), boss_the_lich_king::boss_the_lich_kingAI::MovementInform(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), and npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI().
void Map::SetZoneOverrideLight | ( | uint32 | zoneId, |
uint32 | lightId, | ||
Milliseconds | fadeInTime | ||
) |
References _defaultLight, _zoneDynamicInfo, MapRefMgr::begin(), MapRefMgr::end(), GetPlayers(), LinkedListHead::IsEmpty(), ZoneDynamicInfo::LightFadeInTime, ZoneDynamicInfo::OverrideLightId, and SMSG_OVERRIDE_LIGHT.
Referenced by boss_the_lich_king::boss_the_lich_kingAI::DoAction(), boss_malygos::boss_malygosAI::EnterEvadeMode(), boss_malygos::boss_malygosAI::MovementInform(), boss_the_lich_king::boss_the_lich_kingAI::SpellHitTarget(), npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI(), and boss_malygos::boss_malygosAI::UpdateAI().
void Map::SetZoneWeather | ( | uint32 | zoneId, |
WeatherState | weatherId, | ||
float | weatherGrade | ||
) |
References _zoneDynamicInfo, MapRefMgr::begin(), MapRefMgr::end(), GetPlayers(), LinkedListHead::IsEmpty(), ZoneDynamicInfo::WeatherGrade, ZoneDynamicInfo::WeatherId, and WorldPackets::Misc::Weather::Write().
Referenced by boss_the_lich_king::boss_the_lich_kingAI::DoAction(), boss_akilzon::SetWeather(), boss_the_lich_king::boss_the_lich_kingAI::SpellHitTarget(), and npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI().
TempSummon * Map::SummonCreature | ( | uint32 | entry, |
Position const & | pos, | ||
SummonPropertiesEntry const * | properties = nullptr , |
||
uint32 | duration = 0 , |
||
WorldObject * | summoner = nullptr , |
||
uint32 | spellId = 0 , |
||
uint32 | vehId = 0 , |
||
bool | visibleBySummonerOnly = false |
||
) |
References AddToMap(), SummonPropertiesEntry::Category, Creature::Create(), ObjectGuid::Empty, EnsureGridLoaded(), SummonPropertiesEntry::Flags, Object::GetGUID(), Position::GetOrientation(), Unit::GetOwnerGUID(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), TempSummon::InitStats(), TempSummon::InitSummon(), ObjectGuid::IsPlayer(), Object::IsUnit(), Unit::IsVehicle(), PHASEMASK_NORMAL, Creature::SetHomePosition(), Unit::SetUInt32Value(), TempSummon::SetVisibleBySummonerOnly(), SUMMON_CATEGORY_ALLY, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_PUPPET, SUMMON_CATEGORY_UNK, SUMMON_CATEGORY_VEHICLE, SUMMON_CATEGORY_WILD, SUMMON_TYPE_GUARDIAN, SUMMON_TYPE_GUARDIAN2, SUMMON_TYPE_JEEVES, SUMMON_TYPE_LIGHTWELL, SUMMON_TYPE_MINION, SUMMON_TYPE_MINIPET, SUMMON_TYPE_TOTEM, SUMMON_TYPE_VEHICLE, SUMMON_TYPE_VEHICLE2, Object::ToCreature(), Object::ToUnit(), SummonPropertiesEntry::Type, UNIT_CREATED_BY_SPELL, UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, UNIT_MASK_PUPPET, UNIT_MASK_SUMMON, and UNIT_MASK_TOTEM.
Referenced by instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::ChromieWhisper(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::DoSummonGrandChampion(), Spell::EffectSummonType(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::HandleOutro(), spell_temple_of_atal_hakkar_awaken_the_soulflayer::HandleSendEvent(), spell_halion_damage_aoe_summon::HandleSummon(), spell_putricide_mutated_transformation::HandleSummon(), spell_wintergrasp_create_vehicle::HandleSummon(), boss_varos::boss_varosAI::JustDied(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnPlayerEnter(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), at_tyrannus_event_starter::OnTrigger(), instance_karazhan::instance_karazhan_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), spell_halion_twilight_phasing::Phase(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::ProcessEvent(), instance_sethekk_halls::instance_sethekk_halls_InstanceMapScript::ProcessEvent(), instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::ReplaceMoiraIfSaved(), boss_ossirian::Reset(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::ScheduleNextPortal(), instance_gundrak::instance_gundrak_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::SetData(), instance_scholomance::instance_scholomance_InstanceMapScript::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetData(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_violet_hold::instance_violet_hold_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SpawnLeviathanEncounterVehicles(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), SummonCreatureGroup(), Spell::SummonGuardian(), instance_zulaman::instance_zulaman_InstanceMapScript::SummonHostage(), instance_molten_core::instance_molten_core_InstanceMapScript::SummonMajordomoExecutus(), instance_blackrock_spire::instance_blackrock_spireMapScript::SummonSolakarWave(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::Update(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::Update(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_brann_bronzebeard_algalon::npc_brann_bronzebeard_algalonAI::UpdateAI(), and instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::UpdateEventState().
void Map::SummonCreatureGroup | ( | uint8 | group, |
std::list< TempSummon * > * | list = nullptr |
||
) |
Summons group of creatures.
group | Id of group to summon. |
list | List to store pointers to summoned creatures. |
References GetId(), sObjectMgr, SummonCreature(), and SUMMONER_TYPE_MAP.
Referenced by at_ancient_leaf::OnTrigger().
GameObject * Map::SummonGameObject | ( | uint32 | entry, |
float | x, | ||
float | y, | ||
float | z, | ||
float | ang, | ||
float | rotation0, | ||
float | rotation1, | ||
float | rotation2, | ||
float | rotation3, | ||
uint32 | respawnTime, | ||
bool | checkTransport = true |
||
) |
References AddToMap(), GameObject::Create(), GO_STATE_READY, LOG_ERROR, PHASEMASK_NORMAL, GameObject::SetRespawnTime(), GameObject::SetSpawnedByDefault(), GameObject::SetSpellId(), and sObjectMgr.
Referenced by instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnGameObjectCreate(), SummonGameObject(), and instance_sunken_temple::instance_sunken_temple_InstanceMapScript::Update().
GameObject * Map::SummonGameObject | ( | uint32 | entry, |
Position const & | pos, | ||
float | rotation0 = 0.0f , |
||
float | rotation1 = 0.0f , |
||
float | rotation2 = 0.0f , |
||
float | rotation3 = 0.0f , |
||
uint32 | respawnTime = 100 , |
||
bool | checkTransport = true |
||
) |
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and SummonGameObject().
void Map::SwitchGridContainers | ( | Creature * | obj, |
bool | on | ||
) |
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), AddWorldObject(), ASSERT, Cell::CellX(), Cell::CellY(), Acore::ComputeCellCoord(), Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::grid_x, Cell::grid_y, Cell::GridX(), Cell::GridY(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), WorldObject::IsPermanentWorldObject(), LOG_DEBUG, LOG_ERROR, Creature::m_isTempWorldObject, Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
void Map::SwitchGridContainers | ( | GameObject * | obj, |
bool | on | ||
) |
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), AddWorldObject(), ASSERT, Cell::CellX(), Cell::CellY(), Acore::ComputeCellCoord(), Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::grid_x, Cell::grid_y, Cell::GridX(), Cell::GridY(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), WorldObject::IsPermanentWorldObject(), LOG_ERROR, Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
void Map::SwitchGridContainers | ( | T * | obj, |
bool | on | ||
) |
|
inline |
References IsBattlegroundOrArena().
Referenced by npc_av_marshal_or_warmaster::npc_av_marshal_or_warmasterAI::AttackStart(), boss_drekthar::boss_drektharAI::AttackStart(), boss_vanndar::boss_vanndarAI::AttackStart(), WorldObject::CanSeeOrDetect(), npc_av_marshal_or_warmaster::npc_av_marshal_or_warmasterAI::EnterEvadeMode(), boss_drekthar::boss_drektharAI::EnterEvadeMode(), boss_vanndar::boss_vanndarAI::EnterEvadeMode(), MapMgr::GetNumPlayersInInstances(), Unit::isInAccessiblePlaceFor(), and npc_ioc_gunship_captain::npc_ioc_gunship_captainAI::UpdateAI().
|
inline |
References IsBattlegroundOrArena().
|
inline |
References IsDungeon().
Referenced by InstanceSaveMgr::_ResetOrWarnAll(), boss_flame_leviathan::boss_flame_leviathanAI::BindPlayers(), TransportMgr::CreateTransport(), npc_harrison_jones::DoAction(), WorldObject::GetInstanceScript(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::GossipHello(), instance_commandscript::HandleInstanceGetBossStateCommand(), instance_commandscript::HandleInstanceSaveDataCommand(), instance_commandscript::HandleInstanceSetBossStateCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), InstanceSave::InsertToDB(), InstanceHasScript(), boss_skeram::JustDied(), Unit::Kill(), LogEncounterFinished(), Condition::Meets(), AchievementCriteriaData::Meets(), instance_karazhan::instance_karazhan_InstanceMapScript::OnUnitDeath(), Player::ResetInstances(), Group::ResetInstances(), instance_karazhan::instance_karazhan_InstanceMapScript::SetData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetData(), WorldObject::SetZoneScript(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
References IsDungeon().
|
inline |
References Instanceable().
Referenced by MapMgr::DoForAllMaps(), and MapMgr::DoForAllMapsWithMapId().
|
inline |
References Instanceable().
|
virtual |
Reimplemented in InstanceMap, and MapInstanced.
References _corpseBones, _corpsesByCell, _corpsesByPlayer, _creaturesToMove, _gameObjectsToMove, _transports, AllTransportsEmpty(), AllTransportsRemovePassengers(), GridRefMgr< OBJECT >::end(), Corpse::RemoveFromWorld(), GameObject::RemoveFromWorld(), WorldObject::ResetMap(), and UnloadGrid().
Referenced by InstanceMap::UnloadAll(), and MapInstanced::UnloadAll().
bool Map::UnloadGrid | ( | NGridType & | ngrid | ) |
References ASSERT, MMAP::MMapFactory::createOrGetMMapMgr(), VMAP::VMapFactory::createOrGetVMapMgr(), GetId(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), GridMaps, i_InstanceId, i_objectsToRemove, LOG_DEBUG, MAX_NUMBER_OF_GRIDS, RemoveAllObjectsInRemoveList(), setNGrid(), GridMap::unloadData(), MMAP::MMapMgr::unloadMap(), VMAP::VMapMgr2::unloadMap(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllGrids().
Referenced by UnloadAll().
update worldsessions for existing players
update active cells around players and active objects
Reimplemented in InstanceMap, and MapInstanced.
References _creatureRespawnScheduler, _dynamicTree, _transports, _transportsUpdateIter, MapRefMgr::begin(), MapRefMgr::end(), WorldObject::FindMap(), HostileRefMgr::getFirst(), WorldObject::GetGridActivationRange(), Unit::getHostileRefMgr(), GetId(), GetInstanceId(), GetObjectsStore(), ThreatMgr::GetOwner(), Player::GetSession(), Reference< TO, FROM >::GetSource(), Player::GetViewpoint(), HandleDelayedVisibility(), i_scriptLock, Unit::IsInCombat(), Object::IsInWorld(), m_activeNonPlayers, m_activeNonPlayersIter, m_mapRefIter, m_mapRefMgr, m_scriptSchedule, METRIC_TAG, METRIC_VALUE, MoveAllCreaturesInMoveList(), MoveAllDynamicObjectsInMoveList(), MoveAllGameObjectsInMoveList(), HostileReference::next(), resetMarkedCells(), resetMarkedCellsLarge(), ScriptsProcess(), SendObjectUpdates(), sScriptMgr, Object::ToCreature(), Object::ToDynObject(), TaskScheduler::Update(), DynamicMapTree::update(), MotionTransport::Update(), WorldSession::Update(), Player::Update(), VisitNearbyCellsOf(), and VisitNearbyCellsOfPlayer().
Referenced by MapUpdateRequest::call(), InstanceMap::Update(), and MapInstanced::Update().
|
private |
void Map::UpdateEncounterState | ( | EncounterCreditType | type, |
uint32 | creditEntry, | ||
Unit * | source | ||
) |
References MapRefMgr::begin(), DungeonEncounter::creditEntry, DungeonEncounter::creditType, DungeonEncounter::dbcEntry, DungeonEncounterEntry::encounterIndex, MapRefMgr::end(), GetDifficulty(), GetId(), WorldObject::GetInstanceScript(), GetPlayers(), Is25ManRaid(), IsHeroic(), IsSharedDifficultyMap(), DungeonEncounter::lastEncounterDungeon, LogEncounterFinished(), RAID_DIFFICULTY_10MAN_NORMAL, RAID_DIFFICULTY_25MAN_NORMAL, sLFGMgr, sObjectMgr, and sScriptMgr.
Referenced by boss_eadric::boss_eadricAI::DamageTaken(), boss_illidari_council::DoAction(), Spell::finish(), instance_karazhan::instance_karazhan_InstanceMapScript::SetBossState(), boss_majordomo::boss_majordomoAI::SummonedCreatureDies(), and npc_grimstone::npc_grimstoneAI::WaypointReached().
void Map::UpdateIteratorBack | ( | Player * | player | ) |
References Player::GetMapRef(), m_mapRefIter, and MapReference::nocheck_prev().
Referenced by Player::ResetMap().
|
inline |
References Cell::CellX(), Cell::CellY(), EnsureGridLoaded(), getNGrid(), Cell::GridX(), Cell::GridY(), IsGridLoaded(), Cell::NoCreate(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
Referenced by Cell::Visit(), Cell::VisitCircle(), VisitNearbyCellsOf(), and VisitNearbyCellsOfPlayer().
void Map::VisitNearbyCellsOf | ( | WorldObject * | obj, |
TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > & | gridVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > & | worldVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > & | largeGridVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > & | largeWorldVisitor | ||
) |
References Cell::CalculateCellArea(), WorldObject::GetGridActivationRange(), Position::GetPositionX(), Position::GetPositionY(), CellArea::high_bound, isCellMarked(), isCellMarkedLarge(), Position::IsPositionValid(), CellArea::low_bound, markCell(), markCellLarge(), TOTAL_NUMBER_OF_CELLS_PER_MAP, Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update(), and VisitNearbyCellsOfPlayer().
void Map::VisitNearbyCellsOfPlayer | ( | Player * | player, |
TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > & | gridVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > & | worldVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > & | largeGridVisitor, | ||
TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > & | largeWorldVisitor | ||
) |
References Cell::CalculateCellArea(), Position::GetPositionX(), Position::GetPositionY(), CellArea::high_bound, isCellMarkedLarge(), Position::IsPositionValid(), CellArea::low_bound, markCellLarge(), MAX_VISIBILITY_DISTANCE, TOTAL_NUMBER_OF_CELLS_PER_MAP, Visit(), VisitNearbyCellsOf(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
|
friend |
|
private |
Referenced by AddCorpse(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
Referenced by AddCorpse(), GetCorpsesInCell(), RemoveCorpse(), and UnloadAll().
|
private |
Referenced by AddCorpse(), GetCorpseByPlayer(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
|
private |
Referenced by GetCreatureBySpawnIdStore(), and ScriptsProcess().
TaskScheduler Map::_creatureRespawnScheduler |
Referenced by ScheduleCreatureRespawn(), and Update().
|
private |
|
private |
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and UnloadAll().
|
private |
Referenced by SendZoneDynamicInfo(), and SetZoneOverrideLight().
|
private |
Referenced by AddDynamicObjectToMoveList(), and MoveAllDynamicObjectsInMoveList().
|
protected |
|
private |
Referenced by GetGameObjectBySpawnIdStore().
|
private |
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and UnloadAll().
|
private |
Referenced by DeleteRespawnTimes(), GetGORespawnTime(), LoadRespawnTimes(), RemoveGORespawnTime(), and SaveGORespawnTime().
|
private |
Referenced by GetGuidSequenceGenerator().
|
protected |
Referenced by GetInstanceResetPeriod(), and InstanceMap::InstanceMap().
|
private |
Referenced by GetCorpse(), GetCreature(), GetDynamicObject(), GetGameObject(), GetObjectsStore(), and GetPet().
|
protected |
|
protected |
Referenced by DelayedUpdate(), RemoveFromMap(), and Update().
|
private |
Referenced by AddUpdateObject(), RemoveUpdateObject(), and SendObjectUpdates().
|
private |
Referenced by SendZoneDynamicInfo(), SetZoneMusic(), SetZoneOverrideLight(), and SetZoneWeather().
CreatureGroupHolderType Map::CreatureGroupHolder |
Referenced by FormationMgr::AddCreatureToGroup(), and FormationMgr::RemoveCreatureFromGroup().
DataMap Map::CustomData |
|
protected |
Referenced by EnsureGridCreated().
|
private |
Referenced by EnsureGridCreated_i(), GetGrid(), LoadMap(), Map(), and UnloadGrid().
|
private |
Referenced by getNGrid(), and setNGrid().
|
protected |
Referenced by EnsureGridLoaded(), GetInstanceId(), LoadMap(), LoadMapAndVMap(), UnloadGrid(), and ~Map().
|
protected |
std::unordered_set<Unit*> Map::i_objectsForDelayedVisibility |
Referenced by HandleDelayedVisibility(), and Unit::Update().
|
private |
Referenced by AddObjectToRemoveList(), RemoveAllObjectsInRemoveList(), and UnloadGrid().
|
private |
Referenced by AddObjectToSwitchList(), and RemoveAllObjectsInRemoveList().
|
private |
Referenced by ScriptCommandStart(), ScriptsStart(), and Update().
|
protected |
Referenced by GetSpawnMode(), Is25ManRaid(), IsHeroic(), and IsRaidOrHeroicDungeon().
|
private |
Referenced by AddWorldObject(), RemoveWorldObject(), and ~Map().
|
protected |
Referenced by MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
|
protected |
Referenced by AddToActiveHelper(), GetActiveNonPlayersCount(), RemoveFromActiveHelper(), and Update().
|
protected |
Referenced by RemoveFromActiveHelper(), and Update().
|
protected |
Referenced by Update(), and UpdateIteratorBack().
|
protected |
Referenced by GetPlayers(), GetPlayersCountExceptGMs(), HavePlayers(), InstanceMap::PermBindAllPlayers(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), InstanceMap::Reset(), InstanceMap::SendResetWarnings(), SendToPlayers(), MapReference::sourceObjectDestroyLink(), MapReference::targetObjectBuildLink(), MapReference::targetObjectDestroyLink(), and Update().
|
private |
Referenced by GetParent(), LoadMap(), and Map().
|
private |
Referenced by ScriptCommandStart(), ScriptsProcess(), ScriptsStart(), Update(), and ~Map().
|
protected |
|
protected |
|
private |
Referenced by isCellMarked(), markCell(), and resetMarkedCells().
|
private |
Referenced by isCellMarkedLarge(), markCellLarge(), and resetMarkedCellsLarge().
|
protected |
Referenced by GetMMapLock().