![]() |
TrinityCore
|
#include <Map.h>
Inheritance diagram for Map:Public Member Functions | |
| Map (uint32 id, time_t, uint32 InstanceId, uint8 SpawnMode, Map *_parent=nullptr) | |
| virtual | ~Map () |
| MapEntry const * | GetEntry () const |
| bool | CanUnload (uint32 diff) |
| virtual bool | AddPlayerToMap (Player *) |
| virtual void | RemovePlayerFromMap (Player *, bool) |
| template<class T > | |
| bool | AddToMap (T *) |
| template<class T > | |
| void | RemoveFromMap (T *, bool) |
| void | VisitNearbyCellsOf (WorldObject *obj, TypeContainerVisitor< Trinity::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Trinity::ObjectUpdater, WorldTypeMapContainer > &worldVisitor) |
| virtual void | Update (uint32) |
| float | GetVisibilityRange () const |
| virtual void | InitVisibilityDistance () |
| void | PlayerRelocation (Player *, float x, float y, float z, float orientation) |
| void | CreatureRelocation (Creature *creature, float x, float y, float z, float ang, bool respawnRelocationOnFail=true) |
| void | GameObjectRelocation (GameObject *go, float x, float y, float z, float orientation, bool respawnRelocationOnFail=true) |
| void | DynamicObjectRelocation (DynamicObject *go, float x, float y, float z, float orientation) |
| template<class T , class CONTAINER > | |
| void | Visit (Cell const &cell, TypeContainerVisitor< T, CONTAINER > &visitor) |
| bool | IsRemovalGrid (float x, float y) const |
| bool | IsRemovalGrid (Position const &pos) const |
| bool | IsGridLoaded (uint32 gridId) const |
| bool | IsGridLoaded (float x, float y) const |
| bool | IsGridLoaded (Position const &pos) const |
| bool | GetUnloadLock (GridCoord const &p) const |
| void | SetUnloadLock (GridCoord const &p, bool on) |
| void | LoadGrid (float x, float y) |
| void | LoadAllCells () |
| bool | UnloadGrid (NGridType &ngrid, bool pForce) |
| void | GridMarkNoUnload (uint32 x, uint32 y) |
| void | GridUnmarkNoUnload (uint32 x, uint32 y) |
| virtual void | UnloadAll () |
| void | ResetGridExpiry (NGridType &grid, float factor=1) const |
| time_t | GetGridExpiry (void) const |
| uint32 | GetId () const |
| Map const * | GetParent () const |
| void | GetFullTerrainStatusForPosition (uint32 phaseMask, float x, float y, float z, PositionFullTerrainStatus &data, Optional< uint8 > reqLiquidType={}, float collisionHeight=2.03128f) const |
| ZLiquidStatus | GetLiquidStatus (uint32 phaseMask, float x, float y, float z, Optional< uint8 > ReqLiquidType, LiquidData *data=nullptr, float collisionHeight=2.03128f) const |
| 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 | GetAreaId (uint32 phaseMask, Position const &pos) const |
| uint32 | GetZoneId (uint32 phaseMask, float x, float y, float z) const |
| uint32 | GetZoneId (uint32 phaseMask, Position const &pos) const |
| void | GetZoneAndAreaId (uint32 phaseMask, uint32 &zoneid, uint32 &areaid, float x, float y, float z) const |
| void | GetZoneAndAreaId (uint32 phaseMask, uint32 &zoneid, uint32 &areaid, Position const &pos) const |
| float | GetWaterLevel (float x, float y) const |
| bool | IsInWater (uint32 phaseMask, float x, float y, float z, LiquidData *data=nullptr) const |
| bool | IsUnderWater (uint32 phaseMask, float x, float y, float z) const |
| void | MoveAllCreaturesInMoveList () |
| void | MoveAllGameObjectsInMoveList () |
| void | MoveAllDynamicObjectsInMoveList () |
| void | RemoveAllObjectsInRemoveList () |
| virtual void | RemoveAllPlayers () |
| bool | CreatureRespawnRelocation (Creature *c, bool diffGridOnly) |
| bool | GameObjectRespawnRelocation (GameObject *go, bool diffGridOnly) |
| bool | CheckGridIntegrity (Creature *c, bool moved) const |
| uint32 | GetInstanceId () const |
| uint8 | GetSpawnMode () const |
| Trinity::unique_weak_ptr< Map > | GetWeakPtr () const |
| void | SetWeakPtr (Trinity::unique_weak_ptr< Map > weakRef) |
| virtual EnterState | CannotEnter (Player *) |
| char const * | GetMapName () const |
| Difficulty | GetDifficultyID () const |
| MapDifficultyEntry const * | GetMapDifficulty () const |
| bool | Instanceable () const |
| bool | IsWorldMap () 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 | GetEntrancePos (int32 &mapid, float &x, float &y) const |
| void | AddObjectToRemoveList (WorldObject *obj) |
| void | AddObjectToSwitchList (WorldObject *obj, bool on) |
| virtual void | DelayedUpdate (uint32 diff) |
| void | resetMarkedCells () |
| bool | isCellMarked (uint32 pCellId) |
| void | markCell (uint32 pCellId) |
| bool | HavePlayers () const |
| uint32 | GetPlayersCountExceptGMs () const |
| bool | ActiveObjectsNearGrid (NGridType const &ngrid) const |
| void | AddWorldObject (WorldObject *obj) |
| void | RemoveWorldObject (WorldObject *obj) |
| void | SendToPlayers (WorldPacket const *data) const |
| bool | SendZoneMessage (uint32 zone, WorldPacket const *packet, WorldSession const *self=nullptr, uint32 team=0) const |
| Send a packet to all players (or players selected team) in the zone (except self if mentioned) | |
| 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. | |
| void | ScriptCommandStart (ScriptInfo const &script, uint32 delay, Object *source, Object *target) |
| void | AddToActive (WorldObject *obj) |
| void | RemoveFromActive (WorldObject *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, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Player * | GetPlayer (ObjectGuid const &guid) |
| Corpse * | GetCorpse (ObjectGuid const &guid) |
| Creature * | GetCreature (ObjectGuid const &guid) |
| GameObject * | GetGameObject (ObjectGuid const &guid) |
| Creature * | GetCreatureBySpawnId (ObjectGuid::LowType spawnId) const |
| GameObject * | GetGameObjectBySpawnId (ObjectGuid::LowType spawnId) const |
| WorldObject * | GetWorldObjectBySpawnId (SpawnObjectType type, ObjectGuid::LowType spawnId) const |
| Transport * | GetTransport (ObjectGuid const &guid) |
| DynamicObject * | GetDynamicObject (ObjectGuid const &guid) |
| Pet * | GetPet (ObjectGuid const &guid) |
| MapStoredObjectTypesContainer & | GetObjectsStore () |
| CreatureBySpawnIdContainer & | GetCreatureBySpawnIdStore () |
| CreatureBySpawnIdContainer const & | GetCreatureBySpawnIdStore () const |
| GameObjectBySpawnIdContainer & | GetGameObjectBySpawnIdStore () |
| GameObjectBySpawnIdContainer const & | GetGameObjectBySpawnIdStore () const |
| 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=2.03128f) const |
| float | GetMinHeight (float x, float y) const |
| 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 | GetHeight (Position const &pos, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| float | GetHeight (uint32 phasemask, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| float | GetHeight (uint32 phasemask, Position const &pos, 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 |
| void | Balance () |
| void | RemoveGameObjectModel (GameObjectModel const &model) |
| void | InsertGameObjectModel (GameObjectModel const &model) |
| bool | ContainsGameObjectModel (GameObjectModel const &model) const |
| float | GetGameObjectFloor (uint32 phasemask, float x, float y, float z, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) 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) |
| time_t | GetLinkedRespawnTime (ObjectGuid guid) const |
| time_t | GetRespawnTime (SpawnObjectType type, ObjectGuid::LowType spawnId) const |
| time_t | GetCreatureRespawnTime (ObjectGuid::LowType spawnId) const |
| time_t | GetGORespawnTime (ObjectGuid::LowType spawnId) const |
| void | UpdatePlayerZoneStats (uint32 oldZone, uint32 newZone) |
| void | SaveRespawnTime (SpawnObjectType type, ObjectGuid::LowType spawnId, uint32 entry, time_t respawnTime, uint32 gridId, CharacterDatabaseTransaction dbTrans=nullptr, bool startup=false) |
| void | SaveRespawnInfoDB (RespawnInfo const &info, CharacterDatabaseTransaction dbTrans=nullptr) |
| void | LoadRespawnTimes () |
| void | DeleteRespawnTimes () |
| 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 (uint32 zoneId, Player *player) const |
| void | SendZoneWeather (uint32 zoneId, Player *player) const |
| void | SendZoneWeather (ZoneDynamicInfo const &zoneDynamicInfo, Player *player) const |
| void | SendZoneText (uint32 zoneId, const char *text, WorldSession const *self=nullptr, uint32 team=0) const |
| Send a System Message to all players in the zone (except self if mentioned) | |
| void | SetZoneMusic (uint32 zoneId, uint32 musicId) |
| Weather * | GetOrGenerateZoneDefaultWeather (uint32 zoneId) |
| void | SetZoneWeather (uint32 zoneId, WeatherState weatherId, float intensity) |
| void | SetZoneOverrideLight (uint32 zoneId, uint32 areaLightId, uint32 overrideLightId, Milliseconds transitionTime) |
| void | UpdateAreaDependentAuras () |
| template<HighGuid high> | |
| ObjectGuid::LowType | GenerateLowGuid () |
| template<HighGuid high> | |
| ObjectGuid::LowType | GetMaxLowGuid () |
| void | AddUpdateObject (Object *obj) |
| void | RemoveUpdateObject (Object *obj) |
| size_t | GetActiveNonPlayersCount () const |
| virtual std::string | GetDebugInfo () const |
| void | ProcessRespawns () |
| void | ApplyDynamicModeRespawnScaling (WorldObject const *obj, ObjectGuid::LowType spawnId, uint32 &respawnDelay, uint32 mode) const |
| void | GetRespawnInfo (std::vector< RespawnInfo const * > &respawnData, SpawnObjectTypeMask types) const |
| void | Respawn (SpawnObjectType type, ObjectGuid::LowType spawnId, CharacterDatabaseTransaction dbTrans=nullptr) |
| void | RemoveRespawnTime (SpawnObjectType type, ObjectGuid::LowType spawnId, CharacterDatabaseTransaction dbTrans=nullptr, bool alwaysDeleteFromDB=false) |
| size_t | DespawnAll (SpawnObjectType type, ObjectGuid::LowType spawnId) |
| bool | ShouldBeSpawnedOnGridLoad (SpawnObjectType type, ObjectGuid::LowType spawnId) const |
| template<typename T > | |
| bool | ShouldBeSpawnedOnGridLoad (ObjectGuid::LowType spawnId) const |
| SpawnGroupTemplateData const * | GetSpawnGroupData (uint32 groupId) const |
| bool | IsSpawnGroupActive (uint32 groupId) const |
| bool | SpawnGroupSpawn (uint32 groupId, bool ignoreRespawn=false, bool force=false, std::vector< WorldObject * > *spawnedObjects=nullptr) |
| bool | SpawnGroupDespawn (uint32 groupId, bool deleteRespawnTimes=false, size_t *count=nullptr) |
| void | SetSpawnGroupInactive (uint32 groupId) |
| void | AddFarSpellCallback (FarSpellCallback &&callback) |
| 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 | DeleteFromWorld (Transport *transport) |
| template<> | |
| void | InitializeObject (Creature *obj) |
| template<> | |
| void | InitializeObject (GameObject *obj) |
| template<> | |
| bool | AddToMap (Transport *obj) |
| template<> | |
| void | RemoveFromMap (Transport *obj, bool remove) |
Public Member Functions inherited from GridRefManager< NGridType > | |
| GridReference< NGridType > * | getFirst () |
| GridReference< NGridType > * | getLast () |
| iterator | begin () |
| iterator | end () |
Public Member Functions inherited from RefManager< TO, FROM > | |
| RefManager () | |
| Reference< TO, FROM > * | getFirst () |
| Reference< TO, FROM > const * | getFirst () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| virtual | ~RefManager () |
| 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 | InitStateMachine () |
| static void | DeleteStateMachine () |
| static void | DeleteRespawnTimesInDB (uint16 mapId, uint32 instanceId) |
Public Attributes | |
| std::unordered_map< ObjectGuid::LowType, CreatureGroup * > | CreatureGroupHolder |
Protected Types | |
| typedef std::set< WorldObject * > | ActiveNonPlayers |
| typedef std::set< Transport * > | TransportsContainer |
Protected Member Functions | |
| void | SetUnloadReferenceLock (GridCoord const &p, bool on) |
Protected Member Functions inherited from LinkedListHead | |
| ~LinkedListHead () | |
Protected Attributes | |
| std::mutex | _mapLock |
| std::mutex | _gridLock |
| MapEntry const * | i_mapEntry |
| uint8 | i_spawnMode |
| uint32 | i_InstanceId |
| Trinity::unique_weak_ptr< Map > | m_weakRef |
| uint32 | m_unloadTimer |
| float | m_VisibleDistance |
| DynamicMapTree | _dynamicTree |
| MapRefManager | m_mapRefManager |
| MapRefManager::iterator | m_mapRefIter |
| int32 | m_VisibilityNotifyPeriod |
| 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::function<void(Map*)> Map::FarSpellCallback |
| typedef std::unordered_multimap<ObjectGuid::LowType, GameObject*> Map::GameObjectBySpawnIdContainer |
| typedef MapRefManager Map::PlayerList |
|
private |
|
protected |
| enum Map::EnterState |
Definition at line 272 of file Map.cpp.
References _weatherUpdateTimer, _zonePlayerCountMap, MMAP::MMapFactory::createOrGetMMapManager(), GetId(), GetInstanceId(), GridMaps, IN_MILLISECONDS, InitVisibilityDistance(), MMAP::MMapManager::loadMapInstance(), m_parentMap, MAX_NUMBER_OF_GRIDS, IntervalTimer::SetInterval(), setNGrid(), and sWorld.
|
virtual |
Definition at line 88 of file Map.cpp.
References ASSERT, MMAP::MMapFactory::createOrGetMMapManager(), GetId(), i_InstanceId, i_worldObjects, WorldObject::IsStoredInWorldObjectGridContainer(), m_scriptSchedule, WorldObject::RemoveFromWorld(), WorldObject::ResetMap(), sMapMgr, UnloadAllRespawnInfos(), and MMAP::MMapManager::unloadMapInstance().
|
inlineprivate |
Definition at line 302 of file MapScripts.cpp.
References GetGameObjectBySpawnIdStore(), and WorldObject::GetMap().
Referenced by _ScriptProcessDoor(), and ScriptsProcess().
|
inlineprivate |
Definition at line 223 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), TC_LOG_ERROR, Object::ToCreature(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 124 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), TC_LOG_ERROR, and Object::ToCreature().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 157 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), TC_LOG_ERROR, and Object::ToGameObject().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 208 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), TC_LOG_ERROR, Object::ToPlayer(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 102 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUID(), Object::GetTypeId(), TC_LOG_ERROR, and Object::ToPlayer().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 190 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), Object::IsUnit(), TC_LOG_ERROR, ObjectGuid::ToString(), and Object::ToUnit().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 238 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetGUID(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 254 of file MapScripts.cpp.
References _FindGameObject(), ScriptInfo::command, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, ScriptInfo::GetDebugInfo(), GameObject::GetGoState(), GameObject::GetGoType(), Object::GetGUID(), GO_STATE_READY, ScriptInfo::GOGuid, Object::IsUnit(), ScriptInfo::ResetDelay, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_OPEN_DOOR, TC_LOG_ERROR, Object::ToGameObject(), ScriptInfo::ToggleDoor, ObjectGuid::ToString(), and GameObject::UseDoorOrButton().
Referenced by ScriptsProcess().
| bool Map::ActiveObjectsNearGrid | ( | NGridType const & | ngrid | ) | const |
Definition at line 3695 of file Map.cpp.
References MapRefManager::begin(), Trinity::ComputeCellCoord(), CoordPair< LIMIT >::dec_x(), CoordPair< LIMIT >::dec_y(), MapRefManager::end(), Position::GetPositionX(), Position::GetPositionY(), GetVisibilityRange(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), CoordPair< LIMIT >::inc_x(), CoordPair< LIMIT >::inc_y(), m_activeNonPlayers, m_mapRefManager, MAX_NUMBER_OF_CELLS, SIZE_OF_GRID_CELL, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by UnloadGrid(), and ActiveState::Update().
| void Map::AddCorpse | ( | Corpse * | corpse | ) |
Definition at line 4598 of file Map.cpp.
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 |
Definition at line 1207 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by CreatureRelocation().
|
private |
Definition at line 1245 of file Map.cpp.
References _dynamicObjectsToMove, _dynamicObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by DynamicObjectRelocation().
| void Map::AddFarSpellCallback | ( | FarSpellCallback && | callback | ) |
Definition at line 3518 of file Map.cpp.
References _farSpellCallbacks.
Referenced by Spell::SelectEffectTypeImplicitTargets().
|
private |
Definition at line 1226 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by GameObjectRelocation().
| void Map::AddObjectToRemoveList | ( | WorldObject * | obj | ) |
Definition at line 3562 of file Map.cpp.
References ASSERT, WorldObject::CleanupsBeforeDelete(), GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), and i_objectsToRemove.
Referenced by WorldObject::AddObjectToRemoveList(), DespawnAll(), MoveAllCreaturesInMoveList(), and MoveAllGameObjectsInMoveList().
| void Map::AddObjectToSwitchList | ( | WorldObject * | obj, |
| bool | on | ||
| ) |
Definition at line 3571 of file Map.cpp.
References ABORT, ASSERT, GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), Object::GetTypeId(), i_objectsToSwitch, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by WorldObject::SetIsStoredInWorldObjectGridContainer().
|
virtual |
Reimplemented in InstanceMap, and BattlegroundMap.
Definition at line 583 of file Map.cpp.
References AddToGrid(), Player::AddToWorld(), ASSERT, Trinity::ComputeCellCoord(), ConvertCorpseToBones(), EnsureGridLoadedForActiveObject(), Object::GetGUID(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Unit::IsAlive(), CoordPair< LIMIT >::IsCoordValid(), Player::m_clientGUIDs, SendInitSelf(), SendInitTransports(), Player::SetMap(), sScriptMgr, TC_LOG_ERROR, ObjectGuid::ToString(), Player::UpdateObjectVisibility(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by InstanceMap::AddPlayerToMap(), BattlegroundMap::AddPlayerToMap(), WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
|
private |
Definition at line 3137 of file Map.cpp.
References _respawnTimes, ABORT_MSG, ASSERT, DeleteRespawnInfo(), GetRespawnMapForType(), RespawnInfoWithHandle::handle, RespawnInfo::respawnTime, RespawnInfo::spawnId, TC_LOG_ERROR, RespawnInfo::type, and SpawnMetadata::TypeHasData().
Referenced by SaveRespawnTime().
| void Map::AddToActive | ( | WorldObject * | obj | ) |
Definition at line 3732 of file Map.cpp.
References AddToActiveHelper(), Trinity::ComputeGridCoord(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), GameObject::GetSpawnId(), Object::GetTypeId(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::incUnloadActiveLock(), TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), ObjectGuid::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by AddObjectHelper(), AddToMap(), and WorldObject::setActive().
|
inlineprivate |
Definition at line 812 of file Map.h.
Referenced by AddToActive().
Definition at line 354 of file Map.cpp.
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::IsStoredInWorldObjectGridContainer().
Definition at line 321 of file Map.cpp.
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::IsStoredInWorldObjectGridContainer(), and MapObject::SetCurrentCell().
| void Map::AddToGrid | ( | DynamicObject * | obj, |
| Cell const & | cell | ||
| ) |
Definition at line 342 of file Map.cpp.
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::IsStoredInWorldObjectGridContainer(), and MapObject::SetCurrentCell().
| void Map::AddToGrid | ( | GameObject * | obj, |
| Cell const & | cell | ||
| ) |
Definition at line 333 of file Map.cpp.
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 MapObject::SetCurrentCell().
|
private |
Definition at line 311 of file Map.cpp.
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(), CreatureCellRelocation(), DynamicObjectCellRelocation(), GameObjectCellRelocation(), and PlayerRelocation().
| bool Map::AddToMap | ( | T * | obj | ) |
Definition at line 630 of file Map.cpp.
References AddToActive(), AddToGrid(), ASSERT, Trinity::ComputeCellCoord(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), Cell::GridX(), Cell::GridY(), InitializeObject(), CoordPair< LIMIT >::IsCoordValid(), TC_LOG_DEBUG, TC_LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Battleground::AddCreature(), Battleground::AddObject(), Player::BuildPlayerRepop(), ConvertCorpseToBones(), GameObject::Create(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), TransportMgr::CreateTransport(), Transport::DelayedTeleportTransport(), Spell::EffectCreateTamedPet(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTameCreature(), Spell::EffectTransmitted(), GameEventMgr::GameEventSpawn(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Pet::LoadPetFromDB(), GameObject::Refresh(), ScriptsProcess(), Battlefield::SpawnCreature(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), Battlefield::SpawnGameObject(), SummonCreature(), WorldObject::SummonGameObject(), Transport::SummonPassenger(), Player::SummonPet(), and GameObject::Update().
| bool Map::AddToMap | ( | Transport * | obj | ) |
Definition at line 677 of file Map.cpp.
References _transports, GameObject::AddToWorld(), GridRefManager< NGridType >::begin(), Object::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), Trinity::ComputeCellCoord(), MapRefManager::end(), Object::GetGUID(), GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), CoordPair< LIMIT >::IsCoordValid(), LinkedListHead::isEmpty(), Object::IsInWorld(), TC_LOG_ERROR, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 620 of file Map.h.
Referenced by WorldObject::AddToObjectUpdate().
|
inline |
Definition at line 461 of file Map.h.
Referenced by WorldObject::SetMap(), SwitchGridContainers(), and SwitchGridContainers().
| void Map::ApplyDynamicModeRespawnScaling | ( | WorldObject const * | obj, |
| ObjectGuid::LowType | spawnId, | ||
| uint32 & | respawnDelay, | ||
| uint32 | mode | ||
| ) | const |
Definition at line 3312 of file Map.cpp.
References _zonePlayerCountMap, ASSERT, CONFIG_RESPAWN_DYNAMICMINIMUM_CREATURE, CONFIG_RESPAWN_DYNAMICMINIMUM_GAMEOBJECT, CONFIG_RESPAWN_DYNAMICRATE_CREATURE, CONFIG_RESPAWN_DYNAMICRATE_GAMEOBJECT, SpawnGroupTemplateData::flags, WorldObject::GetMap(), Object::GetTypeId(), WorldObject::GetZoneId(), IsBattlegroundOrArena(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_DYNAMIC_SPAWN_RATE, SpawnMetadata::spawnGroupData, sWorld, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by Creature::ForcedDespawn(), Creature::setDeathState(), and GameObject::Update().
|
inline |
Definition at line 554 of file Map.h.
Referenced by EnsureGridLoaded().
|
inlineprivate |
Definition at line 675 of file Map.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link().
Referenced by EnsureGridCreated_i().
|
inlinevirtual |
Reimplemented in MapInstanced, InstanceMap, and BattlegroundMap.
Definition at line 429 of file Map.h.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), and WorldSession::HandleMoveWorldportAck().
| bool Map::CheckGridIntegrity | ( | Creature * | c, |
| bool | moved | ||
| ) | const |
Definition at line 2907 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), MapObject::GetCurrentCell(), Object::GetGUID(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by CreatureRelocation().
|
private |
Definition at line 3034 of file Map.cpp.
References _creatureBySpawnIdStore, _gameobjectBySpawnIdStore, ABORT_MSG, ASSERT, CONFIG_RESPAWN_DYNAMIC_ESCORTNPC, RespawnInfo::entry, SpawnGroupTemplateData::flags, GameTime::GetGameTime(), GetId(), GetLinkedRespawnTime(), SpawnGroupTemplateData::groupId, Unit::IsAlive(), Creature::IsEscorted(), IsSpawnGroupActive(), RespawnInfo::respawnTime, sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_ESCORTQUESTNPC, SpawnMetadata::spawnGroupData, RespawnInfo::spawnId, sWorld, RespawnInfo::type, urand(), and WEEK.
Referenced by ProcessRespawns().
|
inline |
| Corpse * Map::ConvertCorpseToBones | ( | ObjectGuid const & | ownerGuid, |
| bool | insignia = false |
||
| ) |
Definition at line 4629 of file Map.cpp.
References AddCorpse(), AddToMap(), CharacterDatabase, CONFIG_DEATH_BONES_BG_OR_ARENA, CONFIG_DEATH_BONES_WORLD, CORPSE_FLAG_BONES, Corpse::Create(), Corpse::DeleteFromDB(), Corpse::GetCellCoord(), GetCorpseByPlayer(), Corpse::GetCorpseDynamicFlags(), Corpse::GetCorpseFlags(), ObjectGuid::GetCounter(), Corpse::GetDisplayId(), Corpse::GetFaceId(), Corpse::GetFacialStyle(), Object::GetGUID(), Corpse::GetHairColorId(), Corpse::GetHairStyleId(), Position::GetOrientation(), Corpse::GetOwnerGUID(), Corpse::GetPartyGUID(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Corpse::GetRace(), Corpse::GetSex(), Corpse::GetSkinId(), IsBattlegroundOrArena(), IsRemovalGrid(), Position::Relocate(), RemoveCorpse(), Corpse::ReplaceAllCorpseDynamicFlags(), Corpse::ReplaceAllCorpseFlags(), Corpse::SetCellCoord(), Corpse::SetDisplayId(), Corpse::SetFaceId(), Corpse::SetFacialStyle(), Corpse::SetHairColorId(), Corpse::SetHairStyleId(), Corpse::SetOwnerGUID(), Corpse::SetPartyGUID(), WorldObject::SetPhaseMask(), Corpse::SetRace(), Corpse::SetSex(), Corpse::SetSkinId(), and sWorld.
Referenced by AddPlayerToMap(), Player::RemovedInsignia(), and RemoveOldCorpses().
Definition at line 1406 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), Unit::GetCharmerOrOwnerGUID(), MapObject::GetCurrentCell(), Object::GetGUID(), Cell::GridX(), Cell::GridY(), WorldObject::isActiveObject(), IsGridLoaded(), ObjectGuid::IsPlayer(), GridObject< T >::RemoveFromGrid(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by CreatureRespawnRelocation(), and MoveAllCreaturesInMoveList().
| void Map::CreatureRelocation | ( | Creature * | creature, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| bool | respawnRelocationOnFail = true |
||
| ) |
Definition at line 1108 of file Map.cpp.
References AddCreatureToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetGUID(), getNGrid(), Unit::GetVehicleKit(), Cell::GridX(), Cell::GridY(), Unit::IsVehicle(), Position::Relocate(), Vehicle::RelocatePassengers(), RemoveCreatureFromMoveList(), TC_LOG_DEBUG, ObjectGuid::ToString(), Unit::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by Creature::RemoveCorpse(), Transport::UpdatePassengerPositions(), and Unit::UpdatePosition().
| bool Map::CreatureRespawnRelocation | ( | Creature * | c, |
| bool | diffGridOnly | ||
| ) |
Definition at line 1592 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), MotionMaster::Clear(), Unit::CombatStop(), CreatureCellRelocation(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetGUID(), Unit::GetMotionMaster(), Creature::GetRespawnPosition(), Cell::GridX(), Cell::GridY(), MotionMaster::Initialize(), Position::Relocate(), TC_LOG_DEBUG, ObjectGuid::ToString(), Unit::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by MoveAllCreaturesInMoveList(), and ObjectGridEvacuator::Visit().
|
virtual |
Reimplemented in MapInstanced.
Definition at line 3523 of file Map.cpp.
References _farSpellCallbacks, _transports, _transportsUpdateIter, ASSERT, Transport::DelayedUpdate(), GridRefManager< OBJECT >::end(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), IsBattlegroundOrArena(), Object::IsInWorld(), MAX_GRID_STATE, RemoveAllObjectsInRemoveList(), si_GridStates, and GridState::Update().
Referenced by MapInstanced::DelayedUpdate().
| void Map::DeleteCorpseData | ( | ) |
Definition at line 4589 of file Map.cpp.
References CHAR_DEL_CORPSES_FROM_MAP, CharacterDatabase, GetId(), GetInstanceId(), and PreparedStatementBase::setUInt32().
Referenced by InstanceSaveManager::_ResetInstance(), and InstanceMap::UnloadAll().
| void Map::DeleteFromWorld | ( | Player * | player | ) |
Definition at line 471 of file Map.cpp.
References ObjectAccessor::RemoveObject(), and RemoveUpdateObject().
|
private |
Definition at line 464 of file Map.cpp.
Referenced by RemoveFromMap(), RemoveFromMap(), and RemovePlayerFromMap().
| void Map::DeleteFromWorld | ( | Transport * | transport | ) |
Definition at line 479 of file Map.cpp.
References ObjectAccessor::RemoveObject().
|
private |
Definition at line 3203 of file Map.cpp.
References _respawnTimes, ASSERT, DeleteRespawnInfoFromDB(), GetId(), GetRespawnMapForType(), RespawnInfo::spawnId, and RespawnInfo::type.
Referenced by AddRespawnInfo().
|
private |
Definition at line 3225 of file Map.cpp.
References CHAR_DEL_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by DeleteRespawnInfo().
|
inline |
Definition at line 582 of file Map.h.
Referenced by InstanceSaveManager::_ResetInstance(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), and InstanceMap::UnloadAll().
Definition at line 4529 of file Map.cpp.
References CHAR_DEL_ALL_RESPAWNS, CharacterDatabase, PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by InstanceSaveManager::_ResetInstance().
|
static |
Definition at line 264 of file Map.cpp.
References GRID_STATE_ACTIVE, GRID_STATE_IDLE, GRID_STATE_INVALID, GRID_STATE_REMOVAL, and si_GridStates.
Referenced by MapManager::UnloadAll().
| size_t Map::DespawnAll | ( | SpawnObjectType | type, |
| ObjectGuid::LowType | spawnId | ||
| ) |
Definition at line 3114 of file Map.cpp.
References AddObjectToRemoveList(), GetCreatureBySpawnIdStore(), GetGameObjectBySpawnIdStore(), Trinity::Containers::MapEqualRange(), SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by SpawnGroupDespawn().
|
private |
Definition at line 3235 of file Map.cpp.
References ABORT_MSG, GetId(), IsGridLoaded(), Creature::LoadFromDB(), GameObject::LoadFromDB(), SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by ProcessRespawns().
|
private |
Definition at line 1531 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), MapObject::GetCurrentCell(), Object::GetGUID(), Cell::GridX(), Cell::GridY(), WorldObject::isActiveObject(), IsGridLoaded(), GridObject< T >::RemoveFromGrid(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by MoveAllDynamicObjectsInMoveList().
| void Map::DynamicObjectRelocation | ( | DynamicObject * | go, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation | ||
| ) |
Definition at line 1174 of file Map.cpp.
References AddDynamicObjectToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveDynamicObjectFromMoveList(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by Transport::UpdatePassengerPositions().
|
private |
Definition at line 485 of file Map.cpp.
References _gridLock, and EnsureGridCreated_i().
Referenced by AddToMap(), CreatureCellRelocation(), DynamicObjectCellRelocation(), EnsureGridLoaded(), GameObjectCellRelocation(), GetGrid(), and LoadMap().
|
private |
Definition at line 493 of file Map.cpp.
References buildNGridLinkage(), CONFIG_GRID_UNLOAD, GetId(), getNGrid(), GRID_STATE_IDLE, GridMaps, i_gridExpiry, i_InstanceId, LoadMapAndVMap(), MAX_NUMBER_OF_GRIDS, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetGridState(), setNGrid(), sWorld, TC_LOG_DEBUG, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by EnsureGridCreated().
|
private |
Definition at line 533 of file Map.cpp.
References ASSERT, Balance(), EnsureGridCreated(), GetId(), getNGrid(), Cell::GridX(), Cell::GridY(), i_InstanceId, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded(), ObjectGridLoader::LoadN(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setGridObjectDataLoaded(), and TC_LOG_DEBUG.
Referenced by CreatureCellRelocation(), EnsureGridLoadedForActiveObject(), GridMarkNoUnload(), LoadGrid(), and Visit().
|
private |
Definition at line 517 of file Map.cpp.
References ASSERT, EnsureGridLoaded(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), Object::GetGUID(), GetId(), getNGrid(), GRID_STATE_ACTIVE, Cell::GridX(), Cell::GridY(), ResetGridExpiry(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetGridState(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by AddPlayerToMap(), AddToMap(), CreatureCellRelocation(), DynamicObjectCellRelocation(), GameObjectCellRelocation(), and PlayerRelocation().
|
static |
Definition at line 109 of file Map.cpp.
References u_map_magic::asChar, u_map_magic::asUInt, MapMagic, map_fileheader::mapMagic, MapVersionMagic, Trinity::StringFormat(), sWorld, TC_LOG_ERROR, and map_fileheader::versionMagic.
Referenced by MapManager::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
|
static |
Definition at line 138 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), VMAP::FileNotFound, VMAP::Success, sWorld, TC_LOG_ERROR, and VMAP::VersionMismatch.
Referenced by MapManager::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
|
private |
Definition at line 1470 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), MapObject::GetCurrentCell(), Object::GetGUID(), Cell::GridX(), Cell::GridY(), WorldObject::isActiveObject(), IsGridLoaded(), GridObject< T >::RemoveFromGrid(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by GameObjectRespawnRelocation(), and MoveAllGameObjectsInMoveList().
| void Map::GameObjectRelocation | ( | GameObject * | go, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| bool | respawnRelocationOnFail = true |
||
| ) |
Definition at line 1140 of file Map.cpp.
References AddGameObjectToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveGameObjectFromMoveList(), TC_LOG_DEBUG, ObjectGuid::ToString(), GameObject::UpdateModelPosition(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by Transport::UpdatePassengerPositions().
| bool Map::GameObjectRespawnRelocation | ( | GameObject * | go, |
| bool | diffGridOnly | ||
| ) |
Definition at line 1623 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), Cell::DiffGrid(), GameObjectCellRelocation(), MapObject::GetCurrentCell(), Object::GetGUID(), GameObject::GetRespawnPosition(), Cell::GridX(), Cell::GridY(), Position::Relocate(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by MoveAllGameObjectsInMoveList(), and ObjectGridEvacuator::Visit().
|
inline |
Definition at line 607 of file Map.h.
References Map.
Referenced by Battleground::AddCreature(), 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::LoadFromDB(), GameObject::LoadFromDB(), Pet::LoadPetFromDB(), Battlefield::SpawnCreature(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), Battlefield::SpawnGameObject(), WorldObject::SummonGameObject(), Transport::SummonPassenger(), and Player::SummonPet().
|
inline |
Definition at line 630 of file Map.h.
Referenced by debug_commandscript::HandleDebugObjectCountMap().
Definition at line 2581 of file Map.cpp.
References MapEntry::AreaTableID, GetAreaInfo(), GetGrid(), GetWMOAreaTableEntryByTripple(), GROUND_HEIGHT_TOLERANCE, i_mapEntry, and INVALID_HEIGHT.
Referenced by MapManager::GetAreaId(), GetLiquidStatus(), GetZoneAndAreaId(), and GetZoneId().
Definition at line 385 of file Map.h.
References GetAreaId(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by GetAreaId().
| bool Map::GetAreaInfo | ( | uint32 | phaseMask, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| uint32 & | mogpflags, | ||
| int32 & | adtId, | ||
| int32 & | rootId, | ||
| int32 & | groupId | ||
| ) | const |
Definition at line 2543 of file Map.cpp.
References _dynamicTree, VMAP::AreaAndLiquidData::areaInfo, VMAP::VMapFactory::createOrGetVMapManager(), flags, VMAP::AreaAndLiquidData::floorZ, DynamicMapTree::getAreaAndLiquidData(), VMAP::IVMapManager::getAreaAndLiquidData(), GetGrid(), and GetId().
Referenced by GetAreaId().
| Corpse * Map::GetCorpse | ( | ObjectGuid const & | guid | ) |
Definition at line 4387 of file Map.cpp.
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetCorpse(), and ScriptsProcess().
|
inline |
Definition at line 528 of file Map.h.
Referenced by ConvertCorpseToBones(), and Player::GetCorpse().
Definition at line 519 of file Map.h.
Referenced by ObjectWorldLoader::Visit().
| Creature * Map::GetCreature | ( | ObjectGuid const & | guid | ) |
Definition at line 4392 of file Map.cpp.
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by Battleground::_ProcessResurrect(), spell_sha_sentry_totem::AfterApply(), instance_naxxramas::instance_naxxramas_InstanceMapScript::CheckAchievementCriteriaMeet(), spell_sha_fire_nova::CheckFireTotem(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), InstanceScript::DoCastSpellOnPlayer(), WorldSession::DoLootRelease(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectDestroyAllTotems(), instance_oculus::instance_oculus_InstanceMapScript::FreeDragons(), Battleground::GetBGCreature(), Battlefield::GetCreature(), InstanceScript::GetCreature(), ObjectAccessor::GetCreature(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap(), instance_oculus::instance_oculus_InstanceMapScript::GreaterWhelps(), WorldSession::HandleAutostoreLootItemOpcode(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::HandleCavernEventTrigger(), spell_sha_fire_nova::HandleDummy(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::HandleHeroicAttempts(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), spell_sha_stoneclaw_totem::HandleScriptEffect(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::InitiateArthasEvent(), TempSummon::InitStats(), Unit::isAttackingPlayer(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::IsWaveAllDead(), Player::KilledMonsterCredit(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::MissingPlagueCrates(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreaturesInside(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::MoveNPCIfAlive(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), spell_malygos_destroy_platform_channel::OnRemove(), instance_uldaman::instance_uldaman_InstanceMapScript::OnUnitDeath(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnUnitDeath(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnUnitDeath(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::OnUnitDeath(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), instance_naxxramas::instance_naxxramas_InstanceMapScript::OnUnitDeath(), instance_oculus::instance_oculus_InstanceMapScript::OnUnitDeath(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnUnitDeath(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::OnUnitDeath(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::PowerSparksHandling(), instance_blackrock_spire::instance_blackrock_spireMapScript::ProcessEvent(), instance_uldaman::instance_uldaman_InstanceMapScript::ProcessEvent(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::ProcessEvent(), instance_oculus::instance_oculus_InstanceMapScript::ProcessEvent(), instance_ulduar::instance_ulduar_InstanceMapScript::ProcessEvent(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::ReadSaveDataMore(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), ScriptsProcess(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SendAddsUpStairs(), Player::SendLoot(), instance_uldaman::instance_uldaman_InstanceMapScript::SetBossState(), InstanceScript::SetBossState(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetBossState(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetBossState(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetBossState(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetBossState(), instance_oculus::instance_oculus_InstanceMapScript::SetBossState(), instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState(), instance_black_temple::instance_black_temple_InstanceMapScript::SetBossState(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetBossState(), instance_arcatraz::instance_arcatraz_InstanceMapScript::SetBossState(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_blackrock_spire::instance_blackrock_spireMapScript::SetData(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::SetData(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::SetData(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_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_blood_furnace::instance_blood_furnace_InstanceMapScript::SetData(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), Unit::SetPhaseMask(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::TombOfSevenEvent(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::TombOfSevenReset(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::Update(), instance_deadmines::instance_deadmines_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), instance_oculus::instance_oculus_InstanceMapScript::Update(), instance_ulduar::instance_ulduar_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), Update(), Player::UpdateTriggerVisibility(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
| Creature * Map::GetCreatureBySpawnId | ( | ObjectGuid::LowType | spawnId | ) | const |
Definition at line 4397 of file Map.cpp.
References GetCreatureBySpawnIdStore().
Referenced by npc_living_mojo::JustEngagedWith().
|
inline |
Definition at line 512 of file Map.h.
Referenced by FormationMgr::AddCreatureToGroup(), Creature::AddToWorld(), DespawnAll(), SmartScript::FindCreatureNear(), OPvPCapturePointNA::GetAliveGuardsCount(), GetCreatureBySpawnId(), ChatHandler::GetCreatureFromPlayerMapByDbGuid(), list_commandscript::HandleListCreatureCommand(), Creature::LoadFromDB(), and GameEventMgr::UpdateEventNPCFlags().
|
inline |
|
inline |
Definition at line 574 of file Map.h.
References SPAWN_TYPE_CREATURE.
Referenced by Transport::CreateNPCPassenger(), GetLinkedRespawnTime(), npc_commandscript::HandleNpcInfoCommand(), and Creature::LoadFromDB().
|
virtual |
Reimplemented in InstanceMap.
Definition at line 4838 of file Map.cpp.
References GetDifficultyID(), GetId(), GetInstanceId(), and HavePlayers().
Referenced by InstanceMap::GetDebugInfo().
|
inline |
Definition at line 433 of file Map.h.
Referenced by InstanceMap::CannotEnter(), Player::CanRollForItemInLFG(), Spell::CheckCast(), Player::CheckInstanceValidity(), spell_malygos_arcane_storm::FilterTargets(), GetDebugInfo(), GetMapDifficulty(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleMoveWorldportAck(), Player::inRandomLfgDungeon(), npc_living_inferno::IsSummonedBy(), boss_freya::boss_freyaAI::JustDied(), Player::LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), InstanceMap::PermBindAllPlayers(), InstanceMap::Reset(), Player::RewardReputation(), InstanceMap::SendResetWarnings(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), and InstanceScript::UpdateEncounterState().
| DynamicObject * Map::GetDynamicObject | ( | ObjectGuid const & | guid | ) |
Definition at line 4444 of file Map.cpp.
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetDynamicObject().
| bool Map::GetEntrancePos | ( | int32 & | mapid, |
| float & | x, | ||
| float & | y | ||
| ) | const |
Definition at line 4277 of file Map.cpp.
References MapEntry::GetEntrancePos(), and i_mapEntry.
|
inline |
Definition at line 308 of file Map.h.
Referenced by MapInstanced::CreateInstanceForPlayer(), Group::GetBoundInstance(), and InstanceMap::GetMaxPlayers().
| void Map::GetFullTerrainStatusForPosition | ( | uint32 | phaseMask, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| PositionFullTerrainStatus & | data, | ||
| Optional< uint8 > | reqLiquidType = {}, |
||
| float | collisionHeight = 2.03128f |
||
| ) | const |
Definition at line 2723 of file Map.cpp.
References _dynamicTree, AREA_FLAG_INSIDE, AREA_FLAG_OUTSIDE, PositionFullTerrainStatus::areaId, VMAP::AreaAndLiquidData::areaInfo, MapEntry::AreaTableID, WMOAreaTableEntry::AreaTableID, VMAP::VMapFactory::createOrGetVMapManager(), LiquidData::entry, WMOAreaTableEntry::Flags, VMAP::AreaAndLiquidData::floorZ, PositionFullTerrainStatus::floorZ, GridMap::getArea(), DynamicMapTree::getAreaAndLiquidData(), VMAP::IVMapManager::getAreaAndLiquidData(), GetGrid(), GridMap::getHeight(), GetId(), GridMap::GetLiquidStatus(), GetWMOAreaTableEntryByTripple(), GROUND_HEIGHT_TOLERANCE, i_mapEntry, 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, VMAP::AreaAndLiquidData::liquidInfo, PositionFullTerrainStatus::liquidInfo, PositionFullTerrainStatus::liquidStatus, AreaTableEntry::LiquidTypeID, PositionFullTerrainStatus::outdoors, AreaTableEntry::ParentAreaID, sAreaTableStore, sLiquidTypeStore, VMAP_INVALID_HEIGHT, and PositionFullTerrainStatus::wmoLocation.
Referenced by Creature::Create(), and WorldObject::UpdatePositionData().
| GameObject * Map::GetGameObject | ( | ObjectGuid const & | guid | ) |
Definition at line 4425 of file Map.cpp.
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by instance_deadmines::instance_deadmines_InstanceMapScript::BlastOutDoor(), Player::CheckDuelDistance(), Spell::CheckEffectTarget(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckLichKingAvailability(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureStore(), hyjalAI::DeSpawnVeins(), InstanceScript::DoCloseDoorOrButton(), WorldSession::DoLootRelease(), InstanceScript::DoRespawnGameObject(), InstanceScript::DoUseDoorOrButton(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore(), Player::DuelComplete(), Spell::EffectSummonObject(), BattlegroundAB::EventPlayerClickedOnFlag(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::FloorEruption(), Battleground::GetBGObject(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap(), Battlefield::GetGameObject(), InstanceScript::GetGameObject(), ObjectAccessor::GetGameObject(), GetTransport(), WorldSession::HandleAutostoreLootItemOpcode(), InstanceScript::HandleGameObject(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMovementOpcode(), spell_alexstrasza_bunny_destroy_platform_event::HandleSendEvent(), Battleground::HandleTriggerBuff(), instance_deadmines::instance_deadmines_InstanceMapScript::LeverStucked(), spell_alexstrasza_gift_beam_visual::OnRemove(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnUnitDeath(), Player::PrepareQuestMenu(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::ProcessEvent(), instance_ulduar::instance_ulduar_InstanceMapScript::ProcessEvent(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), BattlegroundEY::RespawnFlagAfterDrop(), ScriptsProcess(), Player::SendLoot(), Player::SendQuestGiverStatusMultiple(), InstanceScript::SetBossState(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetBossState(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::SetBossState(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetBossState(), instance_nexus::instance_nexus_InstanceMapScript::SetBossState(), instance_oculus::instance_oculus_InstanceMapScript::SetBossState(), instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetData(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetData(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::SetData(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::SetData(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::SetData(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), instance_violet_hold::instance_violet_hold_InstanceMapScript::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), instance_deadmines::instance_deadmines_InstanceMapScript::ShootCannon(), instance_deadmines::instance_deadmines_InstanceMapScript::SummonCreatures(), instance_deadmines::instance_deadmines_InstanceMapScript::Update(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_ulduar::instance_ulduar_InstanceMapScript::Update(), instance_razorfen_kraul::instance_razorfen_kraul_InstanceMapScript::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::UpdateGoState(), and Player::UpdateTriggerVisibility().
| GameObject * Map::GetGameObjectBySpawnId | ( | ObjectGuid::LowType | spawnId | ) | const |
Definition at line 4411 of file Map.cpp.
References GetGameObjectBySpawnIdStore().
|
inline |
Definition at line 516 of file Map.h.
Referenced by _FindGameObject(), GameObject::AddToWorld(), OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), DespawnAll(), SmartScript::FindGameObjectNear(), GetGameObjectBySpawnId(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), list_commandscript::HandleListObjectCommand(), boss_heigan::JustEngagedWith(), and OPvPCapturePointEP_NPT::SummonGO().
|
inline |
|
inline |
|
inline |
Definition at line 575 of file Map.h.
References SPAWN_TYPE_GAMEOBJECT.
Referenced by Transport::CreateGOPassenger(), GetLinkedRespawnTime(), and GameObject::LoadFromDB().
|
inlineprivate |
Definition at line 2446 of file Map.cpp.
References CENTER_GRID_ID, EnsureGridCreated(), GridMaps, MAX_NUMBER_OF_GRIDS, and SIZE_OF_GRIDS.
Referenced by GetAreaId(), GetAreaInfo(), GetFullTerrainStatusForPosition(), GetGridHeight(), GetLiquidStatus(), GetMinHeight(), GetWaterLevel(), and GetWaterOrGroundLevel().
|
inline |
Definition at line 369 of file Map.h.
Referenced by MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
| float Map::GetGridHeight | ( | float | x, |
| float | y | ||
| ) | const |
Definition at line 2522 of file Map.cpp.
References GetGrid(), and VMAP_INVALID_HEIGHT_VALUE.
Referenced by GetHeight(), and WorldObject::MovePositionToFirstCollision().
|
private |
Definition at line 3509 of file Map.cpp.
References _guidGenerators.
| float Map::GetHeight | ( | float | x, |
| float | y, | ||
| float | z, | ||
| bool | checkVMap = true, |
||
| float | maxSearchDist = DEFAULT_HEIGHT_SEARCH |
||
| ) | const |
Definition at line 2484 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), GetGridHeight(), VMAP::IVMapManager::getHeight(), GetId(), GROUND_HEIGHT_TOLERANCE, INVALID_HEIGHT, VMAP::IVMapManager::isHeightCalcEnabled(), and VMAP_INVALID_HEIGHT_VALUE.
Referenced by WorldObject::GetMapHeight(), GetWaterOrGroundLevel(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), boss_prince_valanar_icc::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), Creature::LoadFromDB(), spell_mimiron_magnetic_core_summon::ModDest(), spell_skyguard_flare::ModDestHeight(), and npc_kinetic_bomb::Reset().
|
inline |
Definition at line 550 of file Map.h.
References GetHeight(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by GetHeight().
|
inline |
|
inline |
Definition at line 552 of file Map.h.
References GetHeight(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by GetHeight().
| uint32 Map::GetId | ( | ) | const |
Definition at line 4216 of file Map.cpp.
References i_mapEntry, and MapEntry::ID.
Referenced by AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), spell_kargath_executioner::AreaCheck(), MapUpdateRequest::call(), InstanceMap::CannotEnter(), Player::CanRollForItemInLFG(), InstanceScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), Player::CheckInstanceValidity(), CheckRespawn(), GameObject::Create(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstance(), InstanceMap::CreateInstanceData(), MapInstanced::CreateInstanceForPlayer(), TransportMgr::CreateInstanceTransports(), DeleteCorpseData(), DeleteRespawnInfo(), DeleteRespawnInfoFromDB(), DoRespawn(), EnsureGridCreated_i(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GetAreaInfo(), GetDebugInfo(), GetFullTerrainStatusForPosition(), GetHeight(), GetLiquidStatus(), GetMapDifficulty(), GetSpawnGroupData(), misc_commandscript::HandleAppearCommand(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugInstanceSpawns(), debug_commandscript::HandleDebugLoadCellsCommand(), debug_commandscript::HandleDebugObjectCountMap(), gobject_commandscript::HandleGameObjectAddCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), list_commandscript::HandleListSpawnPointsCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcAddCommand(), misc_commandscript::HandleSummonCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), Player::inRandomLfgDungeon(), InstanceScript::InstanceScript(), isInLineOfSight(), IsSpawnGroupActive(), LoadCorpseData(), Player::LoadFromDB(), LoadMap(), LoadMMap(), ObjectGridLoader::LoadN(), LoadRespawnTimes(), LoadVMap(), Map(), AchievementCriteriaData::Meets(), MotionMaster::MoveFall(), lfg::LFGPlayerScript::OnMapChanged(), InstanceMap::PermBindAllPlayers(), RemoveAllPlayers(), FormationMgr::RemoveCreatureFromGroup(), InstanceMap::Reset(), Group::ResetInstances(), Player::RewardReputation(), SaveRespawnInfoDB(), SaveRespawnTime(), InstanceMap::SendResetWarnings(), InstanceScript::SetBossState(), WorldObject::SetMap(), InstanceMap::SetResetSchedule(), SetSpawnGroupActive(), SpawnGroupDespawn(), SpawnGroupSpawn(), SummonCreatureGroup(), Transport::TeleportTransport(), UnloadGrid(), ActiveState::Update(), IdleState::Update(), RemovalState::Update(), Update(), InstanceScript::UpdateEncounterState(), ObjectGridLoader::Visit(), ObjectGridLoader::Visit(), and ~Map().
|
inline |
Definition at line 408 of file Map.h.
Referenced by AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), Player::CheckInstanceValidity(), DeleteCorpseData(), DeleteRespawnInfoFromDB(), GetDebugInfo(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugObjectCountMap(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), InstanceMap::HasPermBoundPlayers(), LoadCorpseData(), LoadRespawnTimes(), Map(), InstanceMap::PermBindAllPlayers(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::Reset(), SaveRespawnInfoDB(), InstanceScript::SaveToDB(), InstanceScript::SetBossState(), WorldObject::SetMap(), InstanceMap::SetResetSchedule(), Update(), and InstanceScript::UpdateEncounterState().
| time_t Map::GetLinkedRespawnTime | ( | ObjectGuid | guid | ) | const |
Definition at line 4537 of file Map.cpp.
References GameObject, ObjectGuid::GetCounter(), GetCreatureRespawnTime(), GetGORespawnTime(), ObjectGuid::GetHigh(), sObjectMgr, and Unit.
Referenced by CheckRespawn(), GameObject::Update(), and Creature::Update().
| ZLiquidStatus Map::GetLiquidStatus | ( | uint32 | phaseMask, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| Optional< uint8 > | ReqLiquidType, | ||
| LiquidData * | data = nullptr, |
||
| float | collisionHeight = 2.03128f |
||
| ) | const |
Definition at line 2635 of file Map.cpp.
References VMAP::AreaAndLiquidData::areaInfo, VMAP::VMapFactory::createOrGetVMapManager(), LiquidData::depth_level, LiquidData::entry, VMAP::AreaAndLiquidData::floorZ, VMAP::IVMapManager::getAreaAndLiquidData(), GetAreaId(), GetGrid(), GetId(), GROUND_HEIGHT_TOLERANCE, IsInWMOInterior(), LiquidData::level, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_IN_WATER, LIQUID_MAP_NO_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, VMAP::AreaAndLiquidData::liquidInfo, sAreaTableStore, sLiquidTypeStore, TC_LOG_DEBUG, and LiquidData::type_flags.
Referenced by PathGenerator::BuildPolyPath(), PathGenerator::GetNavTerrain(), GetWaterOrGroundLevel(), misc_commandscript::HandleGPSCommand(), IsInWater(), IsUnderWater(), Spell::SelectImplicitCasterDestTargets(), and spell_spawn_blood_pool::SetDest().
| MapDifficultyEntry const * Map::GetMapDifficulty | ( | ) | const |
Definition at line 4211 of file Map.cpp.
References GetDifficultyID(), GetId(), and GetMapDifficultyData().
Referenced by InstanceMap::GetMaxPlayers(), and InstanceMap::GetMaxResetDelay().
| char const * Map::GetMapName | ( | ) | const |
Definition at line 2924 of file Map.cpp.
References i_mapEntry, MapEntry::MapName, and sWorld.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), Player::GetMapAreaAndZoneString(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugInstanceSpawns(), debug_commandscript::HandleDebugObjectCountMap(), go_commandscript::HandleGoZoneXYCommand(), list_commandscript::HandleListSpawnPointsCommand(), WorldSession::HandleMoveWorldportAck(), Player::LoadFromDB(), LoadMMap(), LoadVMap(), LogCommandUsage(), InstanceMap::PermBindAllPlayers(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::SetResetSchedule(), and InstanceScript::UpdateEncounterState().
|
inline |
Definition at line 614 of file Map.h.
References Map.
Referenced by debug_commandscript::HandleDebugGuidLimitsMap().
| float Map::GetMinHeight | ( | float | x, |
| float | y | ||
| ) | const |
Definition at line 2530 of file Map.cpp.
References GetGrid().
Referenced by misc_commandscript::HandleGPSCommand(), and WorldSession::HandleMovementOpcode().
Definition at line 677 of file Map.h.
References ASSERT, and MAX_NUMBER_OF_GRIDS.
Referenced by AddToActive(), AddToGrid(), AddToGrid(), AddToGrid(), AddToGrid(), AddToGrid(), CreatureRelocation(), DynamicObjectRelocation(), EnsureGridCreated_i(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GameObjectRelocation(), GridMarkNoUnload(), GridUnmarkNoUnload(), IsGridLoaded(), RemoveFromActive(), SwitchGridContainers(), 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 | ||
| ) |
Definition at line 2881 of file Map.cpp.
References _dynamicTree, and DynamicMapTree::getObjectHitPos().
Referenced by WorldObject::MovePositionToFirstCollision().
|
inline |
Definition at line 509 of file Map.h.
Referenced by Corpse::AddToWorld(), Creature::AddToWorld(), DynamicObject::AddToWorld(), GameObject::AddToWorld(), Pet::AddToWorld(), debug_commandscript::HandleDebugLoadCellsCommand(), debug_commandscript::HandleDebugObjectCountMap(), Corpse::RemoveFromWorld(), Creature::RemoveFromWorld(), DynamicObject::RemoveFromWorld(), GameObject::RemoveFromWorld(), Pet::RemoveFromWorld(), GameEventMgr::RunSmartAIScripts(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), Update(), and CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::VisitObjectsToSwapOnMap().
Definition at line 4771 of file Map.cpp.
References _zoneDynamicInfo, ZoneDynamicInfo::DefaultWeather, and WeatherMgr::GetWeatherData().
Referenced by misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
| Pet * Map::GetPet | ( | ObjectGuid const & | guid | ) |
Definition at line 4430 of file Map.cpp.
References _objectsStore, and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
Referenced by ObjectAccessor::GetPet(), and ScriptsProcess().
| Player * Map::GetPlayer | ( | ObjectGuid const & | guid | ) |
Definition at line 4382 of file Map.cpp.
References ObjectAccessor::GetPlayer().
Referenced by ScriptsProcess(), and npc_minigob_manabonk::UpdateAI().
|
inline |
Definition at line 468 of file Map.h.
Referenced by AddToMap(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::AggroAllPlayers(), AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_four_horsemen_baseAI::BeginEncounter(), Transport::BuildUpdate(), Player::CheckInstanceValidity(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), boss_general_vezax::boss_general_vezaxAI::CheckShamanisticRage(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), InstanceScript::DoCastSpellOnPlayers(), npc_halion_controller::DoCheckEvade(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), InstanceScript::DoSendNotifyToInstance(), InstanceScript::DoStartTimedAchievement(), InstanceScript::DoStopTimedAchievement(), ScriptedAI::DoTeleportAll(), InstanceScript::DoUpdateAchievementCriteria(), InstanceScript::DoUpdateWorldState(), CreatureAI::DoZoneInCombat(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::EnterEvadeMode(), boss_illidan_stormrage::EnterEvadeModeIfNeeded(), boss_shade_of_akama::EnterEvadeModeIfNeeded(), FindEligibleTarget(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::GetCreatureEntry(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::GetCreatureEntry(), instance_nexus::instance_nexus_InstanceMapScript::GetCreatureEntry(), instance_ulduar::instance_ulduar_InstanceMapScript::GetCreatureEntry(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetGameObjectEntry(), instance_razorfen_kraul::instance_razorfen_kraul_InstanceMapScript::GetPlayerInMap(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), npc_minigob_manabonk::GetPlayersInDalaran(), spell_krick_explosive_barrage::HandlePeriodicTick(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::HandlePlayerVehicle(), boss_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_apothecary_hummel::JustDied(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), boss_ahune::JustDied(), boss_shattered_executioner::JustDied(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), RemoveFromMap(), boss_volazj::ResetPlayersPhaseMask(), CreatureTextMgr::SendChatPacket(), CreatureTextMgr::SendNonChatPacket(), SendZoneMessage(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetBossState(), instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), boss_shattered_executioner::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnEscapeEvent(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnGunship(), boss_volazj::SpellHitTarget(), boss_volazj::SummonedCreatureDespawn(), instance_zulaman::instance_zulaman_InstanceMapScript::SummonHostage(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), Creature::Update(), boss_pyroguard_emberseer::UpdateAI(), boss_chromaggus::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), UpdateAreaDependentAuras(), InstanceScript::UpdateEncounterState(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::UpdateMoira(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::UpdateQuestCredit(), UpdateWorldState(), and npc_thrall_old_hillsbrad::WaypointReached().
| uint32 Map::GetPlayersCountExceptGMs | ( | ) | const |
Definition at line 3659 of file Map.cpp.
References MapRefManager::begin(), MapRefManager::end(), and m_mapRefManager.
Referenced by InstanceMap::CannotEnter(), Player::CheckInstanceValidity(), and AchievementCriteriaData::Meets().
|
private |
Definition at line 3185 of file Map.cpp.
References GetRespawnMapForType().
Referenced by list_commandscript::HandleListRespawnsCommand(), and misc_commandscript::HandleRespawnCommand().
| void Map::GetRespawnInfo | ( | std::vector< RespawnInfo const * > & | respawnData, |
| SpawnObjectTypeMask | types | ||
| ) | const |
Definition at line 3177 of file Map.cpp.
References _creatureRespawnTimesBySpawnId, _gameObjectRespawnTimesBySpawnId, PushRespawnInfoFrom(), SPAWN_TYPEMASK_CREATURE, and SPAWN_TYPEMASK_GAMEOBJECT.
|
inlineprivate |
Definition at line 836 of file Map.h.
References ABORT, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by AddRespawnInfo(), DeleteRespawnInfo(), GetRespawnInfo(), ProcessRespawns(), and SpawnGroupSpawn().
|
inlineprivate |
Definition at line 848 of file Map.h.
References ABORT, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
|
inline |
Definition at line 568 of file Map.h.
Referenced by ShouldBeSpawnedOnGridLoad().
| SpawnGroupTemplateData const * Map::GetSpawnGroupData | ( | uint32 | groupId | ) | const |
Definition at line 3374 of file Map.cpp.
References SpawnGroupTemplateData::flags, GetId(), SpawnGroupTemplateData::mapId, sObjectMgr, and SPAWNGROUP_FLAG_SYSTEM.
Referenced by IsSpawnGroupActive(), SetSpawnGroupActive(), SpawnGroupDespawn(), and SpawnGroupSpawn().
|
inline |
Definition at line 409 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), instance_naxxramas::instance_naxxramas_InstanceMapScript::CheckAchievementCriteriaMeet(), SmartScript::FillScript(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetCreatureEntry(), SpellMgr::GetSpellIdForDifficulty(), gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), IsVampire(), AchievementCriteriaData::Meets(), boss_toc_champion_controller::SelectChampions(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), InstanceMap::SetResetSchedule(), SpawnGroupSpawn(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SpawnInfiniteCorruptor(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), ObjectGridLoader::Visit(), and ObjectGridLoader::Visit().
| Transport * Map::GetTransport | ( | ObjectGuid const & | guid | ) |
Definition at line 4435 of file Map.cpp.
References GetGameObject(), ObjectGuid::IsMOTransport(), and GameObject::ToTransport().
Referenced by ObjectAccessor::GetTransport(), WorldSession::HandleMovementOpcode(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), and ScriptsProcess().
|
inline |
Definition at line 355 of file Map.h.
References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 332 of file Map.h.
Referenced by ActiveObjectsNearGrid(), WorldObject::GetGridActivationRange(), WorldObject::GetSightRange(), WorldObject::GetVisibilityRange(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModPossessPet(), SummonCreature(), and Update().
| float Map::GetWaterLevel | ( | float | x, |
| float | y | ||
| ) | const |
Definition at line 2862 of file Map.cpp.
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 = 2.03128f |
||
| ) | const |
Definition at line 2458 of file Map.cpp.
References GetGrid(), GetHeight(), GetLiquidStatus(), LiquidData::level, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_NO_WATER, VMAP_INVALID_HEIGHT_VALUE, and Z_OFFSET_FIND_HEIGHT.
Referenced by Unit::_ExitVehicle(), WorldObject::GetMapWaterOrGroundLevel(), and spell_sholazar_shoot_rjr::HandleDummy().
|
inline |
|
inline |
Definition at line 493 of file Map.h.
References SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by SpawnGroupSpawn().
| void Map::GetZoneAndAreaId | ( | uint32 | phaseMask, |
| uint32 & | zoneid, | ||
| uint32 & | areaid, | ||
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) | const |
Definition at line 2627 of file Map.cpp.
References GetAreaId(), and sAreaTableStore.
Referenced by WorldObject::AddToWorld(), and MapManager::GetZoneAndAreaId().
|
inline |
Definition at line 389 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and GetZoneAndAreaId().
Referenced by GetZoneAndAreaId().
Definition at line 2617 of file Map.cpp.
References GetAreaId(), and sAreaTableStore.
Referenced by MapManager::GetZoneId(), and list_commandscript::HandleListRespawnsCommand().
Definition at line 387 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and GetZoneId().
Referenced by GetZoneId().
Definition at line 555 of file Map.cpp.
References CENTER_GRID_ID, CENTER_GRID_OFFSET, EnsureGridLoaded(), getNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadExplicitLock(), and SIZE_OF_GRIDS.
Definition at line 568 of file Map.cpp.
References getNGrid(), IsGridLoaded(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadExplicitLock().
|
inline |
Definition at line 457 of file Map.h.
Referenced by CreatureAI::DoZoneInCombat(), GetDebugInfo(), spell_hadronox_periodic_summon_template_AuraScript::HandlePeriodic(), boss_headless_horseman::JustDied(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), InstanceMap::Reset(), Group::ResetInstances(), InstanceMap::SetResetSchedule(), InstanceMap::UnloadAll(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), and instance_violet_hold::instance_violet_hold_InstanceMapScript::Update().
| void Map::InitializeObject | ( | Creature * | obj | ) |
Definition at line 618 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
| void Map::InitializeObject | ( | GameObject * | obj | ) |
Definition at line 624 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
|
private |
Definition at line 615 of file Map.cpp.
Referenced by AddToMap().
|
static |
Definition at line 256 of file Map.cpp.
References GRID_STATE_ACTIVE, GRID_STATE_IDLE, GRID_STATE_INVALID, GRID_STATE_REMOVAL, and si_GridStates.
Referenced by MapManager::Initialize().
|
virtual |
Reimplemented in InstanceMap, BattlegroundMap, and MapInstanced.
Definition at line 302 of file Map.cpp.
References World::GetMaxVisibleDistanceOnContinents(), World::GetVisibilityNotifyPeriodOnContinents(), m_VisibilityNotifyPeriod, and m_VisibleDistance.
Referenced by Map().
|
inline |
Definition at line 556 of file Map.h.
Referenced by GameObject::AddToWorld(), Transport::Update(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
| bool Map::Instanceable | ( | ) | const |
Definition at line 4221 of file Map.cpp.
References i_mapEntry, and MapEntry::Instanceable().
Referenced by InstanceSaveManager::_ResetInstance(), ObjectMgr::AddCreatureData(), ObjectMgr::AddGameObjectData(), MapManager::CreateMap(), MapManager::FindBaseNonInstanceMap(), MapManager::FindMap(), GameEventMgr::GameEventSpawn(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), AuraEffect::HandlePreventResurrection(), Player::SendLoot(), World::SetInitialWorldSettings(), and OutdoorPvP::SetMapFromZone().
| bool Map::Is25ManRaid | ( | ) | const |
Definition at line 4256 of file Map.cpp.
References i_spawnMode, IsRaid(), RAID_DIFFICULTY_25MAN_HEROIC, and RAID_DIFFICULTY_25MAN_NORMAL.
Referenced by GameObject::Create(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), spell_rotface_vile_gas_trigger::FilterTargets(), spell_sindragosa_unchained_magic::FilterTargets(), spell_sindragosa_frost_breath::HandleInfusion(), spell_putricide_gaseous_bloat::HandleProc(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), Creature::InitEntry(), spell_the_lich_king_vile_spirits::Load(), AchievementCriteriaData::Meets(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), and boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI().
| bool Map::IsBattleArena | ( | ) | const |
Definition at line 4267 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattleArena().
Referenced by WorldSession::HandleEnterPlayerVehicle(), and BattlegroundMap::InitVisibilityDistance().
| bool Map::IsBattleground | ( | ) | const |
Definition at line 4262 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattleground().
Referenced by SpellMgr::GetSpellIdForDifficulty(), and AuraEffect::HandleAuraDummy().
| bool Map::IsBattlegroundOrArena | ( | ) | const |
Definition at line 4272 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattlegroundOrArena().
Referenced by ApplyDynamicModeRespawnScaling(), Spell::CheckCast(), ConvertCorpseToBones(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstanceForPlayer(), DelayedUpdate(), misc_commandscript::HandleAppearCommand(), list_commandscript::HandleListSpawnPointsCommand(), and misc_commandscript::HandleSummonCommand().
|
inline |
Definition at line 454 of file Map.h.
Referenced by ProcessRelocationNotifies(), and VisitNearbyCellsOf().
| bool Map::IsDungeon | ( | ) | const |
Definition at line 4231 of file Map.cpp.
References i_mapEntry, and MapEntry::IsDungeon().
Referenced by InstanceSaveManager::_ResetInstance(), InstanceMap::AddPlayerToMap(), Spell::CheckCast(), Player::CheckInstanceValidity(), Creature::Create(), MapInstanced::CreateInstance(), TransportMgr::CreateTransport(), ScriptedAI::DoTeleportAll(), CreatureAI::DoZoneInCombat(), Spell::EffectSanctuary(), SmartScript::FillScript(), Trinity::XP::Gain(), WorldObject::GetInstanceScript(), SpellMgr::GetSpellIdForDifficulty(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), spell_freezing_circle::HandleDamage(), spell_item_nitro_boosts::HandleDummy(), AuraEffect::HandleFeignDeath(), list_commandscript::HandleListSpawnPointsCommand(), AuraEffect::HandleModUnattackable(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSummonCommand(), Player::IsAtGroupRewardDistance(), Unit::Kill(), Player::LoadFromDB(), Condition::Meets(), AchievementCriteriaData::Meets(), InstanceMap::PermBindAllPlayers(), AchievementMgr::RequirementsSatisfied(), Player::ResetInstances(), Group::ResetInstances(), InstanceSave::SaveToDB(), Player::SetBattlegroundEntryPoint(), InstanceMap::SetResetSchedule(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 352 of file Map.h.
References Trinity::ComputeGridCoord(), and IsGridLoaded().
Referenced by IsGridLoaded().
|
private |
Definition at line 712 of file Map.cpp.
References getNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 353 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), and IsGridLoaded().
Referenced by IsGridLoaded().
|
inline |
Definition at line 351 of file Map.h.
References IsGridLoaded(), and MAX_NUMBER_OF_GRIDS.
Referenced by ObjectMgr::AddGameObjectData(), CreatureCellRelocation(), DoRespawn(), DynamicObjectCellRelocation(), GameEventMgr::GameEventSpawn(), GameObjectCellRelocation(), GridUnmarkNoUnload(), IsGridLoaded(), SpawnGroupSpawn(), SwitchGridContainers(), SwitchGridContainers(), Transport::Update(), and Transport::UpdatePosition().
| bool Map::IsHeroic | ( | ) | const |
Definition at line 4251 of file Map.cpp.
References DUNGEON_DIFFICULTY_HEROIC, i_spawnMode, IsRaid(), and RAID_DIFFICULTY_10MAN_HEROIC.
Referenced by spell_kelidan_the_breaker_burning_nova::AfterApply(), spell_kelidan_the_breaker_burning_nova::AfterRemove(), instance_gundrak::instance_gundrak_InstanceMapScript::CheckRequiredBosses(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), BattleExperienceEvent::Execute(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::FillInitialWorldStates(), spell_freezing_circle::HandleDamage(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_prince_taldaram_conjure_flame_sphere::HandleScript(), spell_gal_darah_clear_puncture::HandleScript(), IsRaidOrHeroicDungeon(), instance_gundrak::instance_gundrak_InstanceMapScript::OnGameObjectCreate(), spell_black_morass_time_rift_periodic::OnPeriodic(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), at_sindragosa_lair::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::ReadSaveDataMore(), spell_bronjahm_magic_bane::RecalculateDamage(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetBossState(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_arcatraz::instance_arcatraz_InstanceMapScript::SetBossState(), and instance_shattered_halls::instance_shattered_halls_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 |
Definition at line 2870 of file Map.cpp.
References _dynamicTree, CONFIG_CHECK_GOBJECT_LOS, VMAP::VMapFactory::createOrGetVMapManager(), GetId(), DynamicMapTree::isInLineOfSight(), isInLineOfSight(), LINEOFSIGHT_CHECK_GOBJECT, LINEOFSIGHT_CHECK_VMAP, and sWorld.
Referenced by isInLineOfSight(), WorldObject::IsWithinLOS(), WorldObject::IsWithinLOSInMap(), and PathGenerator::ShortenPathUntilDist().
| bool Map::IsInWater | ( | uint32 | phaseMask, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| LiquidData * | data = nullptr |
||
| ) | const |
Definition at line 2895 of file Map.cpp.
References GetLiquidStatus(), LIQUID_MAP_IN_WATER, and LIQUID_MAP_UNDER_WATER.
| bool Map::IsNonRaidDungeon | ( | ) | const |
Definition at line 4236 of file Map.cpp.
References i_mapEntry, and MapEntry::IsNonRaidDungeon().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and Player::RewardReputation().
| bool Map::IsRaid | ( | ) | const |
Definition at line 4241 of file Map.cpp.
References i_mapEntry, and MapEntry::IsRaid().
Referenced by Player::CheckInstanceValidity(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), Creature::InitEntry(), Is25ManRaid(), IsHeroic(), IsRaidOrHeroicDungeon(), and AchievementCriteriaData::Meets().
| bool Map::IsRaidOrHeroicDungeon | ( | ) | const |
Definition at line 4246 of file Map.cpp.
References IsHeroic(), and IsRaid().
Referenced by Unit::Kill(), and InstanceMap::SetResetSchedule().
|
inline |
Definition at line 344 of file Map.h.
References Trinity::ComputeGridCoord(), GRID_STATE_REMOVAL, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by ObjectMgr::AddCreatureData(), and ConvertCorpseToBones().
|
inline |
Definition at line 349 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), and IsRemovalGrid().
Referenced by IsRemovalGrid().
| bool Map::IsSpawnGroupActive | ( | uint32 | groupId | ) | const |
Definition at line 3495 of file Map.cpp.
References _toggledSpawnGroupIds, SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), SPAWNGROUP_FLAG_MANUAL_SPAWN, SPAWNGROUP_FLAG_SYSTEM, and TC_LOG_ERROR.
Referenced by CheckRespawn(), debug_commandscript::HandleDebugInstanceSpawns(), gobject_commandscript::HandleGameObjectInfoCommand(), list_commandscript::HandleListRespawnsCommand(), npc_commandscript::HandleNpcInfoCommand(), Creature::LoadFromDB(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnPlayerEnter(), ShouldBeSpawnedOnGridLoad(), and InstanceScript::UpdateSpawnGroups().
| bool Map::IsUnderWater | ( | uint32 | phaseMask, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) | const |
Definition at line 2902 of file Map.cpp.
References GetLiquidStatus(), LIQUID_MAP_UNDER_WATER, MAP_LIQUID_TYPE_OCEAN, and MAP_LIQUID_TYPE_WATER.
Referenced by PathGenerator::BuildPolyPath().
| bool Map::IsWorldMap | ( | ) | const |
Definition at line 4226 of file Map.cpp.
References i_mapEntry, and MapEntry::IsWorldMap().
| void Map::LoadAllCells | ( | ) |
Definition at line 249 of file Map.cpp.
References CENTER_GRID_CELL_ID, LoadGrid(), SIZE_OF_GRID_CELL, and TOTAL_NUMBER_OF_CELLS_PER_MAP.
Referenced by MapInstanced::CreateInstance(), and debug_commandscript::HandleDebugLoadCellsCommand().
| void Map::LoadCorpseData | ( | ) |
Definition at line 4553 of file Map.cpp.
References AddCorpse(), CHAR_SEL_CORPSES, CharacterDatabase, CORPSE_BONES, GetId(), GetInstanceId(), Field::GetUInt32(), Corpse::LoadCorpseFromDB(), MAX_CORPSE_TYPE, PreparedStatementBase::setUInt32(), and TC_LOG_ERROR.
Referenced by MapManager::CreateBaseMap(), and MapInstanced::CreateInstance().
| void Map::LoadGrid | ( | float | x, |
| float | y | ||
| ) |
Definition at line 578 of file Map.cpp.
References EnsureGridLoaded().
Referenced by CinematicMgr::BeginCinematic(), npc_crok_scourgebane::DoAction(), debug_commandscript::HandleDebugLoadCellsCommand(), LoadAllCells(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), at_sindragosa_lair::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), instance_naxxramas::instance_naxxramas_InstanceMapScript::OnUnitDeath(), FlightPathMovementGenerator::PreloadEndGrid(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::ReadSaveDataMore(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetBossState(), instance_deadmines::instance_deadmines_InstanceMapScript::Update(), and instance_naxxramas::instance_naxxramas_InstanceMapScript::Update().
|
private |
Definition at line 198 of file Map.cpp.
References EnsureGridCreated(), GetId(), GridMaps, i_InstanceId, m_parentMap, MAX_NUMBER_OF_GRIDS, sScriptMgr, Trinity::StringFormat(), sWorld, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by LoadMapAndVMap().
|
private |
Definition at line 238 of file Map.cpp.
References i_InstanceId, LoadMap(), LoadMMap(), and LoadVMap().
Referenced by EnsureGridCreated_i().
|
private |
Definition at line 165 of file Map.cpp.
References MMAP::MMapFactory::createOrGetMMapManager(), GetId(), GetMapName(), DisableMgr::IsPathfindingEnabled(), MMAP::MMapManager::loadMap(), sWorld, TC_LOG_DEBUG, and TC_LOG_WARN.
Referenced by LoadMapAndVMap().
| void Map::LoadRespawnTimes | ( | ) |
Definition at line 4499 of file Map.cpp.
References CHAR_SEL_RESPAWNS, CharacterDatabase, Trinity::ComputeGridCoord(), CoordPair< LIMIT >::GetId(), GetId(), GetInstanceId(), Field::GetUInt32(), Field::GetUInt64(), SaveRespawnTime(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sObjectMgr, TC_LOG_ERROR, and SpawnMetadata::TypeHasData().
Referenced by MapManager::CreateBaseMap(), and MapInstanced::CreateInstance().
|
private |
Definition at line 178 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), GetId(), GetMapName(), VMAP::VMapManager2::loadMap(), sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, VMAP::VMAP_LOAD_RESULT_ERROR, VMAP::VMAP_LOAD_RESULT_IGNORED, and VMAP::VMAP_LOAD_RESULT_OK.
Referenced by LoadMapAndVMap().
|
inline |
Definition at line 455 of file Map.h.
Referenced by VisitNearbyCellsOf().
| void Map::MoveAllCreaturesInMoveList | ( | ) |
Definition at line 1264 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), CreatureCellRelocation(), CreatureRespawnRelocation(), WorldObject::FindMap(), Object::GetGUID(), Unit::GetVehicleKit(), Object::IsInWorld(), Unit::IsPet(), Unit::IsVehicle(), Position::m_positionX, Position::m_positionY, MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, PET_SAVE_NOT_IN_SLOT, Position::Relocate(), Vehicle::RelocatePassengers(), TC_LOG_DEBUG, ObjectGuid::ToString(), Unit::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by UnloadGrid(), and Update().
| void Map::MoveAllDynamicObjectsInMoveList | ( | ) |
Definition at line 1367 of file Map.cpp.
References _dynamicObjectsToMove, _dynamicObjectsToMoveLock, MapObject::_moveState, MapObject::_newPosition, DynamicObjectCellRelocation(), WorldObject::FindMap(), Object::GetGUID(), Object::IsInWorld(), Position::m_positionX, Position::m_positionY, MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, Position::Relocate(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
| void Map::MoveAllGameObjectsInMoveList | ( | ) |
Definition at line 1321 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), WorldObject::FindMap(), GameObjectCellRelocation(), GameObjectRespawnRelocation(), Object::GetGUID(), Object::IsInWorld(), Position::m_positionX, Position::m_positionY, MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, Position::Relocate(), TC_LOG_DEBUG, ObjectGuid::ToString(), GameObject::UpdateModelPosition(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by UnloadGrid(), and Update().
| void Map::PlayerRelocation | ( | Player * | player, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation | ||
| ) |
Definition at line 1081 of file Map.cpp.
References AddToGrid(), ASSERT, Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoadedForActiveObject(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetVehicleKit(), Cell::GridX(), Cell::GridY(), Unit::IsVehicle(), Position::Relocate(), Vehicle::RelocatePassengers(), GridObject< T >::RemoveFromGrid(), TC_LOG_DEBUG, Player::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by at_icc_saurfang_portal::OnTrigger(), Transport::UpdatePassengerPositions(), and Unit::UpdatePosition().
|
private |
Definition at line 925 of file Map.cpp.
References GridRefManager< OBJECT >::end(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getGridInfoRef(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), GridInfo::getRelocationTimer(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), GRID_STATE_ACTIVE, isCellMarked(), m_VisibilityNotifyPeriod, MAX_NUMBER_OF_CELLS, MAX_VISIBILITY_DISTANCE, Cell::SetNoCreate(), TOTAL_NUMBER_OF_CELLS_PER_MAP, PeriodicTimer::TPassed(), PeriodicTimer::TReset(), PeriodicTimer::TUpdate(), Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
| void Map::ProcessRespawns | ( | ) |
Definition at line 3261 of file Map.cpp.
References _respawnTimes, ASSERT, CheckRespawn(), DoRespawn(), GameTime::GetGameTime(), GetRespawnMapForType(), RespawnInfo::gridId, RespawnInfoWithHandle::handle, RemoveRespawnTime(), RespawnInfo::respawnTime, SaveRespawnInfoDB(), RespawnInfo::spawnId, sPoolMgr, and RespawnInfo::type.
Referenced by Update().
| void Map::RemoveAllObjectsInRemoveList | ( | ) |
Definition at line 3588 of file Map.cpp.
References Unit::CleanupsBeforeDelete(), ObjectAccessor::GetCorpse(), Object::GetGUID(), Object::GetTypeId(), i_objectsToRemove, i_objectsToSwitch, WorldObject::IsAlwaysStoredInWorldObjectGridContainer(), RemoveFromMap(), TC_LOG_ERROR, Object::ToCreature(), Object::ToDynObject(), Object::ToGameObject(), ObjectGuid::ToString(), GameObject::ToTransport(), TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by DelayedUpdate(), and UnloadGrid().
|
virtual |
Reimplemented in BattlegroundMap.
Definition at line 1728 of file Map.cpp.
References MapRefManager::begin(), MapRefManager::end(), GetId(), WorldObject::GetName(), Position::GetOrientation(), HavePlayers(), Player::IsBeingTeleportedFar(), Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, m_mapRefManager, TC_LOG_ERROR, and Player::TeleportTo().
| void Map::RemoveCorpse | ( | Corpse * | corpse | ) |
Definition at line 4609 of file Map.cpp.
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 |
Definition at line 1217 of file Map.cpp.
References _creatureToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by CreatureRelocation().
|
private |
Definition at line 1255 of file Map.cpp.
References _dynamicObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by DynamicObjectRelocation().
| void Map::RemoveFromActive | ( | WorldObject * | obj | ) |
Definition at line 3771 of file Map.cpp.
References Trinity::ComputeGridCoord(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::decUnloadActiveLock(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), GameObject::GetSpawnId(), Object::GetTypeId(), RemoveFromActiveHelper(), TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), ObjectGuid::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by RemoveFromMap(), and WorldObject::setActive().
|
inlineprivate |
Definition at line 817 of file Map.h.
Referenced by RemoveFromActive().
| void Map::RemoveFromMap | ( | T * | obj, |
| bool | remove | ||
| ) |
Definition at line 1027 of file Map.cpp.
References DeleteFromWorld(), RemoveFromActive(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by Transport::DelayedTeleportTransport(), RemoveAllObjectsInRemoveList(), and RemoveCorpse().
| void Map::RemoveFromMap | ( | Transport * | obj, |
| bool | remove | ||
| ) |
Definition at line 1047 of file Map.cpp.
References _transports, _transportsUpdateIter, MapRefManager::begin(), Object::BuildOutOfRangeUpdateBlock(), UpdateData::BuildPacket(), DeleteFromWorld(), MapRefManager::end(), GetPlayers(), LinkedListHead::isEmpty(), GameObject::RemoveFromWorld(), and WorldObject::ResetMap().
|
private |
Definition at line 1236 of file Map.cpp.
References _gameObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by GameObjectRelocation().
|
inline |
Definition at line 555 of file Map.h.
Referenced by GameObject::RemoveFromWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
| void Map::RemoveOldCorpses | ( | ) |
Definition at line 4684 of file Map.cpp.
References _corpseBones, _corpsesByPlayer, ConvertCorpseToBones(), GameTime::GetGameTime(), and RemoveCorpse().
Referenced by World::Update().
|
virtual |
Reimplemented in InstanceMap, and BattlegroundMap.
Definition at line 1002 of file Map.cpp.
References ASSERT, Unit::CombatStop(), DeleteFromWorld(), WorldObject::DestroyForNearbyPlayers(), GridObject< T >::IsInGrid(), Object::IsInWorld(), MAP_INVALID_ZONE, GridObject< T >::RemoveFromGrid(), Player::RemoveFromWorld(), SendRemoveTransports(), sScriptMgr, and Player::UpdateZone().
Referenced by WorldSession::HandleMoveWorldportAck(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), and Player::TeleportTo().
|
inline |
Definition at line 773 of file Map.h.
Referenced by GameEventMgr::GameEventSpawn(), GameObject::LoadFromDB(), ProcessRespawns(), SaveRespawnTime(), SpawnGroupDespawn(), and SpawnGroupSpawn().
|
inline |
Definition at line 625 of file Map.h.
Referenced by DeleteFromWorld(), and WorldObject::RemoveFromObjectUpdate().
|
inline |
Definition at line 462 of file Map.h.
Referenced by WorldObject::ResetMap(), SwitchGridContainers(), and SwitchGridContainers().
|
inline |
Definition at line 364 of file Map.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::ResetTimeTracker().
Referenced by EnsureGridLoadedForActiveObject(), ActiveState::Update(), IdleState::Update(), and RemovalState::Update().
|
private |
Definition at line 3105 of file Map.cpp.
References _respawnTimes, GameTime::GetGameTime(), RespawnInfo::respawnTime, and SaveRespawnInfoDB().
Referenced by misc_commandscript::HandleRespawnCommand(), SmartScript::ProcessAction(), boss_sacrolash::Reset(), boss_alythess::Reset(), boss_thaddius::ResetEncounter(), GameObject::Respawn(), Creature::Respawn(), and EscortAI::UpdateAI().
|
inline |
| void Map::SaveRespawnInfoDB | ( | RespawnInfo const & | info, |
| CharacterDatabaseTransaction | dbTrans = nullptr |
||
| ) |
Definition at line 4488 of file Map.cpp.
References CHAR_REP_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), RespawnInfo::respawnTime, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), RespawnInfo::spawnId, and RespawnInfo::type.
Referenced by ProcessRespawns(), Respawn(), SaveRespawnTime(), Creature::SaveRespawnTime(), and GameObject::SaveRespawnTime().
| void Map::SaveRespawnTime | ( | SpawnObjectType | type, |
| ObjectGuid::LowType | spawnId, | ||
| uint32 | entry, | ||
| time_t | respawnTime, | ||
| uint32 | gridId, | ||
| CharacterDatabaseTransaction | dbTrans = nullptr, |
||
| bool | startup = false |
||
| ) |
Definition at line 4455 of file Map.cpp.
References AddRespawnInfo(), RespawnInfo::entry, GetId(), RespawnInfo::gridId, RemoveRespawnTime(), RespawnInfo::respawnTime, SaveRespawnInfoDB(), sObjectMgr, RespawnInfo::spawnId, SpawnMetadata::spawnId, TC_LOG_ERROR, RespawnInfo::type, and SpawnMetadata::type.
Referenced by LoadRespawnTimes(), Creature::SaveRespawnTime(), and GameObject::SaveRespawnTime().
| void Map::ScriptCommandStart | ( | ScriptInfo const & | script, |
| uint32 | delay, | ||
| Object * | source, | ||
| Object * | target | ||
| ) |
Definition at line 73 of file MapScripts.cpp.
References ObjectGuid::Empty, GameTime::GetGameTime(), Object::GetGUID(), i_scriptLock, m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), sMapMgr, ScriptAction::sourceGUID, ScriptAction::targetGUID, and Object::ToItem().
|
private |
Process queued scripts.
Definition at line 312 of file MapScripts.cpp.
References _creatureBySpawnIdStore, _FindGameObject(), _GetScriptCreature(), _GetScriptCreatureSourceOrTarget(), _GetScriptGameObjectSourceOrTarget(), _GetScriptPlayer(), _GetScriptPlayerSourceOrTarget(), _GetScriptUnit(), _GetScriptWorldObject(), _ScriptProcessDoor(), AddToMap(), ScriptInfo::Amount, Player::AreaExploredOrEventHappens(), ASSERT, ScriptInfo::CallScript, WorldObject::CastSpell(), ScriptInfo::CastSpell, CHAT_TYPE_BOSS_EMOTE, CHAT_TYPE_BOSS_WHISPER, CHAT_TYPE_SAY, CHAT_TYPE_TEXT_EMOTE, CHAT_TYPE_WHISPER, CHAT_TYPE_YELL, ScriptInfo::ChatType, ScriptInfo::command, Corpse, 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, WorldObject::FindNearestCreature(), ScriptInfo::Flags, ScriptInfo::FlagToggle, GameObject, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_TRAP, GetCorpse(), GetCreature(), ScriptInfo::GetDebugInfo(), WorldObject::GetDistance(), GetGameObject(), GameTime::GetGameTime(), GameObject::GetGoType(), Object::GetGUID(), ObjectGuid::GetHigh(), WorldObject::GetMap(), Position::GetOrientation(), GetPet(), GetPlayer(), GetScriptsMapByType(), GetTransport(), Object::GetTypeId(), GO_READY, ScriptInfo::GOGuid, ObjectGuid::IsEmpty(), ScriptInfo::IsRepeatable, GameObject::isSpawned(), WorldObject::IsWithinDistInMap(), Item, ScriptInfo::ItemEntry, JUST_DIED, ScriptInfo::Kill, ScriptInfo::KillCredit, ScriptInfo::LoadPath, m_scriptSchedule, ScriptInfo::MapID, Mo_Transport, 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, Pet, Player, ScriptInfo::PlayMovie, ScriptInfo::PlaySound, ScriptInfo::PosX, ScriptInfo::PosY, ScriptInfo::PosZ, ScriptInfo::QuestExplored, ScriptInfo::QuestID, 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_SOUND, SF_PLAYSOUND_TARGET_PLAYER, SF_REMOVEAURA_REVERSE, SF_TALK_USE_PLAYER, SF_TELEPORT_USE_CREATURE, sMapMgr, ScriptInfo::SoundID, ScriptAction::sourceGUID, ScriptInfo::SpellID, sWaypointMgr, ScriptInfo::Talk, ScriptAction::targetGUID, TC_LOG_ERROR, ScriptInfo::TeleportTo, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, ScriptInfo::TempSummonCreature, Unit::TextEmote(), ScriptInfo::TextID, Object::ToGameObject(), Object::ToPlayer(), ObjectGuid::ToString(), Object::ToUnit(), Transport, ScriptInfo::TravelTime, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_UNIT, Unit, Vehicle, 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.
Definition at line 35 of file MapScripts.cpp.
References ObjectGuid::Empty, GameTime::GetGameTime(), Object::GetGUID(), i_scriptLock, m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), sMapMgr, ScriptAction::sourceGUID, ScriptAction::targetGUID, and Object::ToItem().
Referenced by Transport::DoEventIfAny(), FlightPathMovementGenerator::DoEventIfAny(), Spell::EffectSendEvent(), WaypointMovementGenerator< Creature >::OnArrived(), ScriptsProcess(), Spell::SendLoot(), and GameObject::Use().
|
private |
Definition at line 2929 of file Map.cpp.
References Player::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), UpdateData::Clear(), ByteBuffer::clear(), Object::GetGUID(), WorldObject::GetTransport(), Player::HaveAtClient(), Player::SendAurasForTarget(), Player::SendDirectMessage(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by AddPlayerToMap().
| void Map::SendInitTransports | ( | Player * | player | ) |
Definition at line 2966 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldObject::GetTransport(), UpdateData::HasData(), and Player::SendDirectMessage().
Referenced by AddPlayerToMap().
|
private |
Definition at line 3008 of file Map.cpp.
References _updateObjects, ASSERT, Object::BuildUpdate(), ByteBuffer::clear(), and Object::IsInWorld().
Referenced by Update().
| void Map::SendRemoveTransports | ( | Player * | player | ) |
Definition at line 2982 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldObject::GetTransport(), UpdateData::HasData(), and Player::SendDirectMessage().
Referenced by RemovePlayerFromMap().
| void Map::SendToPlayers | ( | WorldPacket const * | data | ) | const |
Definition at line 3668 of file Map.cpp.
References MapRefManager::begin(), MapRefManager::end(), and m_mapRefManager.
Referenced by boss_ossirian::boss_ossirianAI::JustEngagedWith(), and InstanceScript::SendEncounterUnit().
Definition at line 4710 of file Map.cpp.
References _zoneDynamicInfo, WorldPackets::Misc::OverrideLight::AreaLightID, WorldPackets::Misc::OverrideLight::OverrideLightID, Player::SendDirectMessage(), SendZoneWeather(), WorldPackets::Misc::OverrideLight::TransitionMilliseconds, and WorldPackets::Misc::OverrideLight::Write().
Referenced by Player::UpdateZone().
| bool Map::SendZoneMessage | ( | uint32 | zone, |
| WorldPacket const * | packet, | ||
| WorldSession const * | self = nullptr, |
||
| uint32 | team = 0 |
||
| ) | const |
Send a packet to all players (or players selected team) in the zone (except self if mentioned)
Definition at line 3675 of file Map.cpp.
References GetPlayers(), Player::GetSession(), Player::GetTeam(), WorldObject::GetZoneId(), Object::IsInWorld(), and Player::SendDirectMessage().
Referenced by SendZoneText(), SetZoneMusic(), SetZoneOverrideLight(), SetZoneWeather(), and Weather::UpdateWeather().
| void Map::SendZoneText | ( | uint32 | zoneId, |
| const char * | text, | ||
| WorldSession const * | self = nullptr, |
||
| uint32 | team = 0 |
||
| ) | const |
Send a System Message to all players in the zone (except self if mentioned)
Definition at line 4756 of file Map.cpp.
References CHAT_MSG_SYSTEM, WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, SendZoneMessage(), and WorldPackets::Chat::Chat::Write().
Referenced by OutdoorPvPSI::HandleAreaTrigger().
Definition at line 4731 of file Map.cpp.
References _zoneDynamicInfo, and SendZoneWeather().
Referenced by SendZoneDynamicInfo(), and SendZoneWeather().
| void Map::SendZoneWeather | ( | ZoneDynamicInfo const & | zoneDynamicInfo, |
| Player * | player | ||
| ) | const |
Definition at line 4740 of file Map.cpp.
References ZoneDynamicInfo::DefaultWeather, ZoneDynamicInfo::Intensity, Player::SendDirectMessage(), Weather::SendFineWeatherUpdateToPlayer(), ZoneDynamicInfo::WeatherId, and WorldPackets::Misc::Weather::Write().
Definition at line 2998 of file Map.cpp.
References ABORT, i_grids, MAX_NUMBER_OF_GRIDS, and TC_LOG_ERROR.
Referenced by EnsureGridCreated_i(), Map(), and UnloadGrid().
|
private |
Definition at line 3481 of file Map.cpp.
References _toggledSpawnGroupIds, SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), SPAWNGROUP_FLAG_MANUAL_SPAWN, SPAWNGROUP_FLAG_SYSTEM, and TC_LOG_ERROR.
Referenced by SpawnGroupDespawn(), and SpawnGroupSpawn().
|
inline |
Definition at line 799 of file Map.h.
Referenced by instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetSpawnGroupState(), and InstanceScript::UpdateSpawnGroups().
|
inlineprivate |
Definition at line 644 of file Map.h.
References MIN_GRID_DELAY.
|
inline |
Definition at line 356 of file Map.h.
References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlineprotected |
Definition at line 689 of file Map.h.
References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by MapInstanced::AddGridMapReference(), and MapInstanced::RemoveGridMapReference().
|
inline |
Definition at line 412 of file Map.h.
Referenced by MapManager::CreateBaseMap(), MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
Definition at line 4763 of file Map.cpp.
References _zoneDynamicInfo, and SendZoneMessage().
Referenced by boss_the_lich_king::DamageTaken(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), boss_the_lich_king::DoAction(), npc_gunship::npc_gunshipAI::JustDied(), boss_the_lich_king::MovementInform(), and boss_the_lich_king::UpdateAI().
| void Map::SetZoneOverrideLight | ( | uint32 | zoneId, |
| uint32 | areaLightId, | ||
| uint32 | overrideLightId, | ||
| Milliseconds | transitionTime | ||
| ) |
Definition at line 4797 of file Map.cpp.
References _zoneDynamicInfo, ZoneDynamicInfo::LightOverride::AreaLightId, WorldPackets::Misc::OverrideLight::AreaLightID, ZoneDynamicInfo::LightOverrides, ZoneDynamicInfo::LightOverride::OverrideLightId, WorldPackets::Misc::OverrideLight::OverrideLightID, SendZoneMessage(), ZoneDynamicInfo::LightOverride::TransitionMilliseconds, WorldPackets::Misc::OverrideLight::TransitionMilliseconds, and WorldPackets::Misc::OverrideLight::Write().
Referenced by boss_the_lich_king::DoAction(), boss_malygos::EnterEvadeMode(), boss_the_lich_king::JustDied(), boss_the_lich_king::JustSummoned(), boss_malygos::MovementInform(), boss_the_lich_king::Reset(), boss_the_lich_king::SpellHit(), and boss_malygos::UpdateAI().
| void Map::SetZoneWeather | ( | uint32 | zoneId, |
| WeatherState | weatherId, | ||
| float | intensity | ||
| ) |
Definition at line 4788 of file Map.cpp.
References _zoneDynamicInfo, ZoneDynamicInfo::Intensity, SendZoneMessage(), and ZoneDynamicInfo::WeatherId.
Referenced by npc_tirion_toc::DoAction(), boss_akilzon::EnterEvadeMode(), ArthasPortalEvent::Execute(), boss_the_lich_king::JustDied(), boss_the_lich_king::JustSummoned(), boss_the_lich_king::SpellHit(), boss_akilzon::UpdateAI(), and boss_lich_king_toc::UpdateAI().
|
inline |
Definition at line 784 of file Map.h.
References ShouldBeSpawnedOnGridLoad().
Referenced by ShouldBeSpawnedOnGridLoad().
| bool Map::ShouldBeSpawnedOnGridLoad | ( | SpawnObjectType | type, |
| ObjectGuid::LowType | spawnId | ||
| ) | const |
Definition at line 3356 of file Map.cpp.
References ASSERT, ASSERT_NOTNULL, SpawnGroupTemplateData::flags, GetRespawnTime(), SpawnGroupTemplateData::groupId, IsSpawnGroupActive(), sObjectMgr, SPAWNGROUP_FLAG_SYSTEM, SpawnMetadata::spawnGroupData, and SpawnMetadata::TypeHasData().
Referenced by LoadHelper().
| bool Map::SpawnGroupDespawn | ( | uint32 | groupId, |
| bool | deleteRespawnTimes = false, |
||
| size_t * | count = nullptr |
||
| ) |
Definition at line 3458 of file Map.cpp.
References ASSERT, DespawnAll(), SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), SpawnGroupTemplateData::mapId, SpawnMetadata::mapId, RemoveRespawnTime(), SetSpawnGroupActive(), sObjectMgr, SPAWNGROUP_FLAG_SYSTEM, SpawnMetadata::spawnId, TC_LOG_ERROR, and SpawnMetadata::type.
Referenced by boss_hexlord_malacrass::DoDespawnCompanions(), boss_anzu::EnterEvadeMode(), boss_akilzon::EnterEvadeMode(), boss_general_bjarngrim::EnterEvadeMode(), boss_fathomlord_karathress::EnterEvadeMode(), boss_the_lurker_below::EnterEvadeMode(), boss_kaelthas::EnterEvadeMode(), HandleNpcDespawnGroup(), boss_crone::JustDied(), boss_akilzon::JustDied(), boss_anzu::JustDied(), boss_the_lurker_below::JustDied(), boss_kaelthas::JustDied(), boss_general_bjarngrim::JustDied(), boss_crone::JustReachedHome(), npc_high_overlord_saurfang_icc::MovementInform(), npc_muradin_bronzebeard_icc::MovementInform(), SmartScript::ProcessAction(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetSpawnGroupState(), and boss_majordomo::UpdateSpecialEvents().
| bool Map::SpawnGroupSpawn | ( | uint32 | groupId, |
| bool | ignoreRespawn = false, |
||
| bool | force = false, |
||
| std::vector< WorldObject * > * | spawnedObjects = nullptr |
||
| ) |
Definition at line 3382 of file Map.cpp.
References ABORT_MSG, ASSERT, ASSERT_NOTNULL, SpawnGroupTemplateData::flags, GetId(), GetRespawnMapForType(), GetSpawnGroupData(), GetSpawnMode(), GetWorldObjectBySpawnId(), IsGridLoaded(), Creature::LoadFromDB(), GameObject::LoadFromDB(), SpawnGroupTemplateData::mapId, SpawnMetadata::mapId, RemoveRespawnTime(), SetSpawnGroupActive(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_SYSTEM, SpawnMetadata::spawnId, TC_LOG_ERROR, SpawnMetadata::ToSpawnData(), SpawnMetadata::type, and SpawnMetadata::TypeHasData().
Referenced by boss_nalorakk::DoAction(), boss_leotheras_the_blind::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_hexlord_malacrass::DoSpawnCompanions(), HandleNpcSpawnGroup(), boss_crone::JustAppeared(), boss_janalai::JustAppeared(), boss_general_bjarngrim::JustAppeared(), boss_nexusprince_shaffar::JustAppeared(), boss_fathomlord_karathress::JustAppeared(), boss_leotheras_the_blind::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), boss_kaelthas::JustAppeared(), boss_majordomo::JustReachedHome(), boss_nexusprince_shaffar::JustReachedHome(), npc_grandmother::OnGossipSelect(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::OnPlayerEnter(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnPlayerEnter(), instance_stratholme::instance_stratholme_InstanceMapScript::OnUnitDeath(), SmartScript::ProcessAction(), boss_nalorakk::Reset(), boss_drakkari_colossus::Reset(), boss_high_king_maulgar::Reset(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::SetBossState(), instance_uldaman::instance_uldaman_InstanceMapScript::SetData(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetSpawnGroupState(), instance_molten_core::instance_molten_core_InstanceMapScript::SpawnMajordomoExecutus(), SummonCroneIfReady(), instance_ramparts::instance_ramparts_InstanceMapScript::Update(), boss_julianne::UpdateAI(), boss_akilzon::UpdateAI(), npc_medivh_bm::UpdateAI(), boss_anzu::UpdateAI(), boss_the_lurker_below::UpdateAI(), InstanceScript::UpdateSpawnGroups(), and boss_majordomo::UpdateSpecialEvents().
| TempSummon * Map::SummonCreature | ( | uint32 | entry, |
| Position const & | pos, | ||
| SummonPropertiesEntry const * | properties = nullptr, |
||
| uint32 | duration = 0, |
||
| WorldObject * | summoner = nullptr, |
||
| uint32 | spellId = 0, |
||
| uint32 | vehId = 0, |
||
| ObjectGuid | privateObjectOwner = ObjectGuid::Empty |
||
| ) |
Definition at line 1853 of file Object.cpp.
References AddToMap(), SummonPropertiesEntry::Control, Creature::Create(), SummonPropertiesEntry::Flags, WorldObject::GetPhaseMask(), GetVisibilityRange(), TempSummon::InitStats(), TempSummon::InitSummon(), PHASEMASK_NORMAL, Unit::SetCreatedBySpell(), Creature::SetHomePosition(), WorldObject::SetPrivateObjectOwner(), 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_LIGHTWELL, SUMMON_TYPE_MINION, SUMMON_TYPE_MINIPET, SUMMON_TYPE_TOTEM, SUMMON_TYPE_VEHICLE, SUMMON_TYPE_VEHICLE2, SummonPropertiesEntry::Title, Object::ToCreature(), Object::ToUnit(), UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, UNIT_MASK_PUPPET, UNIT_MASK_SUMMON, UNIT_MASK_TOTEM, and Cell::VisitAllObjects().
Referenced by instance_scholomance::instance_scholomance_InstanceMapScript::CheckToSpawnGandling(), npc_halion_controller::DoAction(), Spell::EffectSummonType(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::HandleStartEvent(), spell_halion_damage_aoe_summon::HandleSummon(), spell_putricide_mutated_transformation::HandleSummon(), spell_dk_raise_ally::spell_dk_raise_ally_SpellScript::HandleSummon(), npc_halion_controller::JustAppeared(), boss_devourer_of_souls::JustDied(), boss_ossirian::boss_ossirianAI::JustEngagedWith(), boss_devourer_of_souls::JustEngagedWith(), go_strange_pool::OnGossipHello(), instance_zulaman::instance_zulaman_InstanceMapScript::OnPlayerEnter(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), at_sindragosa_lair::OnTrigger(), instance_karazhan::instance_karazhan_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), spell_halion_twilight_phasing::Phase(), instance_zulgurub::instance_zulgurub_InstanceMapScript::ProcessEvent(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ProcessEvent(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), npc_arthas_stratholme::npc_arthas_stratholmeAI::SetGUID(), npc_malcolm_moore::Spawn(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnEscapeEvent(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SpawnInfiniteCorruptor(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), SummonCreatureGroup(), Spell::SummonGuardian(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::Update(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::Update(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::Update(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_halion_controller::UpdateAI(), boss_the_lich_king::UpdateAI(), and npc_brann_bronzebeard_algalon::UpdateAI().
| 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. |
Definition at line 1960 of file Object.cpp.
References GetId(), sObjectMgr, SummonCreature(), and SUMMONER_TYPE_MAP.
Referenced by at_ancient_leaf::OnTrigger().
| void Map::SwitchGridContainers | ( | Creature * | obj, |
| bool | on | ||
| ) |
Definition at line 376 of file Map.cpp.
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(), Trinity::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(), WorldObject::IsAlwaysStoredInWorldObjectGridContainer(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), LOG_LEVEL_DEBUG, Creature::m_isTempWorldObject, Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), sLog, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::SwitchGridContainers | ( | GameObject * | obj, |
| bool | on | ||
| ) |
Definition at line 421 of file Map.cpp.
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(), Trinity::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(), WorldObject::IsAlwaysStoredInWorldObjectGridContainer(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), LOG_LEVEL_DEBUG, Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), sLog, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::SwitchGridContainers | ( | T * | obj, |
| bool | on | ||
| ) |
|
inline |
Definition at line 543 of file Map.h.
Referenced by Player::LoadFromDB(), and npc_ioc_gunship_captain::UpdateAI().
|
inline |
|
inline |
Definition at line 540 of file Map.h.
Referenced by InstanceSaveManager::_ResetOrWarnAll(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckAchievementCriteriaMeet(), TransportMgr::CreateTransport(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), instance_commandscript::HandleInstanceGetBossStateCommand(), instance_commandscript::HandleInstanceSaveDataCommand(), instance_commandscript::HandleInstanceSetBossStateCommand(), InstanceHasScript(), Unit::Kill(), AchievementCriteriaData::Meets(), AchievementMgr::RequirementsSatisfied(), Player::ResetInstances(), and WorldObject::SetZoneScript().
|
inline |
|
inline |
Definition at line 537 of file Map.h.
Referenced by InstanceSaveManager::_ResetOrWarnAll(), MapManager::DoForAllMaps(), MapManager::DoForAllMapsWithMapId(), MapManager::GetNumInstances(), and MapManager::GetNumPlayersInInstances().
|
inline |
|
virtual |
Reimplemented in InstanceMap, and MapInstanced.
Definition at line 1745 of file Map.cpp.
References _corpseBones, _corpsesByCell, _corpsesByPlayer, _creaturesToMove, _gameObjectsToMove, _transports, GridRefManager< OBJECT >::end(), and UnloadGrid().
Referenced by MapInstanced::DestroyInstance(), InstanceMap::UnloadAll(), and MapInstanced::UnloadAll().
|
private |
Definition at line 3194 of file Map.cpp.
References _creatureRespawnTimesBySpawnId, _gameObjectRespawnTimesBySpawnId, and _respawnTimes.
Referenced by ~Map().
| bool Map::UnloadGrid | ( | NGridType & | ngrid, |
| bool | pForce | ||
| ) |
Definition at line 1649 of file Map.cpp.
References ActiveObjectsNearGrid(), ASSERT, MMAP::MMapFactory::createOrGetMMapManager(), VMAP::VMapFactory::createOrGetVMapManager(), GetId(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetWorldObjectCountInNGrid(), 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, m_parentMap, MAX_NUMBER_OF_GRIDS, MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), RemoveAllObjectsInRemoveList(), setNGrid(), TC_LOG_DEBUG, GridMap::unloadData(), MMAP::MMapManager::unloadMap(), VMAP::VMapManager2::unloadMap(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllGrids().
Referenced by UnloadAll(), and RemovalState::Update().
|
virtual |
update worldsessions for existing players
process any due respawns
update active cells around players and active objects
Reimplemented in MapInstanced, and InstanceMap.
Definition at line 762 of file Map.cpp.
References _dynamicTree, _respawnCheckTimer, _transports, _transportsUpdateIter, _weatherUpdateTimer, _zoneDynamicInfo, MapRefManager::begin(), CONFIG_RESPAWN_MINCHECKINTERVALMS, MapRefManager::end(), Unit::GetAppliedAuras(), Unit::GetCombatManager(), GetCreature(), GetId(), GetInstanceId(), IntervalTimer::GetInterval(), WorldLocation::GetMapId(), GetObjectsStore(), CombatManager::GetPvECombatRefs(), Player::GetSession(), Reference< TO, FROM >::GetSource(), Player::GetViewpoint(), GetVisibilityRange(), i_scriptLock, LinkedListHead::isEmpty(), Unit::IsInCombat(), Object::IsInWorld(), m_activeNonPlayers, m_activeNonPlayersIter, m_mapRefIter, m_mapRefManager, m_scriptSchedule, Unit::m_SummonSlot, MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), IntervalTimer::Passed(), ProcessRelocationNotifies(), ProcessRespawns(), IntervalTimer::Reset(), resetMarkedCells(), ScriptsProcess(), SendObjectUpdates(), sScriptMgr, sWorld, TC_METRIC_TAG, TC_METRIC_VALUE, Object::ToCreature(), TYPEID_PLAYER, IntervalTimer::Update(), DynamicMapTree::update(), WorldObject::Update(), WorldSession::Update(), Player::Update(), and VisitNearbyCellsOf().
Referenced by MapUpdateRequest::call(), MapInstanced::Update(), and InstanceMap::Update().
| void Map::UpdateAreaDependentAuras | ( | ) |
Definition at line 4822 of file Map.cpp.
References MapRefManager::begin(), MapRefManager::end(), and GetPlayers().
Referenced by BattlegroundSA::PostUpdateImpl(), and BattlegroundSA::TitanRelicActivated().
| void Map::UpdateIteratorBack | ( | Player * | player | ) |
Definition at line 4449 of file Map.cpp.
References Player::GetMapRef(), m_mapRefIter, and MapReference::nocheck_prev().
Referenced by Player::ResetMap().
Definition at line 747 of file Map.cpp.
References _zonePlayerCountMap, ASSERT, and MAP_INVALID_ZONE.
Referenced by Player::UpdateZone().
|
inline |
Definition at line 955 of file Map.h.
References Cell::CellX(), Cell::CellY(), EnsureGridLoaded(), getNGrid(), Cell::GridX(), Cell::GridY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded(), Cell::NoCreate(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
Referenced by ProcessRelocationNotifies(), Cell::Visit(), Cell::VisitCircle(), and VisitNearbyCellsOf().
| void Map::VisitNearbyCellsOf | ( | WorldObject * | obj, |
| TypeContainerVisitor< Trinity::ObjectUpdater, GridTypeMapContainer > & | gridVisitor, | ||
| TypeContainerVisitor< Trinity::ObjectUpdater, WorldTypeMapContainer > & | worldVisitor | ||
| ) |
Definition at line 718 of file Map.cpp.
References Cell::CalculateCellArea(), WorldObject::GetGridActivationRange(), Position::GetPositionX(), Position::GetPositionY(), CellArea::high_bound, isCellMarked(), Position::IsPositionValid(), CellArea::low_bound, markCell(), Cell::SetNoCreate(), TOTAL_NUMBER_OF_CELLS_PER_MAP, Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
|
friend |
|
private |
Definition at line 878 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
Definition at line 876 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), and UnloadAll().
|
private |
Definition at line 877 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
|
private |
Definition at line 874 of file Map.h.
Referenced by CheckRespawn(), and ScriptsProcess().
|
private |
Definition at line 834 of file Map.h.
Referenced by GetRespawnInfo(), and UnloadAllRespawnInfos().
|
private |
Definition at line 661 of file Map.h.
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and UnloadAll().
|
private |
Definition at line 660 of file Map.h.
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and RemoveCreatureFromMoveList().
|
private |
Definition at line 667 of file Map.h.
Referenced by AddDynamicObjectToMoveList(), and MoveAllDynamicObjectsInMoveList().
|
private |
Definition at line 666 of file Map.h.
Referenced by AddDynamicObjectToMoveList(), MoveAllDynamicObjectsInMoveList(), and RemoveDynamicObjectFromMoveList().
|
protected |
Definition at line 700 of file Map.h.
Referenced by GetAreaInfo(), GetFullTerrainStatusForPosition(), getObjectHitPos(), isInLineOfSight(), and Update().
|
private |
Definition at line 882 of file Map.h.
Referenced by AddFarSpellCallback(), and DelayedUpdate().
|
private |
Definition at line 875 of file Map.h.
Referenced by CheckRespawn().
|
private |
Definition at line 835 of file Map.h.
Referenced by GetRespawnInfo(), and UnloadAllRespawnInfos().
|
private |
Definition at line 664 of file Map.h.
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and UnloadAll().
|
private |
Definition at line 663 of file Map.h.
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and RemoveGameObjectFromMoveList().
|
protected |
Definition at line 692 of file Map.h.
Referenced by EnsureGridCreated().
|
private |
Definition at line 872 of file Map.h.
Referenced by GetGuidSequenceGenerator().
|
protected |
Definition at line 691 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), BattlegroundMap::AddPlayerToMap(), MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
|
private |
Definition at line 873 of file Map.h.
Referenced by GetCorpse(), GetCreature(), GetDynamicObject(), GetGameObject(), and GetPet().
|
private |
|
private |
Definition at line 833 of file Map.h.
Referenced by AddRespawnInfo(), DeleteRespawnInfo(), ProcessRespawns(), Respawn(), and UnloadAllRespawnInfos().
|
private |
Definition at line 862 of file Map.h.
Referenced by IsSpawnGroupActive(), and SetSpawnGroupActive().
|
protected |
Definition at line 713 of file Map.h.
Referenced by AddToMap(), DelayedUpdate(), RemoveFromMap(), SendInitTransports(), SendRemoveTransports(), UnloadAll(), and Update().
|
protected |
Definition at line 714 of file Map.h.
Referenced by DelayedUpdate(), RemoveFromMap(), and Update().
|
private |
Definition at line 880 of file Map.h.
Referenced by SendObjectUpdates().
|
private |
|
private |
Definition at line 867 of file Map.h.
Referenced by GetOrGenerateZoneDefaultWeather(), SendZoneDynamicInfo(), SendZoneWeather(), SetZoneMusic(), SetZoneOverrideLight(), SetZoneWeather(), and Update().
Definition at line 865 of file Map.h.
Referenced by ApplyDynamicModeRespawnScaling(), Map(), and UpdatePlayerZoneStats().
| std::unordered_map<ObjectGuid::LowType , CreatureGroup*> Map::CreatureGroupHolder |
Definition at line 481 of file Map.h.
Referenced by FormationMgr::AddCreatureToGroup(), and FormationMgr::RemoveCreatureFromGroup().
|
private |
Definition at line 734 of file Map.h.
Referenced by EnsureGridCreated_i(), GetGrid(), LoadMap(), Map(), and UnloadGrid().
|
private |
Definition at line 727 of file Map.h.
Referenced by EnsureGridCreated_i().
|
private |
Definition at line 733 of file Map.h.
Referenced by setNGrid().
|
protected |
Definition at line 696 of file Map.h.
Referenced by InstanceMap::CreateInstanceData(), EnsureGridCreated_i(), EnsureGridLoaded(), LoadMap(), LoadMapAndVMap(), UnloadGrid(), and ~Map().
|
protected |
Definition at line 694 of file Map.h.
Referenced by GetAreaId(), GetEntrancePos(), GetFullTerrainStatusForPosition(), GetId(), GetMapName(), Instanceable(), IsBattleArena(), IsBattleground(), IsBattlegroundOrArena(), IsDungeon(), IsNonRaidDungeon(), IsRaid(), and IsWorldMap().
|
private |
Definition at line 742 of file Map.h.
Referenced by AddObjectToRemoveList(), RemoveAllObjectsInRemoveList(), and UnloadGrid().
|
private |
Definition at line 743 of file Map.h.
Referenced by AddObjectToSwitchList(), and RemoveAllObjectsInRemoveList().
|
private |
Definition at line 741 of file Map.h.
Referenced by ScriptCommandStart(), ScriptsStart(), and Update().
|
protected |
Definition at line 695 of file Map.h.
Referenced by Is25ManRaid(), and IsHeroic().
|
private |
|
protected |
Definition at line 708 of file Map.h.
Referenced by ActiveObjectsNearGrid(), and Update().
|
protected |
|
protected |
Definition at line 703 of file Map.h.
Referenced by Update(), and UpdateIteratorBack().
|
protected |
Definition at line 702 of file Map.h.
Referenced by ActiveObjectsNearGrid(), GetPlayersCountExceptGMs(), InstanceMap::PermBindAllPlayers(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), InstanceMap::SendResetWarnings(), SendToPlayers(), MapReference::sourceObjectDestroyLink(), MapReference::targetObjectBuildLink(), MapReference::targetObjectDestroyLink(), and Update().
|
private |
Definition at line 731 of file Map.h.
Referenced by LoadMap(), Map(), and UnloadGrid().
|
private |
Definition at line 747 of file Map.h.
Referenced by ScriptCommandStart(), ScriptsProcess(), ScriptsStart(), Update(), and ~Map().
|
protected |
Definition at line 698 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::InstanceMap(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), and BattlegroundMap::SetUnload().
|
protected |
Definition at line 705 of file Map.h.
Referenced by InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), BattlegroundMap::InitVisibilityDistance(), and ProcessRelocationNotifies().
|
protected |
Definition at line 699 of file Map.h.
Referenced by InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), and BattlegroundMap::InitVisibilityDistance().
|
protected |
|
private |