![]() |
TrinityCore
|
#include <Map.h>
Inheritance diagram for Map:Public Types | |
| typedef MapRefManager | PlayerList |
| typedef std::unordered_multimap< ObjectGuid::LowType, Creature * > | CreatureBySpawnIdContainer |
| typedef std::unordered_multimap< ObjectGuid::LowType, GameObject * > | GameObjectBySpawnIdContainer |
| typedef std::unordered_multimap< ObjectGuid::LowType, AreaTrigger * > | AreaTriggerBySpawnIdContainer |
| typedef std::function< void(Map *)> | FarSpellCallback |
Public Types inherited from RefManager< ReferenceType > | |
| typedef LinkedListHead::Iterator< ReferenceType > | iterator |
| typedef LinkedListHead::Iterator< ReferenceType const > | const_iterator |
Public Member Functions | |
| Map (uint32 id, time_t, uint32 InstanceId, Difficulty SpawnMode) | |
| virtual | ~Map () |
| MapEntry const * | GetEntry () const |
| bool | CanUnload (uint32 diff) |
| virtual bool | AddPlayerToMap (Player *player, bool initPlayer=true) |
| 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) |
| void | AreaTriggerRelocation (AreaTrigger *at, 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 | LoadGridForActiveObject (float x, float y, WorldObject const *object) |
| void | LoadGridsInRange (float x, float y, float radius) |
| void | LoadAllGrids () |
| bool | UnloadGrid (NGridType &ngrid, bool pForce) |
| void | GridMarkNoUnload (uint32 x, uint32 y) |
| void | GridUnmarkNoUnload (uint32 x, uint32 y) |
| void | UnloadAll () |
| void | ResetGridExpiry (NGridType &grid, float factor=1) const |
| time_t | GetGridExpiry () const |
| TerrainInfo * | GetTerrain () const |
| uint16 | GetForceEnabledNavMeshFilterFlags () const |
| void | SetForceEnabledNavMeshFilterFlag (uint16 flag) |
| void | RemoveForceEnabledNavMeshFilterFlag (uint16 flag) |
| uint16 | GetForceDisabledNavMeshFilterFlags () const |
| void | SetForceDisabledNavMeshFilterFlag (uint16 flag) |
| void | RemoveForceDisabledNavMeshFilterFlag (uint16 flag) |
| void | GetFullTerrainStatusForPosition (PhaseShift const &phaseShift, float x, float y, float z, PositionFullTerrainStatus &data, Optional< map_liquidHeaderTypeFlags > reqLiquidType={}, float collisionHeight=2.03128f) |
| ZLiquidStatus | GetLiquidStatus (PhaseShift const &phaseShift, float x, float y, float z, Optional< map_liquidHeaderTypeFlags > ReqLiquidType={}, LiquidData *data=nullptr, float collisionHeight=2.03128f) |
| uint32 | GetAreaId (PhaseShift const &phaseShift, float x, float y, float z) |
| uint32 | GetAreaId (PhaseShift const &phaseShift, Position const &pos) |
| uint32 | GetZoneId (PhaseShift const &phaseShift, float x, float y, float z) |
| uint32 | GetZoneId (PhaseShift const &phaseShift, Position const &pos) |
| void | GetZoneAndAreaId (PhaseShift const &phaseShift, uint32 &zoneid, uint32 &areaid, float x, float y, float z) |
| void | GetZoneAndAreaId (PhaseShift const &phaseShift, uint32 &zoneid, uint32 &areaid, Position const &pos) |
| float | GetMinHeight (PhaseShift const &phaseShift, float x, float y) |
| float | GetGridHeight (PhaseShift const &phaseShift, float x, float y) |
| float | GetStaticHeight (PhaseShift const &phaseShift, float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) |
| float | GetStaticHeight (PhaseShift const &phaseShift, Position const &pos, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) |
| float | GetHeight (PhaseShift const &phaseShift, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) |
| float | GetHeight (PhaseShift const &phaseShift, Position const &pos, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) |
| float | GetWaterLevel (PhaseShift const &phaseShift, float x, float y) |
| bool | IsInWater (PhaseShift const &phaseShift, float x, float y, float z, LiquidData *data=nullptr) |
| bool | IsUnderWater (PhaseShift const &phaseShift, float x, float y, float z) |
| float | GetWaterOrGroundLevel (PhaseShift const &phaseShift, float x, float y, float z, float *ground=nullptr, bool swim=false, float collisionHeight=2.03128f) |
| void | MoveAllCreaturesInMoveList () |
| void | MoveAllGameObjectsInMoveList () |
| void | MoveAllDynamicObjectsInMoveList () |
| void | MoveAllAreaTriggersInMoveList () |
| void | RemoveAllObjectsInRemoveList () |
| virtual void | RemoveAllPlayers () |
| bool | CreatureRespawnRelocation (Creature *c, bool diffGridOnly) |
| bool | GameObjectRespawnRelocation (GameObject *go, bool diffGridOnly) |
| uint32 | GetInstanceId () const |
| Trinity::unique_weak_ptr< Map > | GetWeakPtr () const |
| void | SetWeakPtr (Trinity::unique_weak_ptr< Map > weakRef) |
| virtual TransferAbortParams | CannotEnter (Player *) |
| char const * | GetMapName () const |
| Difficulty | GetDifficultyID () const |
| MapDifficultyEntry const * | GetMapDifficulty () const |
| uint32 | GetId () const |
| bool | Instanceable () const |
| bool | IsWorldMap () const |
| bool | IsDungeon () const |
| bool | IsNonRaidDungeon () const |
| bool | IsRaid () const |
| bool | IsLFR () const |
| bool | IsNormal () const |
| bool | IsHeroic () const |
| bool | IsMythic () const |
| bool | IsMythicPlus () const |
| bool | IsHeroicOrHigher () const |
| bool | Is25ManRaid () const |
| bool | IsTimewalking () const |
| bool | IsBattleground () const |
| bool | IsBattleArena () const |
| bool | IsBattlegroundOrArena () const |
| bool | IsScenario () const |
| bool | IsGarrison () const |
| bool | IsAlwaysActive () const |
| bool | GetEntrancePos (int32 &mapid, float &x, float &y) |
| 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, Optional< Team > team={ }) const |
| Send a packet to all players (or players selected team) in the zone (except self if mentioned) | |
| PlayerList const & | GetPlayers () const |
| template<typename T > | |
| void | DoOnPlayers (T &&fn) |
| 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, Milliseconds duration=0ms, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty, SmoothPhasingInfo const *smoothPhasingInfo=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| AreaTrigger * | GetAreaTrigger (ObjectGuid const &guid) |
| SceneObject * | GetSceneObject (ObjectGuid const &guid) |
| Conversation * | GetConversation (ObjectGuid const &guid) |
| Player * | GetPlayer (ObjectGuid const &guid) |
| Corpse * | GetCorpse (ObjectGuid const &guid) |
| Creature * | GetCreature (ObjectGuid const &guid) |
| DynamicObject * | GetDynamicObject (ObjectGuid const &guid) |
| GameObject * | GetGameObject (ObjectGuid const &guid) |
| Pet * | GetPet (ObjectGuid const &guid) |
| Transport * | GetTransport (ObjectGuid const &guid) |
| Creature * | GetCreatureBySpawnId (ObjectGuid::LowType spawnId) const |
| GameObject * | GetGameObjectBySpawnId (ObjectGuid::LowType spawnId) const |
| AreaTrigger * | GetAreaTriggerBySpawnId (ObjectGuid::LowType spawnId) const |
| WorldObject * | GetWorldObjectBySpawnId (SpawnObjectType type, ObjectGuid::LowType spawnId) const |
| MapStoredObjectTypesContainer & | GetObjectsStore () |
| CreatureBySpawnIdContainer & | GetCreatureBySpawnIdStore () |
| CreatureBySpawnIdContainer const & | GetCreatureBySpawnIdStore () const |
| GameObjectBySpawnIdContainer & | GetGameObjectBySpawnIdStore () |
| GameObjectBySpawnIdContainer const & | GetGameObjectBySpawnIdStore () const |
| AreaTriggerBySpawnIdContainer & | GetAreaTriggerBySpawnIdStore () |
| AreaTriggerBySpawnIdContainer const & | GetAreaTriggerBySpawnIdStore () const |
| std::unordered_set< Corpse * > const * | GetCorpsesInGrid (uint32 cellId) const |
| Corpse * | GetCorpseByPlayer (ObjectGuid const &ownerGuid) const |
| InstanceMap * | ToInstanceMap () |
| InstanceMap const * | ToInstanceMap () const |
| BattlegroundMap * | ToBattlegroundMap () |
| BattlegroundMap const * | ToBattlegroundMap () const |
| bool | isInLineOfSight (PhaseShift const &phaseShift, float x1, float y1, float z1, float x2, float y2, float z2, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const |
| void | Balance () |
| void | RemoveGameObjectModel (GameObjectModel const &model) |
| void | InsertGameObjectModel (GameObjectModel const &model) |
| bool | ContainsGameObjectModel (GameObjectModel const &model) const |
| std::span< GameObjectModel const *const > | GetGameObjectModelsInGrid (uint32 gx, uint32 gy) const |
| float | GetGameObjectFloor (PhaseShift const &phaseShift, float x, float y, float z, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| bool | getObjectHitPos (PhaseShift const &phaseShift, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float modifyDist) |
| void | RequestRebuildNavMeshOnGameObjectModelChange (GameObjectModel const &model, PhaseShift const &phaseShift) |
| virtual ObjectGuid::LowType | GetOwnerGuildId (uint32=TEAM_OTHER) const |
| 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 | DeleteRespawnTimesInDB () |
| 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 | SendUpdateTransportVisibility (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, Optional< Team > team={ }) 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) |
| WeatherState | GetZoneWeather (uint32 zoneId) const |
| 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 (BaseEntity *obj) |
| void | RemoveUpdateObject (BaseEntity *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) |
| SpawnedPoolData & | GetPoolData () |
| SpawnedPoolData const & | GetPoolData () const |
| void | AddFarSpellCallback (FarSpellCallback &&callback) |
| void | InitSpawnGroupState () |
| void | UpdateSpawnGroupConditions () |
| MultiPersonalPhaseTracker & | GetMultiPersonalPhaseTracker () |
| void | UpdatePersonalPhasesForPlayer (Player const *player) |
| int32 | GetWorldStateValue (int32 worldStateId) const |
| void | SetWorldStateValue (int32 worldStateId, int32 value, bool hidden) |
| WorldStateValueContainer const & | GetWorldStateValues () const |
| void | AddInfiniteAOIVignette (Vignettes::VignetteData *vignette) |
| void | RemoveInfiniteAOIVignette (Vignettes::VignetteData *vignette) |
| std::vector< Vignettes::VignetteData * > const & | GetInfiniteAOIVignettes () const |
| template<> | |
| void | AddToGrid (Corpse *obj, Cell const &cell) |
| template<> | |
| void | SwitchGridContainers (Creature *obj, bool on) |
| template<> | |
| void | DeleteFromWorld (Player *player) |
| 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 RefManager< ReferenceType > | |
| RefManager () | |
| ReferenceType * | front () |
| ReferenceType const * | front () 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 | empty () const |
| void | push_front (LinkedListElement *pElem) |
| void | push_back (LinkedListElement *pElem) |
| void | pop_front () |
| void | pop_back () |
| uint32 | size () const |
| void | incSize () |
| void | decSize () |
Static Public Member Functions | |
| static void | InitStateMachine () |
| static void | DeleteStateMachine () |
| template<typename T > | |
| static bool | CheckGridIntegrity (T *object, bool moved, char const *objType) |
| static TransferAbortParams | PlayerCannotEnter (uint32 mapid, Player *player) |
Public Attributes | |
| std::unordered_map< ObjectGuid::LowType, CreatureGroup * > | CreatureGroupHolder |
Protected Types | |
| typedef std::set< WorldObject * > | ActiveNonPlayers |
| typedef std::set< Transport * > | TransportsContainer |
Protected Member Functions | |
| virtual void | LoadGridObjects (NGridType *grid) |
Protected Member Functions inherited from LinkedListHead | |
| template<typename T > | |
| T * | front_impl () |
| template<typename T > | |
| T const * | front_impl () const |
| template<typename T > | |
| T * | back_impl () |
| template<typename T > | |
| T const * | back_impl () const |
| template<typename T > | |
| Iterator< T > | begin_impl () |
| template<typename T > | |
| Iterator< T const > | begin_impl () const |
| template<typename T > | |
| Iterator< T > | end_impl () |
| template<typename T > | |
| Iterator< T const > | end_impl () const |
| void | splice_impl (LinkedListElement *where, LinkedListElement *first, LinkedListElement *last) |
| template<typename T > | |
| void | splice_impl (Iterator< T > where, Iterator< T > first, Iterator< T > last) |
| ~LinkedListHead () | |
Protected Attributes | |
| MapEntry const * | i_mapEntry |
| Difficulty | i_spawnMode |
| uint32 | i_InstanceId |
| Trinity::unique_weak_ptr< Map > | m_weakRef |
| uint32 | m_unloadTimer |
| float | m_VisibleDistance |
| DynamicMapTree | _dynamicTree |
| std::shared_ptr< MMAP::DynamicTileBuilder > | m_mmapTileRebuilder |
| 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 |
| class | ObjectGridLoaderBase |
|
protected |
| typedef std::unordered_multimap<ObjectGuid::LowType, AreaTrigger*> Map::AreaTriggerBySpawnIdContainer |
| 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 |
| Map::Map | ( | uint32 | id, |
| time_t | expiry, | ||
| uint32 | InstanceId, | ||
| Difficulty | SpawnMode | ||
| ) |
Definition at line 138 of file Map.cpp.
References _poolData, _weatherUpdateTimer, _worldStateValues, GetGuidSequenceGenerator(), GetId(), WorldStateMgr::GetInitialWorldStatesForMap(), GetInstanceId(), IN_MILLISECONDS, InitVisibilityDistance(), MMAP::MMapManager::instance(), MMAP::MMapManager::isRebuildingTilesEnabledOnMap(), m_mmapTileRebuilder, m_terrain, ObjectGuidGenerator::Set(), IntervalTimer::SetInterval(), sObjectMgr, sPoolMgr, sTransportMgr, and Transport.
|
virtual |
Definition at line 94 of file Map.cpp.
References ASSERT, GetId(), GetInstanceId(), i_worldObjects, WorldObject::IsStoredInWorldObjectGridContainer(), m_scriptSchedule, m_terrain, WorldObject::RemoveFromWorld(), WorldObject::ResetMap(), sMapMgr, and UnloadAllRespawnInfos().
|
inlineprivate |
Definition at line 301 of file MapScripts.cpp.
References GetGameObjectBySpawnIdStore(), and WorldObject::GetMap().
Referenced by _ScriptProcessDoor(), and ScriptsProcess().
|
inlineprivate |
Definition at line 222 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), BaseEntity::GetGUID(), TC_LOG_ERROR, Object::ToCreature(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 123 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), TC_LOG_ERROR, and Object::ToCreature().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 156 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), TC_LOG_ERROR, and Object::ToGameObject().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 207 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), BaseEntity::GetGUID(), TC_LOG_ERROR, Object::ToPlayer(), and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 101 of file MapScripts.cpp.
References ObjectGuid::Empty, ScriptInfo::GetDebugInfo(), Object::GetEntry(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), TC_LOG_ERROR, and Object::ToPlayer().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 189 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), BaseEntity::GetGUID(), BaseEntity::IsUnit(), TC_LOG_ERROR, ObjectGuid::ToString(), and Object::ToUnit().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 237 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), BaseEntity::GetGUID(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 253 of file MapScripts.cpp.
References _FindGameObject(), ScriptInfo::command, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, ScriptInfo::GetDebugInfo(), GameObject::GetGoState(), GameObject::GetGoType(), BaseEntity::GetGUID(), GO_STATE_READY, ScriptInfo::GOGuid, BaseEntity::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 2725 of file Map.cpp.
References RefManager< ReferenceType >::begin(), Trinity::ComputeCellCoord(), CoordPair< LIMIT >::dec_x(), CoordPair< LIMIT >::dec_y(), RefManager< ReferenceType >::end(), Position::GetPositionX(), Position::GetPositionY(), GetVisibilityRange(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getX(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::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().
|
private |
Definition at line 1236 of file Map.cpp.
References _areaTriggersToMove, _areaTriggersToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by AreaTriggerRelocation().
| void Map::AddCorpse | ( | Corpse * | corpse | ) |
Definition at line 3850 of file Map.cpp.
References _corpseBones, _corpsesByGrid, _corpsesByPlayer, Trinity::ComputeGridCoord(), CORPSE_BONES, CoordPair< LIMIT >::GetId(), Corpse::GetOwnerGUID(), Position::GetPositionX(), Position::GetPositionY(), Corpse::GetType(), and WorldObject::SetMap().
Referenced by ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseData().
|
private |
Definition at line 1179 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by CreatureRelocation().
|
private |
Definition at line 1217 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 2555 of file Map.cpp.
References _farSpellCallbacks.
Referenced by Spell::SelectEffectTypeImplicitTargets().
|
private |
Definition at line 1198 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_NONE, and MapObject::SetNewCellPosition().
Referenced by GameObjectRelocation().
| void Map::AddInfiniteAOIVignette | ( | Vignettes::VignetteData * | vignette | ) |
Definition at line 479 of file Map.cpp.
References _infiniteAOIVignettes, WorldPackets::Vignette::VignetteUpdate::Added, Vignettes::CanSee(), Vignettes::VignetteData::FillPacket(), WorldPackets::Packet::GetRawPacket(), m_mapRefManager, and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by Vignettes::Create().
| void Map::AddObjectToRemoveList | ( | WorldObject * | obj | ) |
Definition at line 2588 of file Map.cpp.
References ASSERT, WorldObject::CleanupsBeforeDelete(), GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), i_objectsToRemove, and BaseEntity::SetDestroyedObject().
Referenced by WorldObject::AddObjectToRemoveList(), DespawnAll(), PlayerPersonalPhasesTracker::DespawnPhase(), MoveAllCreaturesInMoveList(), and MoveAllGameObjectsInMoveList().
| void Map::AddObjectToSwitchList | ( | WorldObject * | obj, |
| bool | on | ||
| ) |
Definition at line 2598 of file Map.cpp.
References ABORT, ASSERT, GetId(), WorldObject::GetInstanceId(), GetInstanceId(), WorldLocation::GetMapId(), BaseEntity::GetTypeId(), i_objectsToSwitch, and TYPEID_UNIT.
Referenced by WorldObject::SetIsStoredInWorldObjectGridContainer().
|
virtual |
Reimplemented in GarrisonMap, InstanceMap, and BattlegroundMap.
Definition at line 392 of file Map.cpp.
References AddToGrid(), Player::AddToWorld(), ASSERT, Trinity::ComputeCellCoord(), ConvertCorpseToBones(), EnsureGridLoadedForActiveObject(), EnteringInstance, BaseEntity::GetGUID(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), Instanceable(), Unit::IsAlive(), CoordPair< LIMIT >::IsCoordValid(), Player::m_clientGUIDs, Unit::RemoveAurasWithInterruptFlags(), SendInitSelf(), SendInitTransports(), PhasingHandler::SendToPlayer(), Player::SetMap(), sScriptMgr, TC_LOG_ERROR, ObjectGuid::ToString(), Player::UpdateObjectVisibility(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by GarrisonMap::AddPlayerToMap(), InstanceMap::AddPlayerToMap(), BattlegroundMap::AddPlayerToMap(), WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
|
private |
Definition at line 2102 of file Map.cpp.
References _respawnTimes, ABORT_MSG, ASSERT, DeleteRespawnInfo(), GetRespawnMapForType(), RespawnInfoWithHandle::handle, RespawnInfo::respawnTime, RespawnInfo::spawnId, TC_LOG_ERROR, RespawnInfo::type, SpawnMetadata::TypeHasData(), and UI64FMTD.
Referenced by SaveRespawnTime().
| void Map::AddToActive | ( | WorldObject * | obj | ) |
Definition at line 2772 of file Map.cpp.
References Trinity::ComputeGridCoord(), BaseEntity::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), GameObject::GetSpawnId(), BaseEntity::GetTypeId(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::incUnloadActiveLock(), m_activeNonPlayers, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), ObjectGuid::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by AddToMap(), ObjectGridLoaderBase::AddToMap(), and WorldObject::setActive().
Definition at line 196 of file Map.cpp.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddGridObject(), Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::isGridObjectDataLoaded(), and WorldObject::IsStoredInWorldObjectGridContainer().
|
private |
Definition at line 175 of file Map.cpp.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddGridObject(), Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridType(), getNGrid(), Cell::GridX(), and Cell::GridY().
Referenced by AddPlayerToMap(), AddToMap(), ObjectGridLoaderBase::AddToMap(), MapObjectCellRelocation(), and PlayerRelocation().
| bool Map::AddToMap | ( | T * | obj | ) |
Definition at line 527 of file Map.cpp.
References AddToActive(), AddToGrid(), ASSERT, Trinity::ComputeCellCoord(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), Cell::GridX(), Cell::GridY(), InitializeObject(), IsAlwaysActive(), CoordPair< LIMIT >::IsCoordValid(), TC_LOG_DEBUG, TC_LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by BuildingSpawnHelper(), Player::BuildPlayerRepop(), Garrison::CancelBuildingConstruction(), ConvertCorpseToBones(), GameObject::Create(), ArenaScript::CreateCreature(), Garrison::Plot::CreateGameObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), ArenaScript::CreateObject(), TransportMgr::CreateTransport(), Spell::EffectCreateTamedPet(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTameCreature(), Spell::EffectTransmitted(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Pet::LoadPetFromDB(), Garrison::PlaceBuilding(), GameObject::Refresh(), ScriptsProcess(), Battlefield::SpawnCreature(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), Battlefield::SpawnGameObject(), battleground_temple_of_kotmogu::SpawnOrb(), SummonCreature(), WorldObject::SummonGameObject(), Transport::SummonPassenger(), Player::SummonPet(), GameObject::Update(), and npc_bg_seething_shore_air_supplies_drop::WaypointPathEnded().
| bool Map::AddToMap | ( | Transport * | obj | ) |
Definition at line 577 of file Map.cpp.
References _transports, GameObject::AddToWorld(), RefManager< ReferenceType >::begin(), BaseEntity::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), Trinity::ComputeCellCoord(), RefManager< ReferenceType >::end(), Transport::GetExpectedMapId(), BaseEntity::GetGUID(), GetId(), GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), WorldObject::InSamePhase(), CoordPair< LIMIT >::IsCoordValid(), BaseEntity::IsInWorld(), TC_LOG_ERROR, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 577 of file Map.h.
Referenced by WorldObject::AddToObjectUpdate().
| void Map::AddWorldObject | ( | WorldObject * | obj | ) |
Definition at line 2762 of file Map.cpp.
References i_worldObjects.
Referenced by WorldObject::SetMap(), and SwitchGridContainers().
| void Map::ApplyDynamicModeRespawnScaling | ( | WorldObject const * | obj, |
| ObjectGuid::LowType | spawnId, | ||
| uint32 & | respawnDelay, | ||
| uint32 | mode | ||
| ) | const |
Definition at line 2287 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(), BaseEntity::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().
|
private |
Definition at line 1517 of file Map.cpp.
References MapObjectCellRelocation().
Referenced by MoveAllAreaTriggersInMoveList().
| void Map::AreaTriggerRelocation | ( | AreaTrigger * | at, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation | ||
| ) |
Definition at line 1149 of file Map.cpp.
References AddAreaTriggerToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), BaseEntity::GetGUID(), getNGrid(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveAreaTriggerFromMoveList(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldObject::UpdateObjectVisibility(), and AreaTrigger::UpdateShape().
Referenced by TransportBase::UpdatePassengerPosition(), and AreaTrigger::UpdatePositionAndRotation().
|
inline |
Definition at line 502 of file Map.h.
Referenced by EnsureGridLoaded(), and MultiPersonalPhaseTracker::LoadGrid().
|
inlineprivate |
Definition at line 635 of file Map.h.
References NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::link().
Referenced by EnsureGridCreated().
|
inlinevirtual |
Reimplemented in InstanceMap, and BattlegroundMap.
Definition at line 359 of file Map.h.
References TRANSFER_ABORT_NONE.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), WorldSession::HandleMoveWorldportAck(), and Player::LoadFromDB().
|
static |
Definition at line 1014 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), Cell::GridX(), Cell::GridY(), and TC_LOG_DEBUG.
Referenced by AreaTriggerRelocation(), CreatureRelocation(), DynamicObjectRelocation(), and GameObjectRelocation().
|
private |
Definition at line 1999 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, UI64FMTD, urand(), and WEEK.
Referenced by ProcessRespawns().
|
inline |
| Corpse * Map::ConvertCorpseToBones | ( | ObjectGuid const & | ownerGuid, |
| bool | insignia = false |
||
| ) |
Definition at line 3883 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::GetClass(), GetCorpseByPlayer(), Corpse::GetCorpseDynamicFlags(), Corpse::GetCorpseFlags(), ObjectGuid::GetCounter(), Corpse::GetCustomizations(), Corpse::GetDisplayId(), Corpse::GetFactionTemplate(), BaseEntity::GetGUID(), Corpse::GetGuildGUID(), Position::GetOrientation(), Corpse::GetOwnerGUID(), Corpse::GetPartyGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Corpse::GetRace(), Corpse::GetSex(), PhasingHandler::InheritPhaseShift(), IsBattlegroundOrArena(), IsRemovalGrid(), Position::Relocate(), RemoveCorpse(), Corpse::ReplaceAllCorpseDynamicFlags(), Corpse::ReplaceAllCorpseFlags(), Corpse::SetClass(), Corpse::SetCustomizations(), Corpse::SetDisplayId(), Corpse::SetFactionTemplate(), Corpse::SetGuildGUID(), Corpse::SetOwnerGUID(), Corpse::SetPartyGUID(), Corpse::SetRace(), Corpse::SetSex(), WorldObject::SetZoneScript(), sWorld, and WorldObject::UpdatePositionData().
Referenced by AddPlayerToMap(), Player::RemovedInsignia(), and RemoveOldCorpses().
Definition at line 1502 of file Map.cpp.
References MapObjectCellRelocation().
Referenced by CreatureRespawnRelocation(), and MoveAllCreaturesInMoveList().
| void Map::CreatureRelocation | ( | Creature * | creature, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| bool | respawnRelocationOnFail = true |
||
| ) |
Definition at line 1058 of file Map.cpp.
References AddCreatureToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), BaseEntity::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(), TransportBase::UpdatePassengerPosition(), and Unit::UpdatePosition().
| bool Map::CreatureRespawnRelocation | ( | Creature * | c, |
| bool | diffGridOnly | ||
| ) |
Definition at line 1522 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), MotionMaster::Clear(), Unit::CombatStop(), CreatureCellRelocation(), Cell::DiffGrid(), MapObject::GetCurrentCell(), BaseEntity::GetGUID(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), 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 |
Definition at line 2560 of file Map.cpp.
References _farSpellCallbacks, ASSERT, RefManager< GridReference< OBJECT > >::end(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridState(), IsBattlegroundOrArena(), MAX_GRID_STATE, RemoveAllObjectsInRemoveList(), si_GridStates, and GridState::Update().
| void Map::DeleteCorpseData | ( | ) |
Definition at line 3841 of file Map.cpp.
References CHAR_DEL_CORPSES_FROM_MAP, CharacterDatabase, GetId(), GetInstanceId(), and PreparedStatementBase::setUInt32().
| void Map::DeleteFromWorld | ( | Player * | player | ) |
Definition at line 271 of file Map.cpp.
References ObjectAccessor::RemoveObject(), and RemoveUpdateObject().
|
private |
Definition at line 264 of file Map.cpp.
Referenced by RemoveFromMap(), RemoveFromMap(), and RemovePlayerFromMap().
|
private |
Definition at line 2172 of file Map.cpp.
References _respawnTimes, ASSERT, DeleteRespawnInfoFromDB(), GetId(), GetRespawnMapForType(), RespawnInfo::spawnId, RespawnInfo::type, and UI64FMTD.
Referenced by AddRespawnInfo().
|
private |
Definition at line 2197 of file Map.cpp.
References CHAR_DEL_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), Instanceable(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by DeleteRespawnInfo().
|
inline |
Definition at line 537 of file Map.h.
Referenced by instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress().
| void Map::DeleteRespawnTimesInDB | ( | ) |
Definition at line 3730 of file Map.cpp.
References CHAR_DEL_ALL_RESPAWNS, CharacterDatabase, GetId(), GetInstanceId(), Instanceable(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
|
static |
Definition at line 130 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 2079 of file Map.cpp.
References AddObjectToRemoveList(), GetCreatureBySpawnIdStore(), GetGameObjectBySpawnIdStore(), Trinity::Containers::MapEqualRange(), SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by SpawnGroupDespawn().
|
inline |
Definition at line 411 of file Map.h.
Referenced by InstanceScript::DoCastSpellOnPlayers(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), InstanceScript::DoSendNotifyToInstance(), InstanceScript::DoUpdateCriteria(), arena_hook_point::HandleReactionCheer(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), arena_cage_of_carnage::OnStart(), arena_empyrean_domain::OnStart(), arena_enigma_crucible::OnStart(), battleground_strand_of_the_ancients::ResetObjs(), InstanceScript::SetBossState(), InstanceMap::SetInstanceScenario(), battleground_seething_shore::SpawnAzeriteNodes(), InstanceScript::TriggerGameEvent(), and InstanceScript::UpdatePhasing().
|
private |
Definition at line 2210 of file Map.cpp.
References ABORT_MSG, GetId(), IsGridLoaded(), Creature::LoadFromDB(), GameObject::LoadFromDB(), SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, and UI64FMTD.
Referenced by ProcessRespawns().
|
private |
Definition at line 1512 of file Map.cpp.
References MapObjectCellRelocation().
Referenced by MoveAllDynamicObjectsInMoveList().
| void Map::DynamicObjectRelocation | ( | DynamicObject * | go, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation | ||
| ) |
Definition at line 1119 of file Map.cpp.
References AddDynamicObjectToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), BaseEntity::GetGUID(), getNGrid(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveDynamicObjectFromMoveList(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by TransportBase::UpdatePassengerPosition().
|
private |
Definition at line 280 of file Map.cpp.
References buildNGridLinkage(), CONFIG_GRID_UNLOAD, CoordPair< LIMIT >::GetId(), GetId(), GetInstanceId(), getNGrid(), GRID_STATE_IDLE, i_gridExpiry, i_InstanceId, m_terrain, MAX_NUMBER_OF_GRIDS, NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::SetGridState(), setNGrid(), sWorld, TC_LOG_DEBUG, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by AddToMap(), EnsureGridLoaded(), and MapObjectCellRelocation().
|
private |
Definition at line 323 of file Map.cpp.
References ASSERT, Balance(), EnsureGridCreated(), GetId(), getNGrid(), i_InstanceId, NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::isGridObjectDataLoaded(), LoadGridObjects(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::setGridObjectDataLoaded(), TC_LOG_DEBUG, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by EnsureGridLoadedForActiveObject(), GridMarkNoUnload(), LoadAllGrids(), LoadGrid(), LoadGridsInRange(), and MapObjectCellRelocation().
|
private |
Definition at line 304 of file Map.cpp.
References ASSERT, EnsureGridLoaded(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridState(), BaseEntity::GetGUID(), GetId(), GetMultiPersonalPhaseTracker(), getNGrid(), WorldObject::GetPhaseShift(), GRID_STATE_ACTIVE, BaseEntity::IsPlayer(), MultiPersonalPhaseTracker::LoadGrid(), ResetGridExpiry(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::SetGridState(), TC_LOG_DEBUG, ObjectGuid::ToString(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by AddPlayerToMap(), AddToMap(), LoadGridForActiveObject(), MapObjectCellRelocation(), and PlayerRelocation().
|
private |
Definition at line 1507 of file Map.cpp.
References MapObjectCellRelocation().
Referenced by GameObjectRespawnRelocation(), and MoveAllGameObjectsInMoveList().
| void Map::GameObjectRelocation | ( | GameObject * | go, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| bool | respawnRelocationOnFail = true |
||
| ) |
Definition at line 1090 of file Map.cpp.
References AddGameObjectToMoveList(), GameObject::AfterRelocation(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), BaseEntity::GetGUID(), getNGrid(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveGameObjectFromMoveList(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by GameObjectType::Transport::Update(), TransportBase::UpdatePassengerPosition(), and Unit::UpdatePosition().
| bool Map::GameObjectRespawnRelocation | ( | GameObject * | go, |
| bool | diffGridOnly | ||
| ) |
Definition at line 1552 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), Cell::DiffGrid(), GameObjectCellRelocation(), MapObject::GetCurrentCell(), BaseEntity::GetGUID(), Position::GetPositionX(), Position::GetPositionY(), 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 564 of file Map.h.
References Map.
Referenced by AreaTrigger::Create(), GameObject::Create(), Vignettes::Create(), Pet::CreateBaseAtTamed(), Conversation::CreateConversation(), Creature::CreateCreature(), AreaTrigger::CreateNewMovementForceId(), SceneObject::CreateSceneObject(), TransportMgr::CreateTransport(), Spell::EffectAddFarsight(), Spell::EffectPersistentAA(), Creature::LoadFromDB(), Pet::LoadPetFromDB(), Spell::Spell(), Transport::SummonPassenger(), and Player::SummonPet().
|
inline |
Definition at line 587 of file Map.h.
Referenced by debug_commandscript::HandleDebugObjectCountMap().
| uint32 Map::GetAreaId | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 1710 of file Map.cpp.
References _dynamicTree, GetId(), and m_terrain.
|
inline |
Definition at line 319 of file Map.h.
References GetAreaId(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by GetAreaId().
| AreaTrigger * Map::GetAreaTrigger | ( | ObjectGuid const & | guid | ) |
Definition at line 3553 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetAreaTrigger(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap(), battleground_twin_peaks::HandleFlagRoomCapturePoint(), battleground_warsong_gulch::HandleFlagRoomCapturePoint(), and arena_empyrean_domain::OnStart().
| AreaTrigger * Map::GetAreaTriggerBySpawnId | ( | ObjectGuid::LowType | spawnId | ) | const |
Definition at line 3635 of file Map.cpp.
References GetAreaTriggerBySpawnIdStore().
|
inline |
Definition at line 474 of file Map.h.
Referenced by AreaTrigger::AddToWorld(), and GetAreaTriggerBySpawnId().
|
inline |
| Conversation * Map::GetConversation | ( | ObjectGuid const & | guid | ) |
Definition at line 3563 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetConversation(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap().
| Corpse * Map::GetCorpse | ( | ObjectGuid const & | guid | ) |
Definition at line 3573 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetCorpse(), and ScriptsProcess().
|
inline |
Definition at line 486 of file Map.h.
Referenced by ConvertCorpseToBones(), and Player::GetCorpse().
Definition at line 477 of file Map.h.
Referenced by ObjectGridLoader::LoadN().
| Creature * Map::GetCreature | ( | ObjectGuid const & | guid | ) |
Definition at line 3578 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by instance_naxxramas::instance_naxxramas_InstanceMapScript::CheckAchievementCriteriaMeet(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), Garrison::Plot::DeleteGameObject(), InstanceScript::DoCastSpellOnPlayer(), WorldSession::DoLootRelease(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectDestroyAllTotems(), battleground_alterac_valley::FindHerald(), battleground_strand_of_the_ancients::FindKanrethad(), instance_oculus::instance_oculus_InstanceMapScript::FreeDragons(), Battlefield::GetCreature(), InstanceScript::GetCreature(), ObjectAccessor::GetCreature(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap(), instance_oculus::instance_oculus_InstanceMapScript::GreaterWhelps(), battleground_seething_shore::HandleAssaultPoint(), WorldSession::HandleAutostoreLootItemOpcode(), battleground_isle_of_conquest::HandleCapturedNodes(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::HandleCavernEventTrigger(), arena_cage_of_carnage::HandleKill(), arena_enigma_crucible::HandleKill(), arena_hook_point::HandleKill(), arena_mugambala::HandleKill(), arena_nokhudon_proving_grounds::HandleKill(), arena_cage_of_carnage::HandleReactionLowHealth(), arena_enigma_crucible::HandleReactionLowHealth(), arena_mugambala::HandleReactionLowHealth(), arena_nokhudon_proving_grounds::HandleReactionLowHealth(), arena_blades_edge_legion::HandleReactionTriggerLowHealth(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::InitiateArthasEvent(), TempSummon::InitStats(), Unit::isAttackingPlayer(), TempSummon::IsSharingTotemSlotWith(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::IsWaveAllDead(), Player::KilledMonsterCredit(), instance_stonecore::instance_stonecore_InstanceScript::MillhouseEvent_Despawn(), instance_stonecore::instance_stonecore_InstanceScript::MillhouseEvent_Face(), instance_stonecore::instance_stonecore_InstanceScript::MillhouseEvent_Knockback(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::MissingPlagueCrates(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::MoveNPCIfAlive(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate(), battleground_temple_of_kotmogu::OnFlagDropped(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), battleground_isle_of_conquest::OnPlayerAssaultNode(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), arena_hook_point::OnPrepareStage1(), arena_cage_of_carnage::OnPrepareStage2(), arena_enigma_crucible::OnPrepareStage2(), arena_mugambala::OnPrepareStage2(), arena_nokhudon_proving_grounds::OnPrepareStage2(), battleground_seething_shore::OnPrepareStage2(), spell_malygos_destroy_platform_channel::OnRemove(), arena_blades_edge_legion::OnStart(), arena_cage_of_carnage::OnStart(), arena_dalaran_sewers::OnStart(), arena_empyrean_domain::OnStart(), arena_enigma_crucible::OnStart(), arena_hook_point::OnStart(), arena_maldraxxus_coliseum::OnStart(), arena_mugambala::OnStart(), arena_nokhudon_proving_grounds::OnStart(), arena_the_robodrome::OnStart(), 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(), battleground_alterac_valley::OnUpdate(), arena_dalaran_sewers::OnUpdate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::PowerSparksHandling(), instance_blackrock_spire::instance_blackrock_spireMapScript::ProcessEvent(), instance_uldaman::instance_uldaman_InstanceMapScript::ProcessEvent(), instance_zulaman::instance_zulaman_InstanceScript::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(), battleground_arathi_basin::ProcessEvent(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), ScriptsProcess(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SendAddsUpStairs(), 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_stratholme::instance_stratholme_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_baradin_hold::instance_baradin_hold_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(), battleground_seething_shore::SpawnAzeriteNodes(), battleground_seething_shore::SpawnBuffs(), battleground_temple_of_kotmogu::SpawnHealingBuff(), 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_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(), Update(), Player::UpdateTriggerVisibility(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
| Creature * Map::GetCreatureBySpawnId | ( | ObjectGuid::LowType | spawnId | ) | const |
Definition at line 3607 of file Map.cpp.
References GetCreatureBySpawnIdStore().
Referenced by npc_living_mojo::JustEngagedWith().
|
inline |
Definition at line 466 of file Map.h.
Referenced by FormationMgr::AddCreatureToGroup(), Creature::AddToWorld(), DespawnAll(), SmartScript::FindCreatureNear(), GetCreatureBySpawnId(), ChatHandler::GetCreatureFromPlayerMapByDbGuid(), list_commandscript::HandleListCreatureCommand(), Creature::LoadFromDB(), ConversationActorFillVisitor::operator()(), and GameEventMgr::UpdateEventNPCFlags().
|
inline |
|
inline |
Definition at line 529 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 4121 of file Map.cpp.
References AsUnderlyingType(), GetDifficultyID(), GetId(), GetInstanceId(), and HavePlayers().
Referenced by InstanceMap::GetDebugInfo().
|
inline |
Definition at line 363 of file Map.h.
Referenced by AuraEffect::CalculateAmount(), InstanceMap::CannotEnter(), Player::CanRollNeedForItem(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), WorldObject::CastSpell(), GameObject::Create(), Garrison::Plot::CreateGameObject(), ScenarioMgr::CreateInstanceScenario(), ScenarioMgr::CreateInstanceScenarioForTeam(), UnitAI::DoCast(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), SmartScript::FillScript(), spell_malygos_arcane_storm::FilterTargets(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), InstanceScript::GetBossDungeonEncounter(), Spell::GetCastDifficulty(), GetDebugInfo(), InstanceScriptDataReader::GetDifficultyId(), InstanceScriptDataReader::GetDifficultyName(), GetMapDifficulty(), ConditionMgr::GetPlayerConditionLfgValue(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelChanneling(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandleCreatureQuery(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePetAction(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), WorldSession::HandleSelfResOpcode(), Unit::HandleSpellClick(), WorldSession::HandleUpdateAreaTriggerVisual(), WorldSession::HandleUpdateAuraVisual(), WorldSession::HandleUseItemOpcode(), SpellHistory::HasCooldown(), CharmInfo::InitCharmCreateSpells(), CombatAI::InitializeAI(), CasterAI::InitializeAI(), CharmInfo::InitPossessCreateSpells(), Player::inRandomLfgDungeon(), Unit::IsImmunedToAuraPeriodicTick(), Unit::IsImmunedToDamage(), Unit::IsImmunedToSpell(), npc_living_inferno::IsSummonedBy(), IsVampire(), boss_freya::boss_freyaAI::JustDied(), CombatAI::JustDied(), CasterAI::JustEngagedWith(), CombatAI::JustEngagedWith(), boss_anduin_wrynn::JustSummoned(), InstanceScript::Load(), PersonalPhaseGridLoader::Load(), Creature::LoadCreaturesAddon(), MultiPersonalPhaseTracker::LoadGrid(), ObjectGridLoader::LoadN(), CharmInfo::LoadPetActionBar(), Pet::LoadPetFromDB(), SpellHistory::LockSpellSchool(), Condition::Meets(), CriteriaHandler::ModifierSatisfied(), SpellHistory::ModifyCooldown(), npc_hearthglen_crusader::npc_hearthglen_crusader(), at_anduin_wrynn_befouled_barrier::OnInitialize(), lfg::LFGPlayerScript::OnMapChanged(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), at_malacrass_hex_sphere::OnUnitEnter(), item_only_for_flight::OnUse(), InstanceMap::Reset(), Player::RewardQuest(), Player::RewardReputation(), ScriptedAI::SelectSpell(), SpellHistory::SendCooldownEvent(), Player::SendInitialPacketsBeforeAddToMap(), InstanceScript::SetBossState(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData(), SpawnGroupSpawn(), UnitFitToActionRequirement(), CombatAI::UpdateAI(), CasterAI::UpdateAI(), TotemAI::UpdateAI(), PetAI::UpdateAI(), and PlayerAI::VerifySpellCast().
| DynamicObject * Map::GetDynamicObject | ( | ObjectGuid const & | guid | ) |
Definition at line 3583 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetDynamicObject().
| bool Map::GetEntrancePos | ( | int32 & | mapid, |
| float & | x, | ||
| float & | y | ||
| ) |
Definition at line 3425 of file Map.cpp.
References MapEntry::GetEntrancePos(), and i_mapEntry.
|
inline |
Definition at line 233 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), Player::CheckInstanceValidity(), InstanceMap::CreateInstanceData(), InstanceMap::CreateInstanceLockForPlayer(), ForEachMapScript(), InstanceMap::GetMaxPlayers(), Unit::GetMountCapability(), Player::IsLockedToDungeonEncounter(), CriteriaHandler::ModifierSatisfied(), InstanceMap::Reset(), Player::TeleportTo(), InstanceMap::Update(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), and Player::UpdateItemLevelAreaBasedScaling().
|
inline |
Definition at line 311 of file Map.h.
Referenced by PathGenerator::UpdateFilter().
|
inline |
Definition at line 307 of file Map.h.
Referenced by PathGenerator::UpdateFilter().
| void Map::GetFullTerrainStatusForPosition | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| PositionFullTerrainStatus & | data, | ||
| Optional< map_liquidHeaderTypeFlags > | reqLiquidType = {}, |
||
| float | collisionHeight = 2.03128f |
||
| ) |
Definition at line 1698 of file Map.cpp.
References _dynamicTree, GetId(), and m_terrain.
Referenced by Creature::Create(), and WorldObject::UpdatePositionData().
| GameObject * Map::GetGameObject | ( | ObjectGuid const & | guid | ) |
Definition at line 3588 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by battleground_arathi_basin::_CalculateTeamNodes(), battleground_battle_for_gilneas::CalculateTeamNodes(), battleground_deephaul_ravine::CanCaptureFlag(), battleground_eye_of_the_storm::CanCaptureFlag(), Player::CheckDuelDistance(), Spell::CheckEffectTarget(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckLichKingAvailability(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureStore(), Garrison::Plot::DeleteGameObject(), hyjalAI::DeSpawnVeins(), InstanceScript::DoCloseDoorOrButton(), battleground_eye_of_the_storm::DoForFlagKeepers(), battleground_twin_peaks::DoForFlagKeepers(), battleground_warsong_gulch::DoForFlagKeepers(), WorldSession::DoLootRelease(), InstanceScript::DoRespawnGameObject(), InstanceScript::DoUseDoorOrButton(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore(), Player::DuelComplete(), Spell::EffectSummonObject(), OPvPCapturePointNA::FactionTakeOver(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::FloorEruption(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::GetEntityFromMap(), battleground_twin_peaks::GetFlagCarrierGUID(), battleground_warsong_gulch::GetFlagCarrierGUID(), battleground_twin_peaks::GetFlagState(), battleground_warsong_gulch::GetFlagState(), Battlefield::GetGameObject(), InstanceScript::GetGameObject(), ObjectAccessor::GetGameObject(), GetTransport(), WorldSession::HandleAutostoreLootItemOpcode(), AuraEffect::HandleBattlegroundPlayerPosition(), OutdoorPvPTF::HandleCapture(), InstanceScript::HandleGameObject(), OutdoorPvPHP::HandleKillImpl(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveTeleportAck(), HPControlZoneHandler::HandleNeutralEvent(), HPControlZoneHandler::HandleProgressEventAlliance(), HPControlZoneHandler::HandleProgressEventHorde(), spell_alexstrasza_bunny_destroy_platform_event::HandleSendEvent(), instance_halls_of_origination::instance_halls_of_origination_InstanceMapScript::IncreaseDeadElementals(), battleground_strand_of_the_ancients::MakeObjectsInteractable(), battleground_deephaul_ravine::OnCaptureFlag(), battleground_eye_of_the_storm::OnCaptureFlag(), battleground_twin_peaks::OnCaptureFlag(), battleground_warsong_gulch::OnCaptureFlag(), battleground_isle_of_conquest::OnGateDestroyed(), arena_hook_point::OnPrepareStage1(), battleground_temple_of_kotmogu::OnPrepareStage3(), spell_alexstrasza_gift_beam_visual::OnRemove(), battleground_alterac_valley::OnStart(), arena_ashamanes_fall::OnStart(), battleground_battle_for_gilneas::OnStart(), arena_black_rook_hold_arena::OnStart(), arena_blades_edge::OnStart(), arena_blades_edge_legion::OnStart(), arena_cage_of_carnage::OnStart(), arena_dalaran_sewers::OnStart(), battleground_deephaul_ravine::OnStart(), arena_empyrean_domain::OnStart(), arena_enigma_crucible::OnStart(), battleground_eye_of_the_storm::OnStart(), arena_hook_point::OnStart(), battleground_isle_of_conquest::OnStart(), arena_maldraxxus_coliseum::OnStart(), arena_mugambala::OnStart(), arena_nagrand::OnStart(), arena_nagrand_arena_legion::OnStart(), arena_nokhudon_proving_grounds::OnStart(), arena_ring_of_valor::OnStart(), arena_ruins_of_lordaeron::OnStart(), battleground_seething_shore::OnStart(), battleground_silvershard_mines::OnStart(), battleground_temple_of_kotmogu::OnStart(), arena_the_robodrome::OnStart(), arena_tigers_peak::OnStart(), arena_tol_viron_arena::OnStart(), battleground_twin_peaks::OnStart(), battleground_warsong_gulch::OnStart(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnUnitDeath(), arena_dalaran_sewers::OnUpdate(), arena_ring_of_valor::OnUpdate(), 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(), battleground_arathi_basin::ProcessEvent(), battleground_strand_of_the_ancients::ProcessEvent(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), battleground_strand_of_the_ancients::ResetObjs(), ScriptsProcess(), Player::SendQuestGiverStatusMultiple(), battleground_strand_of_the_ancients::SendTransportInit(), InstanceScript::SetBossState(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), instance_sanctum_of_domination::instance_sanctum_of_domination_InstanceMapScript::SetBossState(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::SetBossState(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::SetBossState(), instance_firelands::instance_firelands_InstanceScript::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_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(), battleground_strand_of_the_ancients::StartShips(), battleground_strand_of_the_ancients::TeleportToEntrancePosition(), arena_ring_of_valor::TogglePillarCollision(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_ulduar::instance_ulduar_InstanceMapScript::Update(), OPvPCapturePointNA::Update(), OutdoorPvPTF::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 3621 of file Map.cpp.
References GetGameObjectBySpawnIdStore().
|
inline |
Definition at line 470 of file Map.h.
Referenced by _FindGameObject(), GameObject::AddToWorld(), DespawnAll(), SmartScript::FindGameObjectNear(), GetGameObjectBySpawnId(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), list_commandscript::HandleListObjectCommand(), and boss_heigan::JustEngagedWith().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 530 of file Map.h.
References SPAWN_TYPE_GAMEOBJECT.
Referenced by Transport::CreateGOPassenger(), GetLinkedRespawnTime(), and GameObject::LoadFromDB().
| float Map::GetGridHeight | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 1730 of file Map.cpp.
References GetId(), and m_terrain.
Referenced by WorldObject::MovePositionToFirstCollision().
|
private |
|
inline |
Definition at line 329 of file Map.h.
Referenced by WorldObject::GetMapHeight(), spell_garothi_cannon_chooser::HandleDummyEffect(), 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_stalactite_mod_dest_height::spell_stalactite_mod_dest_height_SpellScript::ModDestHeight(), spell_skyguard_flare::ModDestHeight(), WorldObject::MovePosition(), and npc_kinetic_bomb::Reset().
|
inline |
Definition at line 330 of file Map.h.
References GetHeight(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by GetHeight().
| uint32 Map::GetId | ( | ) | const |
Definition at line 3288 of file Map.cpp.
References i_mapEntry, and MapEntry::ID.
Referenced by Battleground::_ProcessJoin(), AddObjectToRemoveList(), AddObjectToSwitchList(), AddToMap(), spell_kargath_executioner::AreaCheck(), Battlefield::Battlefield(), MapUpdateRequest::call(), InstanceMap::CannotEnter(), Player::CanRollNeedForItem(), InstanceScript::CheckAchievementCriteriaMeet(), CheckRespawn(), Corpse::Create(), Pet::Create(), GameObject::Create(), BattlefieldMgr::CreateBattlefieldsForMap(), ArenaScript::CreateCreature(), InstanceMap::CreateInstanceData(), ScenarioMgr::CreateInstanceScenario(), ScenarioMgr::CreateInstanceScenarioForTeam(), MapManager::CreateMap(), AreaTrigger::CreateNewMovementForceId(), ArenaScript::CreateObject(), OutdoorPvPMgr::CreateOutdoorPvPForMap(), TransportMgr::CreateTransport(), TransportMgr::CreateTransportsForMap(), DeleteCorpseData(), DeleteRespawnInfo(), DeleteRespawnInfoFromDB(), DeleteRespawnTimesInDB(), DoRespawn(), EnsureGridCreated(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GetAreaId(), GetDebugInfo(), GetFullTerrainStatusForPosition(), GetGridHeight(), WorldStateMgr::GetInitialWorldStatesForMap(), GetLiquidStatus(), GetMapDifficulty(), InstanceScriptDataReader::GetMapId(), GetMinHeight(), GetSpawnGroupData(), GetStaticHeight(), WorldStateMgr::GetValue(), GetWaterLevel(), GetWaterOrGroundLevel(), GetZoneAndAreaId(), GetZoneId(), spell_freezing_circle::HandleDamage(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugInstanceSpawns(), debug_commandscript::HandleDebugLoadCellsCommandHelper(), debug_commandscript::HandleDebugObjectCountMap(), gobject_commandscript::HandleGameObjectAddCommand(), group_commandscript::HandleGroupSummonCommand(), list_commandscript::HandleListSpawnPointsCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcAddCommand(), misc_commandscript::HandleSummonCommand(), BattlegroundMap::InitScriptData(), InitSpawnGroupState(), Player::inRandomLfgDungeon(), isInLineOfSight(), IsInWater(), IsSpawnGroupActive(), IsUnderWater(), PersonalPhaseGridLoader::Load(), LoadCorpseData(), Player::LoadFromDB(), MultiPersonalPhaseTracker::LoadGrid(), InstanceScenario::LoadInstanceData(), GarrisonGridLoader::LoadN(), ObjectGridLoader::LoadN(), LoadRespawnTimes(), Map(), Condition::Meets(), lfg::LFGPlayerScript::OnMapChanged(), RemoveAllPlayers(), FormationMgr::RemoveCreatureFromGroup(), RemoveFromMap(), RequestRebuildNavMeshOnGameObjectModelChange(), InstanceMap::Reset(), Player::ResetInstances(), Group::ResetInstances(), Player::RewardReputation(), SaveRespawnInfoDB(), SaveRespawnTime(), SendInitTransports(), LootRoll::SendStartRoll(), Battleground::SetBgMap(), InstanceScript::SetBossState(), WorldObject::SetMap(), SetSpawnGroupActive(), WorldStateMgr::SetValue(), SpawnGroupDespawn(), SpawnGroupSpawn(), SummonCreatureGroup(), UnloadGrid(), ActiveState::Update(), IdleState::Update(), RemovalState::Update(), Update(), UpdateSpawnGroupConditions(), and ~Map().
|
inline |
Definition at line 861 of file Map.h.
Referenced by Player::SendInitialPacketsAfterAddToMap(), and Player::UpdateZone().
|
inline |
Definition at line 353 of file Map.h.
Referenced by AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), Player::ConfirmPendingBind(), BattlefieldMgr::CreateBattlefieldsForMap(), InstanceMap::CreateInstanceLockForPlayer(), MapManager::CreateMap(), DeleteCorpseData(), DeleteRespawnInfoFromDB(), DeleteRespawnTimesInDB(), MapManager::DestroyMap(), EnsureGridCreated(), GetDebugInfo(), InstanceScriptDataReader::GetInstanceId(), InstanceScenario::GetOwnerInfo(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugObjectCountMap(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), LoadCorpseData(), MultiPersonalPhaseTracker::LoadGrid(), LoadRespawnTimes(), Map(), CriteriaHandler::ModifierSatisfied(), SplitByFactionMapScript::OnCreate(), FormationMgr::RemoveCreatureFromGroup(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::Reset(), SaveRespawnInfoDB(), InstanceScript::SetBossState(), WorldObject::SetMap(), Update(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), and ~Map().
| time_t Map::GetLinkedRespawnTime | ( | ObjectGuid | guid | ) | const |
Definition at line 3741 of file Map.cpp.
References Creature, GameObject, ObjectGuid::GetCounter(), GetCreatureRespawnTime(), GetGORespawnTime(), ObjectGuid::GetHigh(), and sObjectMgr.
Referenced by CheckRespawn(), GameObject::Update(), and Creature::Update().
| ZLiquidStatus Map::GetLiquidStatus | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| Optional< map_liquidHeaderTypeFlags > | ReqLiquidType = {}, |
||
| LiquidData * | data = nullptr, |
||
| float | collisionHeight = 2.03128f |
||
| ) |
Definition at line 1704 of file Map.cpp.
References GetId(), and m_terrain.
Referenced by PathGenerator::BuildPolyPath(), Unit::GetMountCapability(), PathGenerator::GetNavTerrain(), misc_commandscript::HandleGPSCommand(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectSpellTargets(), and spell_spawn_blood_pool::SetDest().
| MapDifficultyEntry const * Map::GetMapDifficulty | ( | ) | const |
Definition at line 3283 of file Map.cpp.
References GetDifficultyID(), GetId(), and sDB2Manager.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CreateInstanceData(), InstanceMap::CreateInstanceLockForPlayer(), MapManager::DestroyMap(), InstanceScript::GetEntranceLocationForCompletedEncounters(), InstanceMap::GetMaxPlayers(), Player::IsLockedToDungeonEncounter(), Unit::Kill(), InstanceMap::Update(), InstanceScript::UpdateAdditionalSaveData(), InstanceScript::UpdateBossStateSaveData(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), and GameObject::Use().
| char const * Map::GetMapName | ( | ) | const |
Definition at line 1854 of file Map.cpp.
References i_mapEntry, MapEntry::MapName, and sWorld.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), InstanceScriptDataReader::GetMapName(), debug_commandscript::HandleDebugGuidLimitsMap(), debug_commandscript::HandleDebugInstanceSpawns(), debug_commandscript::HandleDebugObjectCountMap(), list_commandscript::HandleListSpawnPointsCommand(), WorldSession::HandleMoveWorldportAck(), LogCommandUsage(), InstanceMap::RemovePlayerFromMap(), and BattlegroundMap::RemovePlayerFromMap().
|
inline |
Definition at line 571 of file Map.h.
References Map.
Referenced by debug_commandscript::HandleDebugGuidLimitsMap().
| float Map::GetMinHeight | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 1725 of file Map.cpp.
References GetId(), and m_terrain.
Referenced by misc_commandscript::HandleGPSCommand(), and WorldSession::HandleMovementOpcode().
|
inline |
Definition at line 838 of file Map.h.
Referenced by EnsureGridLoadedForActiveObject(), RemoveFromMap(), RemovePlayerFromMap(), UnloadGrid(), Update(), and UpdatePersonalPhasesForPlayer().
Definition at line 637 of file Map.h.
References ASSERT, and MAX_NUMBER_OF_GRIDS.
Referenced by AddToActive(), AddToGrid(), AddToGrid(), AreaTriggerRelocation(), CreatureRelocation(), DynamicObjectRelocation(), EnsureGridCreated(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GameObjectRelocation(), GridMarkNoUnload(), GridUnmarkNoUnload(), IsGridLoaded(), RemoveFromActive(), SwitchGridContainers(), UpdatePersonalPhasesForPlayer(), and Visit().
| bool Map::getObjectHitPos | ( | PhaseShift const & | phaseShift, |
| float | x1, | ||
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| float & | rx, | ||
| float & | ry, | ||
| float & | rz, | ||
| float | modifyDist | ||
| ) |
Definition at line 1771 of file Map.cpp.
References _dynamicTree, and DynamicMapTree::getObjectHitPos().
Referenced by WorldObject::MovePositionToFirstCollision().
|
inline |
Definition at line 463 of file Map.h.
Referenced by AreaTrigger::AddToWorld(), Conversation::AddToWorld(), Corpse::AddToWorld(), Creature::AddToWorld(), DynamicObject::AddToWorld(), GameObject::AddToWorld(), Pet::AddToWorld(), SceneObject::AddToWorld(), debug_commandscript::HandleDebugLoadCellsCommandHelper(), debug_commandscript::HandleDebugObjectCountMap(), AreaTrigger::RemoveFromWorld(), Conversation::RemoveFromWorld(), Corpse::RemoveFromWorld(), Creature::RemoveFromWorld(), DynamicObject::RemoveFromWorld(), GameObject::RemoveFromWorld(), Pet::RemoveFromWorld(), SceneObject::RemoveFromWorld(), GameEventMgr::RunSmartAIScripts(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), Update(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::VisitObjectsToSwapOnMap(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::VisitObjectsWhereIdWasUpdated().
Definition at line 4029 of file Map.cpp.
References _zoneDynamicInfo, ZoneDynamicInfo::DefaultWeather, and WeatherMgr::GetWeatherData().
Referenced by misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
|
inlinevirtual |
Definition at line 515 of file Map.h.
References UI64LIT.
Referenced by Arena::EndBattleground(), and Guild::HandleGuildPartyRequest().
| Pet * Map::GetPet | ( | ObjectGuid const & | guid | ) |
Definition at line 3593 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetPet(), and ScriptsProcess().
| Player * Map::GetPlayer | ( | ObjectGuid const & | guid | ) |
Definition at line 3568 of file Map.cpp.
References ObjectAccessor::GetPlayer().
Referenced by arena_empyrean_domain::OnStart(), ScriptsProcess(), and npc_minigob_manabonk::UpdateAI().
|
inline |
Definition at line 408 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(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), boss_general_vezax::boss_general_vezaxAI::CheckShamanisticRage(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), Unit::ClearBossEmotes(), npc_halion_controller::DoCheckEvade(), ScriptedAI::DoTeleportAll(), CreatureAI::DoZoneInCombat(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::EnterEvadeMode(), boss_illidan_stormrage::EnterEvadeModeIfNeeded(), boss_shade_of_akama::EnterEvadeModeIfNeeded(), FindEligibleTarget(), InstanceScript::GetCombatResurrectionChargeInterval(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), npc_minigob_manabonk::GetPlayersInDalaran(), spell_heartsbane_triad_aura_of_dread::HandlePeriodic(), spell_krick_explosive_barrage::HandlePeriodicTick(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::HandlePlayerVehicle(), boss_remnant_of_a_fallen_king::JustAppeared(), boss_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_apothecary_hummel::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), boss_ahune::JustDied(), boss_shattered_executioner::JustDied(), CriteriaHandler::ModifierSatisfied(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), RemoveFromMap(), boss_volazj::ResetPlayersPhaseMask(), CreatureTextMgr::SendChatPacket(), SendZoneMessage(), 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(), SetZoneWeather(), boss_volazj::SpellHitTarget(), boss_volazj::SummonedCreatureDespawn(), instance_zulaman::instance_zulaman_InstanceScript::SummonHostage(), Transport::TeleportPassengersAndHideTransport(), instance_stratholme::instance_stratholme_InstanceMapScript::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::UpdateLfgEncounterState(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::UpdateQuestCredit(), and npc_thrall_old_hillsbrad::WaypointReached().
| uint32 Map::GetPlayersCountExceptGMs | ( | ) | const |
Definition at line 2689 of file Map.cpp.
References RefManager< ReferenceType >::begin(), RefManager< ReferenceType >::end(), and m_mapRefManager.
Referenced by InstanceMap::CannotEnter(), Player::CheckInstanceValidity(), boss_sister_solena::ExecuteEvent(), spell_garothi_cannon_chooser::HandleDummyEffect(), CriteriaHandler::ModifierSatisfied(), movie_anduin_final::OnMovieComplete(), and AqusirrEventHandler::Schedule().
|
inline |
Definition at line 758 of file Map.h.
Referenced by GameObject::Delete(), gobject_commandscript::HandleGameObjectTargetCommand(), ProcessRespawns(), Creature::Respawn(), ShouldBeSpawnedOnGridLoad(), and GameObject::Update().
|
inline |
|
private |
Definition at line 2152 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 2144 of file Map.cpp.
References _creatureRespawnTimesBySpawnId, _gameObjectRespawnTimesBySpawnId, PushRespawnInfoFrom(), SPAWN_TYPEMASK_CREATURE, and SPAWN_TYPEMASK_GAMEOBJECT.
|
inlineprivate |
Definition at line 780 of file Map.h.
References ABORT, SPAWN_TYPE_AREATRIGGER, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by AddRespawnInfo(), DeleteRespawnInfo(), GetRespawnInfo(), ProcessRespawns(), and SpawnGroupSpawn().
|
inlineprivate |
Definition at line 794 of file Map.h.
References ABORT, SPAWN_TYPE_AREATRIGGER, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
|
inline |
Definition at line 520 of file Map.h.
Referenced by ShouldBeSpawnedOnGridLoad().
| SceneObject * Map::GetSceneObject | ( | ObjectGuid const & | guid | ) |
Definition at line 3558 of file Map.cpp.
References _objectsStore, and TypeListContainer< UnderlyingContainer, Types >::Find().
Referenced by ObjectAccessor::GetSceneObject().
| SpawnGroupTemplateData const * Map::GetSpawnGroupData | ( | uint32 | groupId | ) | const |
Definition at line 2352 of file Map.cpp.
References SpawnGroupTemplateData::flags, GetId(), SpawnGroupTemplateData::mapId, sObjectMgr, and SPAWNGROUP_FLAG_SYSTEM.
Referenced by InitSpawnGroupState(), IsSpawnGroupActive(), SetSpawnGroupActive(), SpawnGroupDespawn(), SpawnGroupSpawn(), and UpdateSpawnGroupConditions().
| float Map::GetStaticHeight | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| bool | checkVMap = true, |
||
| float | maxSearchDist = DEFAULT_HEIGHT_SEARCH |
||
| ) |
|
inline |
Definition at line 328 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and GetStaticHeight().
Referenced by GetStaticHeight().
|
inline |
Definition at line 302 of file Map.h.
Referenced by mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapStatsCommand(), and PathGenerator::PathGenerator().
| Transport * Map::GetTransport | ( | ObjectGuid const & | guid | ) |
Definition at line 3598 of file Map.cpp.
References GetGameObject(), ObjectGuid::IsMOTransport(), and GameObject::ToTransport().
Referenced by ObjectAccessor::GetTransport(), battleground_isle_of_conquest::HandleCapturedNodes(), WorldSession::HandleMoveWorldportAck(), battleground_isle_of_conquest::OnPlayerAssaultNode(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), and Unit::SendTeleportPacket().
|
inline |
Definition at line 281 of file Map.h.
References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 257 of file Map.h.
Referenced by ActiveObjectsNearGrid(), WorldObject::GetGridActivationRange(), WorldObject::GetSightRange(), WorldObject::GetVisibilityRange(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModPossessPet(), SummonCreature(), and Update().
| float Map::GetWaterLevel | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y | ||
| ) |
| float Map::GetWaterOrGroundLevel | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float * | ground = nullptr, |
||
| bool | swim = false, |
||
| float | collisionHeight = 2.03128f |
||
| ) |
Definition at line 1755 of file Map.cpp.
References _dynamicTree, GetId(), and m_terrain.
Referenced by Unit::_ExitVehicle(), WorldObject::GetMapWaterOrGroundLevel(), and spell_sholazar_shoot_rjr::HandleDummy().
|
inline |
|
inline |
Definition at line 448 of file Map.h.
References SPAWN_TYPE_AREATRIGGER, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Referenced by SpawnGroupSpawn().
Definition at line 437 of file Map.cpp.
References _worldStateValues, and Trinity::Containers::MapGetValuePtr().
Referenced by battleground_arathi_basin::_CalculateTeamNodes(), battleground_battle_for_gilneas::CalculateTeamNodes(), battleground_eye_of_the_storm::CanCaptureFlag(), battleground_eye_of_the_storm::GetControlledBaseCount(), WorldStateMgr::GetValue(), battleground_seething_shore::HandleAssaultPoint(), battleground_alterac_valley::IsCaptainAlive(), battleground_strand_of_the_ancients::IsGateDestroyed(), battleground_deephaul_ravine::OnStart(), battleground_silvershard_mines::OnStart(), battleground_silvershard_mines::OnTrackSwitched(), and npc_bg_silvershard_mines_mine_cart::WaypointPathEnded().
|
inline |
Definition at line 850 of file Map.h.
Referenced by WorldStateMgr::FillInitialWorldStates().
| void Map::GetZoneAndAreaId | ( | PhaseShift const & | phaseShift, |
| uint32 & | zoneid, | ||
| uint32 & | areaid, | ||
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 1720 of file Map.cpp.
References _dynamicTree, GetId(), and m_terrain.
Referenced by WorldObject::AddToWorld().
|
inline |
Definition at line 323 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and GetZoneAndAreaId().
Referenced by GetZoneAndAreaId().
| uint32 Map::GetZoneId | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 1715 of file Map.cpp.
References _dynamicTree, GetId(), and m_terrain.
Referenced by list_commandscript::HandleListRespawnsCommand().
|
inline |
Definition at line 321 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and GetZoneId().
Referenced by GetZoneId().
| WeatherState Map::GetZoneWeather | ( | uint32 | zoneId | ) | const |
Definition at line 4046 of file Map.cpp.
References _zoneDynamicInfo, ZoneDynamicInfo::DefaultWeather, Trinity::Containers::MapGetValuePtr(), WEATHER_STATE_FINE, and ZoneDynamicInfo::WeatherId.
Referenced by CriteriaHandler::ModifierSatisfied().
Definition at line 350 of file Map.cpp.
References EnsureGridLoaded(), getNGrid(), and NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::setUnloadExplicitLock().
Definition at line 360 of file Map.cpp.
References getNGrid(), IsGridLoaded(), and NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::setUnloadExplicitLock().
|
inline |
Definition at line 397 of file Map.h.
Referenced by MapManager::DestroyMap(), CreatureAI::DoZoneInCombat(), GetDebugInfo(), spell_hadronox_periodic_summon_template_AuraScript::HandlePeriodic(), boss_headless_horseman::JustDied(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), InstanceMap::Reset(), 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 515 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
| void Map::InitializeObject | ( | GameObject * | obj | ) |
Definition at line 521 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
|
private |
Definition at line 512 of file Map.cpp.
Referenced by AddToMap().
| void Map::InitSpawnGroupState | ( | ) |
Definition at line 2500 of file Map.cpp.
References ASSERT_NOTNULL, CONDITION_SOURCE_TYPE_SPAWN_GROUP, SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), sConditionMgr, SetSpawnGroupActive(), sObjectMgr, SPAWNGROUP_FLAG_MANUAL_SPAWN, and SPAWNGROUP_FLAG_SYSTEM.
Referenced by MapManager::CreateBattleground(), MapManager::CreateGarrison(), and MapManager::CreateWorldMap().
|
static |
Definition at line 122 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 GarrisonMap, InstanceMap, and BattlegroundMap.
Definition at line 166 of file Map.cpp.
References CONFIG_MAX_VISIBILITY_DISTANCE_CONTINENT, CONFIG_VISIBILITY_NOTIFY_PERIOD_CONTINENT, m_VisibilityNotifyPeriod, m_VisibleDistance, and sWorld.
Referenced by Map().
|
inline |
Definition at line 504 of file Map.h.
Referenced by GameObject::AddToWorld(), Transport::Update(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
| bool Map::Instanceable | ( | ) | const |
Definition at line 3293 of file Map.cpp.
References i_mapEntry, and MapEntry::Instanceable().
Referenced by AddPlayerToMap(), GameObjectType::ControlZone::ControlZone(), GameObject::Create(), DeleteRespawnInfoFromDB(), DeleteRespawnTimesInDB(), group_commandscript::HandleGroupSummonCommand(), AuraEffect::HandlePreventResurrection(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), LoadRespawnTimes(), CreatureAI::MoveInLineOfSight(), SaveRespawnInfoDB(), and GameEvents::TriggerForPlayer().
| bool Map::Is25ManRaid | ( | ) | const |
Definition at line 3385 of file Map.cpp.
References DIFFICULTY_25_HC, DIFFICULTY_25_N, i_spawnMode, and IsRaid().
Referenced by boss_yogg_saron::boss_yogg_saronAI::DoAction(), spell_argaloth_fel_firestorm_forcecast::FilterTargets(), spell_baleroc_shards_of_torment_target_search::FilterTargets(), spell_rotface_vile_gas_trigger::FilterTargets(), spell_sindragosa_unchained_magic::FilterTargets(), spell_sindragosa_frost_breath::HandleInfusion(), spell_baleroc_torment_AuraScript::HandleProc(), 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(), npc_grobbulus_poison_cloud::JustAppeared(), spell_the_lich_king_vile_spirits::Load(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), and boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI().
| bool Map::IsAlwaysActive | ( | ) | const |
Definition at line 3420 of file Map.cpp.
References IsBattlegroundOrArena().
Referenced by AddToMap().
| bool Map::IsBattleArena | ( | ) | const |
Definition at line 3400 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattleArena().
Referenced by WorldSession::HandleRideVehicleInteract(), BattlegroundMap::InitScriptData(), and BattlegroundMap::InitVisibilityDistance().
| bool Map::IsBattleground | ( | ) | const |
Definition at line 3395 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattleground().
Referenced by Spell::CheckCast(), MajorPlayerHealingCooldownHelpers::GetBonusMultiplier(), and AuraEffect::HandleAuraDummy().
| bool Map::IsBattlegroundOrArena | ( | ) | const |
Definition at line 3405 of file Map.cpp.
References i_mapEntry, and MapEntry::IsBattlegroundOrArena().
Referenced by ApplyDynamicModeRespawnScaling(), SpellInfo::CalcProcPPM(), ConvertCorpseToBones(), MapManager::CreateBattleground(), DelayedUpdate(), MapManager::DestroyMap(), misc_commandscript::HandleAppearCommand(), list_commandscript::HandleListSpawnPointsCommand(), misc_commandscript::HandleSummonCommand(), IsAlwaysActive(), ConditionMgr::IsPlayerMeetingCondition(), and Player::UpdateItemLevelAreaBasedScaling().
|
inline |
Definition at line 394 of file Map.h.
Referenced by ProcessRelocationNotifies(), and VisitNearbyCellsOf().
| bool Map::IsDungeon | ( | ) | const |
Definition at line 3303 of file Map.cpp.
References i_mapEntry, and MapEntry::IsDungeon().
Referenced by Creature::Create(), MapManager::DestroyMap(), ScriptedAI::DoTeleportAll(), CreatureAI::DoZoneInCombat(), Spell::EffectSanctuary(), Trinity::XP::Gain(), WorldObject::GetInstanceScript(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), spell_freezing_circle::HandleDamage(), spell_item_nitro_boosts::HandleDummy(), AuraEffect::HandleFeignDeath(), list_commandscript::HandleListSpawnPointsCommand(), AuraEffect::HandleModUnattackable(), misc_commandscript::HandleSummonCommand(), Player::IsAtGroupRewardDistance(), IsMythicPlus(), IsTimewalking(), Unit::Kill(), Player::LoadFromDB(), BlackheartCharmedPlayerAI::OnCharmed(), CriteriaHandler::RequirementsSatisfied(), Player::SetBattlegroundEntryPoint(), and lfg::LFGMgr::TeleportPlayer().
| bool Map::IsGarrison | ( | ) | const |
Definition at line 3415 of file Map.cpp.
References i_mapEntry, and MapEntry::IsGarrison().
Referenced by MapManager::CreateGarrison(), and CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 278 of file Map.h.
References Trinity::ComputeGridCoord(), and IsGridLoaded().
Referenced by IsGridLoaded().
|
private |
Definition at line 614 of file Map.cpp.
References getNGrid(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::isGridObjectDataLoaded(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 279 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), and IsGridLoaded().
Referenced by IsGridLoaded().
|
inline |
Definition at line 277 of file Map.h.
References IsGridLoaded(), and MAX_NUMBER_OF_GRIDS.
Referenced by DoRespawn(), GridUnmarkNoUnload(), IsGridLoaded(), MapObjectCellRelocation(), SpawnGroupSpawn(), SwitchGridContainers(), Transport::Update(), and Transport::UpdatePosition().
| bool Map::IsHeroic | ( | ) | const |
Definition at line 3347 of file Map.cpp.
References DIFFICULTY_10_HC, DIFFICULTY_25_HC, DIFFICULTY_3_MAN_SCENARIO_HC, DIFFICULTY_FLAG_DISPLAY_HEROIC, DIFFICULTY_HEROIC, i_spawnMode, and sDifficultyStore.
Referenced by spell_kelidan_the_breaker_burning_nova::AfterApply(), spell_kelidan_the_breaker_burning_nova::AfterRemove(), spell_bronjahm_magic_bane::CalculateDamage(), instance_gundrak::instance_gundrak_InstanceMapScript::CheckRequiredBosses(), BattleExperienceEvent::Execute(), spell_freezing_circle::HandleDamage(), spell_s92306_crystal_storm::spell_s92306_crystal_storm_SpellScript::HandleDummyEffect(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_baleroc_torment_AuraScript::HandleProc(), spell_prince_taldaram_conjure_flame_sphere::HandleScript(), spell_gal_darah_clear_puncture::HandleScript(), spell_ormorok_summon_crystal_spikes::HandleScript(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::instance_trial_of_the_crusader_InstanceMapScript(), ScriptedAI::IsHeroic(), IsHeroicOrHigher(), instance_gundrak::instance_gundrak_InstanceMapScript::OnGameObjectCreate(), spell_black_morass_time_rift_periodic::OnPeriodic(), boss_baleroc::PreparePhase(), instance_lost_city_of_the_tolvir::instance_lost_city_of_the_tolvir_InstanceMapScript::SetBossState(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::SetBossState(), instance_arcatraz::instance_arcatraz_InstanceMapScript::SetBossState(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SpawnInfiniteCorruptor(), and instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update().
| bool Map::IsHeroicOrHigher | ( | ) | const |
Definition at line 3380 of file Map.cpp.
References IsHeroic(), IsMythic(), and IsMythicPlus().
Referenced by spell_lord_and_lady_waycrest_virulent_pathogen_damage::HandleDamage(), spell_soulbound_goliath_burning_brush_aura::HandlePeriodic(), spell_rokmora_shatter::HandleShatter(), ScriptedAI::IsHeroicOrHigher(), at_rezan_pile_of_bones_spawn_raptor::OnUnitEnter(), at_rezan_pile_of_bones_slow::OnUnitEnter(), and AqusirrEventHandler::Schedule().
| bool Map::isInLineOfSight | ( | PhaseShift const & | phaseShift, |
| float | x1, | ||
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| LineOfSightChecks | checks, | ||
| VMAP::ModelIgnoreFlags | ignoreFlags | ||
| ) | const |
Definition at line 1760 of file Map.cpp.
References _dynamicTree, CONFIG_CHECK_GOBJECT_LOS, VMAP::VMapFactory::createOrGetVMapManager(), GetId(), PhasingHandler::GetTerrainMapId(), DynamicMapTree::isInLineOfSight(), isInLineOfSight(), LINEOFSIGHT_CHECK_GOBJECT, LINEOFSIGHT_CHECK_VMAP, m_terrain, and sWorld.
Referenced by isInLineOfSight(), WorldObject::IsWithinLOS(), WorldObject::IsWithinLOSInMap(), and PathGenerator::ShortenPathUntilDist().
| bool Map::IsInWater | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| LiquidData * | data = nullptr |
||
| ) |
| bool Map::IsLFR | ( | ) | const |
Definition at line 3318 of file Map.cpp.
References DIFFICULTY_LFR, DIFFICULTY_LFR_15TH_ANNIVERSARY, DIFFICULTY_LFR_NEW, and i_spawnMode.
Referenced by ScriptedAI::IsLFR(), spell_anduin_wrynn_hopelessness_overconfidence::OnRemove(), and at_anduin_wrynn_blasphemy::OnUnitEnter().
| bool Map::IsMythic | ( | ) | const |
Definition at line 3368 of file Map.cpp.
References DIFFICULTY_FLAG_DISPLAY_MYTHIC, i_spawnMode, and sDifficultyStore.
Referenced by spell_ymiron_the_fallen_king_bane_periodic_AuraScript::CalcPeriodic(), spell_anduin_wrynn_grim_reflections::HandleCast(), spell_garothi_cannon_chooser::HandleDummyEffect(), spell_anduin_wrynn_kingsmourne_hungers::HandleDummyEffect(), IsHeroicOrHigher(), ScriptedAI::IsMythic(), at_telash_greywing_vault_rune::OnRemove(), spell_anduin_wrynn_lost_soul::OnRemove(), at_anduin_wrynn_beacon_of_hope::OnUnitEnter(), and at_anduin_wrynn_blasphemy::OnUnitEnter().
| bool Map::IsMythicPlus | ( | ) | const |
Definition at line 3375 of file Map.cpp.
References DIFFICULTY_MYTHIC_KEYSTONE, i_spawnMode, and IsDungeon().
Referenced by spell_ymiron_the_fallen_king_bane_periodic_AuraScript::CalcPeriodic(), IsHeroicOrHigher(), ScriptedAI::IsMythicPlus(), and at_telash_greywing_vault_rune::OnRemove().
| bool Map::IsNonRaidDungeon | ( | ) | const |
Definition at line 3308 of file Map.cpp.
References i_mapEntry, and MapEntry::IsNonRaidDungeon().
Referenced by Player::RewardReputation().
| bool Map::IsNormal | ( | ) | const |
Definition at line 3331 of file Map.cpp.
References DIFFICULTY_10_N, DIFFICULTY_25_N, DIFFICULTY_NORMAL, DIFFICULTY_NORMAL_ISLAND, DIFFICULTY_NORMAL_RAID, DIFFICULTY_NORMAL_WARFRONT, and i_spawnMode.
Referenced by ScriptedAI::IsNormal(), spell_anduin_wrynn_hopelessness_overconfidence::OnRemove(), and at_anduin_wrynn_blasphemy::OnUnitEnter().
| bool Map::IsRaid | ( | ) | const |
Definition at line 3313 of file Map.cpp.
References i_mapEntry, and MapEntry::IsRaid().
Referenced by InstanceMap::CannotEnter(), Player::CheckInstanceValidity(), InstanceMap::CreateInstanceData(), MajorPlayerHealingCooldownHelpers::GetBonusMultiplier(), misc_commandscript::HandleAppearCommand(), Is25ManRaid(), IsTimewalking(), and Creature::SetTappedBy().
|
inline |
Definition at line 270 of file Map.h.
References Trinity::ComputeGridCoord(), GRID_STATE_REMOVAL, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by ConvertCorpseToBones().
|
inline |
Definition at line 275 of file Map.h.
References Position::GetPositionX(), Position::GetPositionY(), and IsRemovalGrid().
Referenced by IsRemovalGrid().
| bool Map::IsScenario | ( | ) | const |
Definition at line 3410 of file Map.cpp.
References i_mapEntry, and MapEntry::IsScenario().
Referenced by GameEvents::TriggerForPlayer().
| bool Map::IsSpawnGroupActive | ( | uint32 | groupId | ) | const |
Definition at line 2486 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(), scene_auchindoun_soulbinder_nyami::HandleScene(), Creature::LoadFromDB(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnPlayerEnter(), ShouldBeSpawnedOnGridLoad(), UpdateSpawnGroupConditions(), and InstanceScript::UpdateSpawnGroups().
| bool Map::IsTimewalking | ( | ) | const |
Definition at line 3390 of file Map.cpp.
References DIFFICULTY_TIMEWALKING, DIFFICULTY_TIMEWALKING_RAID, i_spawnMode, IsDungeon(), and IsRaid().
Referenced by ScriptedAI::IsTimewalking(), and instance_lost_city_of_the_tolvir::instance_lost_city_of_the_tolvir_InstanceMapScript::SetBossState().
| bool Map::IsUnderWater | ( | PhaseShift const & | phaseShift, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 1750 of file Map.cpp.
References GetId(), and m_terrain.
Referenced by PathGenerator::BuildPolyPath().
| bool Map::IsWorldMap | ( | ) | const |
Definition at line 3298 of file Map.cpp.
References i_mapEntry, and MapEntry::IsWorldMap().
| void Map::LoadAllGrids | ( | ) |
Definition at line 115 of file Map.cpp.
References EnsureGridLoaded(), and MAX_NUMBER_OF_GRIDS.
Referenced by MapManager::CreateBattleground(), MapManager::CreateWorldMap(), and debug_commandscript::HandleDebugLoadCellsCommandHelper().
| void Map::LoadCorpseData | ( | ) |
Definition at line 3757 of file Map.cpp.
References AddCorpse(), PhasingHandler::AddPhase(), RefManager< ReferenceType >::begin(), CHAR_SEL_CORPSE_CUSTOMIZATIONS, CHAR_SEL_CORPSE_PHASES, CHAR_SEL_CORPSES, CharacterDatabase, UF::ChrCustomizationChoice::ChrCustomizationChoiceID, UF::ChrCustomizationChoice::ChrCustomizationOptionID, CORPSE_BONES, RefManager< ReferenceType >::end(), GetId(), GetInstanceId(), Field::GetUInt32(), Field::GetUInt64(), Corpse::LoadCorpseFromDB(), Trinity::Containers::MakeIteratorPair(), MAX_CORPSE_TYPE, Corpse::SetCustomizations(), PreparedStatementBase::setUInt32(), and TC_LOG_ERROR.
Referenced by MapManager::CreateWorldMap().
| void Map::LoadGrid | ( | float | x, |
| float | y | ||
| ) |
Definition at line 370 of file Map.cpp.
References Trinity::ComputeGridCoord(), and EnsureGridLoaded().
Referenced by npc_crok_scourgebane::DoAction(), debug_commandscript::HandleDebugLoadCellsCommandHelper(), 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_hyjal::instance_mount_hyjal_InstanceMapScript::SetBossState(), and instance_naxxramas::instance_naxxramas_InstanceMapScript::Update().
| void Map::LoadGridForActiveObject | ( | float | x, |
| float | y, | ||
| WorldObject const * | object | ||
| ) |
Definition at line 375 of file Map.cpp.
References Trinity::ComputeGridCoord(), and EnsureGridLoadedForActiveObject().
Referenced by CinematicMgr::NextCinematicCamera().
|
protectedvirtual |
Reimplemented in GarrisonMap.
Definition at line 344 of file Map.cpp.
References ObjectGridLoader::LoadN().
Referenced by EnsureGridLoaded(), and GarrisonMap::LoadGridObjects().
| void Map::LoadGridsInRange | ( | float | x, |
| float | y, | ||
| float | radius | ||
| ) |
Definition at line 380 of file Map.cpp.
References Trinity::ComputeGridCoord(), EnsureGridLoaded(), SIZE_OF_GRIDS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Trinity::DelayedUnitRelocation::Visit().
| void Map::LoadRespawnTimes | ( | ) |
Definition at line 3697 of file Map.cpp.
References CHAR_SEL_RESPAWNS, CharacterDatabase, Trinity::ComputeGridCoord(), CoordPair< LIMIT >::GetId(), GetId(), GetInstanceId(), Field::GetInt64(), Field::GetUInt64(), Instanceable(), SaveRespawnTime(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sObjectMgr, TC_LOG_ERROR, and SpawnMetadata::TypeHasData().
Referenced by MapManager::CreateWorldMap().
|
private |
Definition at line 1435 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), Cell::GridX(), Cell::GridY(), IsGridLoaded(), TC_LOG_DEBUG, and Object::ToCreature().
Referenced by AreaTriggerCellRelocation(), CreatureCellRelocation(), DynamicObjectCellRelocation(), and GameObjectCellRelocation().
|
inline |
Definition at line 395 of file Map.h.
Referenced by VisitNearbyCellsOf().
| void Map::MoveAllAreaTriggersInMoveList | ( | ) |
Definition at line 1395 of file Map.cpp.
References _areaTriggersToMove, _areaTriggersToMoveLock, MapObject::_moveState, MapObject::_newPosition, AreaTriggerCellRelocation(), WorldObject::FindMap(), BaseEntity::GetGUID(), BaseEntity::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 AreaTrigger::UpdateShape().
Referenced by UnloadGrid(), and Update().
| void Map::MoveAllCreaturesInMoveList | ( | ) |
Definition at line 1255 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), CreatureCellRelocation(), CreatureRespawnRelocation(), WorldObject::FindMap(), BaseEntity::GetGUID(), Unit::GetVehicleKit(), BaseEntity::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 1356 of file Map.cpp.
References _dynamicObjectsToMove, _dynamicObjectsToMoveLock, MapObject::_moveState, MapObject::_newPosition, DynamicObjectCellRelocation(), WorldObject::FindMap(), BaseEntity::GetGUID(), BaseEntity::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 1312 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), GameObject::AfterRelocation(), WorldObject::FindMap(), GameObjectCellRelocation(), GameObjectRespawnRelocation(), BaseEntity::GetGUID(), BaseEntity::IsInWorld(), Position::m_positionX, Position::m_positionY, MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_NONE, Position::Relocate(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by UnloadGrid(), and Update().
|
static |
Definition at line 1807 of file Map.cpp.
References CONFIG_EXPANSION, CONFIG_INSTANCE_IGNORE_RAID, MapDifficultyEntry::DifficultyID, MapEntry::Expansion(), Player::GetDifficultyID(), Group::GetDifficultyID(), MapEntry::GetFlags2(), Player::GetGroup(), Player::GetSession(), IgnoreInstanceFarmLimit, MapEntry::Instanceable(), Unit::isDead(), MapEntry::IsDungeon(), Player::IsGameMaster(), MapEntry::IsRaid(), Group::isRaidGroup(), params, Player::Satisfy(), sDB2Manager, sMapMgr, sMapStore, sObjectMgr, sWorld, TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_NEED_GROUP, TRANSFER_ABORT_NONE, TRANSFER_ABORT_TOO_MANY_INSTANCES, and WorldSession::UpdateAndCheckInstanceCount().
Referenced by WorldSession::HandleAreaTriggerOpcode(), and Player::TeleportTo().
| void Map::PlayerRelocation | ( | Player * | player, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation | ||
| ) |
Definition at line 1031 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(), TransportBase::UpdatePassengerPosition(), and Unit::UpdatePosition().
|
private |
Definition at line 848 of file Map.cpp.
References RefManager< GridReference< OBJECT > >::end(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getGridInfoRef(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridState(), GridInfo::getRelocationTimer(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getX(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getY(), GRID_STATE_ACTIVE, isCellMarked(), m_VisibilityNotifyPeriod, MAX_NUMBER_OF_CELLS, MAX_VISIBILITY_DISTANCE, 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 2236 of file Map.cpp.
References _respawnTimes, ASSERT, ASSERT_NOTNULL, CheckRespawn(), DoRespawn(), GameTime::GetGameTime(), GetPoolData(), GetRespawnMapForType(), RespawnInfo::gridId, RespawnInfoWithHandle::handle, RemoveRespawnTime(), RespawnInfo::respawnTime, SaveRespawnInfoDB(), RespawnInfo::spawnId, sPoolMgr, and RespawnInfo::type.
Referenced by Update().
| void Map::RemoveAllObjectsInRemoveList | ( | ) |
Definition at line 2615 of file Map.cpp.
References Unit::CleanupsBeforeDelete(), ObjectAccessor::GetCorpse(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), i_objectsToRemove, i_objectsToSwitch, WorldObject::IsAlwaysStoredInWorldObjectGridContainer(), RemoveFromMap(), TC_LOG_ERROR, Object::ToCreature(), Object::ToDynObject(), Object::ToGameObject(), ObjectGuid::ToString(), GameObject::ToTransport(), TYPEID_AREATRIGGER, TYPEID_CONVERSATION, TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by DelayedUpdate(), and UnloadGrid().
|
virtual |
Reimplemented in BattlegroundMap.
Definition at line 1645 of file Map.cpp.
References RefManager< ReferenceType >::begin(), RefManager< ReferenceType >::end(), GetId(), WorldObject::GetName(), HavePlayers(), Player::IsBeingTeleportedFar(), Player::m_homebind, m_mapRefManager, TC_LOG_ERROR, and Player::TeleportTo().
Referenced by MapManager::DestroyMap().
|
private |
Definition at line 1246 of file Map.cpp.
References _areaTriggersToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by AreaTriggerRelocation().
| void Map::RemoveCorpse | ( | Corpse * | corpse | ) |
Definition at line 3862 of file Map.cpp.
References _corpseBones, _corpsesByGrid, _corpsesByPlayer, ASSERT, Trinity::ComputeGridCoord(), CORPSE_BONES, CoordPair< LIMIT >::GetId(), Corpse::GetOwnerGUID(), Position::GetPositionX(), Position::GetPositionY(), Corpse::GetType(), GridObject< T >::IsInGrid(), RemoveFromMap(), Corpse::RemoveFromWorld(), WorldObject::ResetMap(), and WorldObject::UpdateObjectVisibilityOnDestroy().
Referenced by ConvertCorpseToBones(), and RemoveOldCorpses().
|
private |
Definition at line 1189 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 1227 of file Map.cpp.
References _dynamicObjectsToMoveLock, MapObject::_moveState, MAP_OBJECT_CELL_MOVE_ACTIVE, and MAP_OBJECT_CELL_MOVE_INACTIVE.
Referenced by DynamicObjectRelocation().
|
inline |
|
inline |
| void Map::RemoveFromActive | ( | WorldObject * | obj | ) |
Definition at line 2805 of file Map.cpp.
References Trinity::ComputeGridCoord(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::decUnloadActiveLock(), BaseEntity::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), GameObject::GetSpawnId(), BaseEntity::GetTypeId(), m_activeNonPlayers, m_activeNonPlayersIter, 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().
| void Map::RemoveFromMap | ( | T * | obj, |
| bool | remove | ||
| ) |
Definition at line 950 of file Map.cpp.
References DeleteFromWorld(), GetMultiPersonalPhaseTracker(), RemoveFromActive(), TYPEID_GAMEOBJECT, TYPEID_UNIT, and MultiPersonalPhaseTracker::UnregisterTrackedObject().
Referenced by RemoveAllObjectsInRemoveList(), and RemoveCorpse().
| void Map::RemoveFromMap | ( | Transport * | obj, |
| bool | remove | ||
| ) |
Definition at line 971 of file Map.cpp.
References _transports, _transportsUpdateIter, RefManager< ReferenceType >::begin(), BaseEntity::BuildDestroyUpdateBlock(), BaseEntity::BuildOutOfRangeUpdateBlock(), UpdateData::BuildPacket(), DeleteFromWorld(), RefManager< ReferenceType >::end(), BaseEntity::GetGUID(), GetId(), GetPlayers(), BaseEntity::IsDestroyedObject(), BaseEntity::IsInWorld(), GameObject::RemoveFromWorld(), and WorldObject::ResetMap().
|
private |
Definition at line 1208 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 503 of file Map.h.
Referenced by GameObject::RemoveFromWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
| void Map::RemoveInfiniteAOIVignette | ( | Vignettes::VignetteData * | vignette | ) |
Definition at line 492 of file Map.cpp.
References _infiniteAOIVignettes, Vignettes::VignetteData::Data, VignetteEntry::GetFlags(), WorldPackets::Packet::GetRawPacket(), Vignettes::VignetteData::Guid, m_mapRefManager, WorldPackets::Vignette::VignetteUpdate::Removed, SendToPlayers(), WorldPackets::Vignette::VignetteUpdate::Write(), Vignettes::VignetteData::ZoneID, and ZoneInfiniteAOI.
Referenced by Vignettes::Remove().
| void Map::RemoveOldCorpses | ( | ) |
Definition at line 3939 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 923 of file Map.cpp.
References ASSERT, Unit::CombatStop(), DeleteFromWorld(), BaseEntity::GetGUID(), GetMultiPersonalPhaseTracker(), GridObject< T >::IsInGrid(), BaseEntity::IsInWorld(), MAP_INVALID_ZONE, MultiPersonalPhaseTracker::MarkAllPhasesForDeletion(), GridObject< T >::RemoveFromGrid(), Player::RemoveFromWorld(), SendRemoveTransports(), sScriptMgr, WorldObject::UpdateObjectVisibilityOnDestroy(), and Player::UpdateZone().
Referenced by WorldSession::HandleMoveWorldportAck(), InstanceMap::RemovePlayerFromMap(), BattlegroundMap::RemovePlayerFromMap(), and Player::TeleportTo().
|
inline |
Definition at line 730 of file Map.h.
Referenced by GameObject::LoadFromDB(), ProcessRespawns(), SaveRespawnTime(), SpawnGroupDespawn(), and SpawnGroupSpawn().
|
inline |
Definition at line 582 of file Map.h.
Referenced by DeleteFromWorld(), and WorldObject::RemoveFromObjectUpdate().
| void Map::RemoveWorldObject | ( | WorldObject * | obj | ) |
Definition at line 2767 of file Map.cpp.
References i_worldObjects.
Referenced by WorldObject::ResetMap(), and SwitchGridContainers().
| void Map::RequestRebuildNavMeshOnGameObjectModelChange | ( | GameObjectModel const & | model, |
| PhaseShift const & | phaseShift | ||
| ) |
Definition at line 1785 of file Map.cpp.
References Trinity::ComputeGridCoord(), GameObjectModel::getBounds(), GetId(), GameObjectModel::GetPosition(), PhasingHandler::GetTerrainMapId(), m_mmapTileRebuilder, m_terrain, MAX_NUMBER_OF_GRIDS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by GameObject::UpdateModel().
|
inline |
Definition at line 292 of file Map.h.
References NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::ResetTimeTracker().
Referenced by EnsureGridLoadedForActiveObject(), ActiveState::Update(), IdleState::Update(), and RemovalState::Update().
|
private |
Definition at line 2070 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_high_king_maulgar::Reset(), boss_thaddius::ResetEncounter(), GameObject::Respawn(), Creature::Respawn(), and EscortAI::UpdateAI().
|
inline |
| void Map::SaveRespawnInfoDB | ( | RespawnInfo const & | info, |
| CharacterDatabaseTransaction | dbTrans = nullptr |
||
| ) |
Definition at line 3683 of file Map.cpp.
References CHAR_REP_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), Instanceable(), RespawnInfo::respawnTime, PreparedStatementBase::setInt64(), 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 3650 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 72 of file MapScripts.cpp.
References ObjectGuid::Empty, GameTime::GetGameTime(), BaseEntity::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 311 of file MapScripts.cpp.
References _creatureBySpawnIdStore, _FindGameObject(), _GetScriptCreature(), _GetScriptCreatureSourceOrTarget(), _GetScriptGameObjectSourceOrTarget(), _GetScriptPlayer(), _GetScriptPlayerSourceOrTarget(), _GetScriptUnit(), _GetScriptWorldObject(), _ScriptProcessDoor(), AddToMap(), ScriptInfo::Amount, ScriptInfo::AnimKitID, 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, Creature, 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(), WorldObject::FindNearestCreature(), ScriptInfo::Flags, GameObject, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_TRAP, GetCorpse(), GetCreature(), ScriptInfo::GetDebugInfo(), WorldObject::GetDistance(), GetGameObject(), GameTime::GetGameTime(), GameObject::GetGoType(), BaseEntity::GetGUID(), ObjectGuid::GetHigh(), WorldObject::GetMap(), Position::GetOrientation(), GetPet(), GetPlayer(), GetScriptsMapByType(), BaseEntity::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, ScriptInfo::Model, ScriptInfo::ModelID, Unit::MonsterMoveWithSpeed(), ScriptInfo::Movement, ScriptInfo::MovementDistance, ScriptInfo::MovementType, ScriptInfo::MoveTo, ScriptInfo::MovieID, Unit::NearTeleportTo(), NULL_BAG, NULL_SLOT, ScriptInfo::Orientation, ScriptAction::ownerGUID, ScriptInfo::Path, ScriptInfo::PathID, Pet, ScriptInfo::PlayAnimKit, 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_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_ANIMKIT, 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, 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 34 of file MapScripts.cpp.
References ObjectGuid::Empty, GameTime::GetGameTime(), BaseEntity::GetGUID(), i_scriptLock, m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), sMapMgr, ScriptAction::sourceGUID, ScriptAction::targetGUID, and Object::ToItem().
Referenced by ScriptsProcess(), and GameEvents::TriggerForMap().
|
private |
Definition at line 1859 of file Map.cpp.
References Player::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), Player::GetSession(), WorldObject::GetTransport(), Player::HaveAtClient(), Player::m_visibleTransports, WorldSession::RegisterTimeSync(), Player::SendDirectMessage(), WorldSession::SPECIAL_INIT_ACTIVE_MOVER_TIME_SYNC_COUNTER, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by AddPlayerToMap().
| void Map::SendInitTransports | ( | Player * | player | ) |
Definition at line 1889 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), GetId(), WorldObject::GetTransport(), UpdateData::HasData(), WorldObject::InSamePhase(), Player::m_visibleTransports, and Player::SendDirectMessage().
Referenced by AddPlayerToMap().
|
private |
Definition at line 1974 of file Map.cpp.
References _updateObjects, ASSERT, BaseEntity::BuildUpdate(), ByteBuffer::clear(), and BaseEntity::IsInWorld().
Referenced by Update().
| void Map::SendRemoveTransports | ( | Player * | player | ) |
Definition at line 1910 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldLocation::GetMapId(), WorldObject::GetTransport(), UpdateData::HasData(), Player::m_visibleTransports, and Player::SendDirectMessage().
Referenced by RemovePlayerFromMap().
| void Map::SendToPlayers | ( | WorldPacket const * | data | ) | const |
Definition at line 2698 of file Map.cpp.
References RefManager< ReferenceType >::begin(), RefManager< ReferenceType >::end(), and m_mapRefManager.
Referenced by InstanceScript::AddCombatResurrectionCharge(), boss_ossirian::boss_ossirianAI::JustEngagedWith(), RemoveInfiniteAOIVignette(), InstanceScript::SendBossKillCredit(), InstanceScript::SendEncounterEnd(), InstanceScript::SendEncounterStart(), InstanceScript::SendEncounterUnit(), InstanceScenario::SendPacket(), and InstanceScript::UseCombatResurrection().
| void Map::SendUpdateTransportVisibility | ( | Player * | player | ) |
Definition at line 1931 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldLocation::GetMapId(), Player::GetSession(), UpdateData::HasData(), WorldObject::InSamePhase(), Player::m_visibleTransports, and WorldSession::SendPacket().
Definition at line 3965 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, |
||
| Optional< Team > | team = { } |
||
| ) | const |
Send a packet to all players (or players selected team) in the zone (except self if mentioned)
Definition at line 2705 of file Map.cpp.
References GetPlayers(), Player::GetSession(), Player::GetTeam(), WorldObject::GetZoneId(), BaseEntity::IsInWorld(), and Player::SendDirectMessage().
Referenced by SendZoneText(), SetZoneMusic(), SetZoneOverrideLight(), and Weather::UpdateWeather().
| void Map::SendZoneText | ( | uint32 | zoneId, |
| const char * | text, | ||
| WorldSession const * | self = nullptr, |
||
| Optional< Team > | team = { } |
||
| ) | const |
Send a System Message to all players in the zone (except self if mentioned)
Definition at line 4014 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 3986 of file Map.cpp.
References _zoneDynamicInfo, Unit::HasAuraType(), SendZoneWeather(), and SPELL_AURA_FORCE_WEATHER.
Referenced by AuraEffect::HandleAuraForceWeather(), SendZoneDynamicInfo(), and SendZoneWeather().
| void Map::SendZoneWeather | ( | ZoneDynamicInfo const & | zoneDynamicInfo, |
| Player * | player | ||
| ) | const |
Definition at line 3998 of file Map.cpp.
References ZoneDynamicInfo::DefaultWeather, ZoneDynamicInfo::Intensity, Player::SendDirectMessage(), Weather::SendFineWeatherUpdateToPlayer(), ZoneDynamicInfo::WeatherId, and WorldPackets::Misc::Weather::Write().
|
inline |
|
inline |
Definition at line 1964 of file Map.cpp.
References ABORT, i_grids, MAX_NUMBER_OF_GRIDS, and TC_LOG_ERROR.
Referenced by EnsureGridCreated(), and UnloadGrid().
|
private |
Definition at line 2472 of file Map.cpp.
References _toggledSpawnGroupIds, SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), SPAWNGROUP_FLAG_MANUAL_SPAWN, SPAWNGROUP_FLAG_SYSTEM, and TC_LOG_ERROR.
Referenced by InitSpawnGroupState(), SpawnGroupDespawn(), and SpawnGroupSpawn().
|
inline |
Definition at line 756 of file Map.h.
Referenced by instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetSpawnGroupState(), UpdateSpawnGroupConditions(), and InstanceScript::UpdateSpawnGroups().
|
inlineprivate |
Definition at line 596 of file Map.h.
References MIN_GRID_DELAY.
|
inline |
Definition at line 282 of file Map.h.
References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 356 of file Map.h.
Referenced by MapManager::CreateMap().
Definition at line 445 of file Map.cpp.
References _worldStateValues, WorldStateTemplate::AreaIds, WorldPackets::Packet::GetRawPacket(), WorldStateMgr::GetWorldStateTemplate(), WorldPackets::WorldState::UpdateWorldState::Hidden, m_mapRefManager, sScriptMgr, WorldPackets::WorldState::UpdateWorldState::Value, WorldPackets::WorldState::UpdateWorldState::VariableID, and WorldPackets::WorldState::UpdateWorldState::Write().
Referenced by HPControlZoneHandler::HandleNeutralEvent(), TFControlZoneHandler::HandleNeutralEvent(), HPControlZoneHandler::HandleProgressEventAlliance(), TFControlZoneHandler::HandleProgressEventAlliance(), HPControlZoneHandler::HandleProgressEventHorde(), TFControlZoneHandler::HandleProgressEventHorde(), battleground_silvershard_mines::OnTrackSwitched(), and WorldStateMgr::SetValue().
Definition at line 4021 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 4080 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 4061 of file Map.cpp.
References _zoneDynamicInfo, RefManager< ReferenceType >::begin(), LinkedListHead::empty(), RefManager< ReferenceType >::end(), GetPlayers(), WorldPackets::Packet::GetRawPacket(), ZoneDynamicInfo::Intensity, SPELL_AURA_FORCE_WEATHER, ZoneDynamicInfo::WeatherId, and WorldPackets::Misc::Weather::Write().
Referenced by boss_earthrager_ptah::DamageTaken(), npc_tirion_toc::DoAction(), boss_akilzon::EnterEvadeMode(), ArthasPortalEvent::Execute(), boss_the_lich_king::JustDied(), boss_the_lich_king::JustSummoned(), boss_earthrager_ptah::SetData(), boss_the_lich_king::SpellHit(), boss_akilzon::UpdateAI(), and boss_lich_king_toc::UpdateAI().
|
inline |
Definition at line 741 of file Map.h.
References ShouldBeSpawnedOnGridLoad().
Referenced by ShouldBeSpawnedOnGridLoad().
| bool Map::ShouldBeSpawnedOnGridLoad | ( | SpawnObjectType | type, |
| ObjectGuid::LowType | spawnId | ||
| ) | const |
Definition at line 2331 of file Map.cpp.
References ASSERT, ASSERT_NOTNULL, SpawnGroupTemplateData::flags, GetPoolData(), GetRespawnTime(), SpawnGroupTemplateData::groupId, IsSpawnGroupActive(), SpawnData::poolId, sObjectMgr, SPAWNGROUP_FLAG_SYSTEM, SpawnMetadata::spawnGroupData, SpawnMetadata::ToSpawnData(), and SpawnMetadata::TypeHasData().
| bool Map::SpawnGroupDespawn | ( | uint32 | groupId, |
| bool | deleteRespawnTimes = false, |
||
| size_t * | count = nullptr |
||
| ) |
Definition at line 2449 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(), UpdateSpawnGroupConditions(), and boss_majordomo::UpdateSpecialEvents().
| bool Map::SpawnGroupSpawn | ( | uint32 | groupId, |
| bool | ignoreRespawn = false, |
||
| bool | force = false, |
||
| std::vector< WorldObject * > * | spawnedObjects = nullptr |
||
| ) |
Definition at line 2360 of file Map.cpp.
References ABORT_MSG, ASSERT, ASSERT_NOTNULL, SpawnGroupTemplateData::flags, GetDifficultyID(), GetId(), GetRespawnMapForType(), GetSpawnGroupData(), GetWorldObjectBySpawnId(), IsGridLoaded(), AreaTrigger::LoadFromDB(), Creature::LoadFromDB(), GameObject::LoadFromDB(), SpawnGroupTemplateData::mapId, SpawnMetadata::mapId, RemoveRespawnTime(), SetSpawnGroupActive(), sObjectMgr, SPAWN_TYPE_AREATRIGGER, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_SYSTEM, SpawnMetadata::spawnId, TC_LOG_ERROR, SpawnMetadata::ToSpawnData(), SpawnMetadata::type, SpawnMetadata::TypeHasData(), and UI64FMTD.
Referenced by boss_nalorakk::DoAction(), npc_aqusirr_intro_lord_stormsong::DoAction(), boss_leotheras_the_blind::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_hexlord_malacrass::DoSpawnCompanions(), instance_lost_city_of_the_tolvir::instance_lost_city_of_the_tolvir_InstanceMapScript::EnableSiamat(), HandleNpcSpawnGroup(), scene_auchindoun_soulbinder_nyami::HandleScene(), 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_maiden_of_virtue_rtk::JustDied(), 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_kings_rest::instance_kings_rest_InstanceMapScript::OnUnitDeath(), SmartScript::ProcessAction(), boss_nalorakk::Reset(), boss_drakkari_colossus::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(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), instance_lost_city_of_the_tolvir::instance_lost_city_of_the_tolvir_InstanceMapScript::Update(), OPvPCapturePointNA::Update(), instance_ramparts::instance_ramparts_InstanceMapScript::Update(), boss_julianne::UpdateAI(), boss_akilzon::UpdateAI(), npc_medivh_bm::UpdateAI(), boss_anzu::UpdateAI(), boss_the_lurker_below::UpdateAI(), UpdateSpawnGroupConditions(), InstanceScript::UpdateSpawnGroups(), and boss_majordomo::UpdateSpecialEvents().
| TempSummon * Map::SummonCreature | ( | uint32 | entry, |
| Position const & | pos, | ||
| SummonPropertiesEntry const * | properties = nullptr, |
||
| Milliseconds | duration = 0ms, |
||
| WorldObject * | summoner = nullptr, |
||
| uint32 | spellId = 0, |
||
| uint32 | vehId = 0, |
||
| ObjectGuid | privateObjectOwner = ObjectGuid::Empty, |
||
| SmoothPhasingInfo const * | smoothPhasingInfo = nullptr |
||
| ) |
Definition at line 1191 of file Object.cpp.
References TransportBase::AddPassenger(), AddToMap(), Companion, SummonPropertiesEntry::Control, Creature::Create(), SummonPropertiesEntry::GetFlags(), BaseEntity::GetGUID(), WorldObject::GetOrCreateSmoothPhasing(), TransportBase::GetPositionOffsetTo(), WorldObject::GetTransport(), GetVisibilityRange(), ObjectAccessor::GetWorldObject(), Guardian, IgnoreSummonerPhase, PhasingHandler::InheritPhaseShift(), TempSummon::InitStats(), TempSummon::InitSummon(), JoinSummonerSpawnGroup, Lightwell, Minion, Mount, TransportBase::RemovePassenger(), SmoothPhasingInfo::ReplaceObject, Runeblade, Unit::SetCreatedBySpell(), Unit::SetDemonCreatorGUID(), Creature::SetHomePosition(), WorldObject::SetPrivateObjectOwner(), SmoothPhasing::SetSingleInfo(), SUMMON_CATEGORY_ALLY, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_POSSESSED_VEHICLE, SUMMON_CATEGORY_PUPPET, SUMMON_CATEGORY_VEHICLE, SUMMON_CATEGORY_WILD, SummonPropertiesEntry::Title, Object::ToCreature(), Totem, Object::ToUnit(), UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, UNIT_MASK_PUPPET, UNIT_MASK_SUMMON, UNIT_MASK_TOTEM, Vehicle, and Cell::VisitAllObjects().
Referenced by instance_scholomance::instance_scholomance_InstanceMapScript::CheckToSpawnGandling(), npc_halion_controller::DoAction(), boss_lord_stormsong::DoAction(), Spell::EffectSummonType(), Scripts::Pandaria::TheJadeForest::spell_rappelling_rope::HandleHitTarget(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::HandleStartEvent(), spell_halion_damage_aoe_summon::HandleSummon(), spell_putricide_mutated_transformation::HandleSummon(), spell_summon_battle_pet::HandleSummon(), spell_sha_healing_rain::InitializeVisualStalker(), npc_halion_controller::JustAppeared(), boss_devourer_of_souls::JustDied(), boss_ossirian::boss_ossirianAI::JustEngagedWith(), boss_devourer_of_souls::JustEngagedWith(), go_strange_pool::OnGossipHello(), battleground_deephaul_ravine::OnInit(), battleground_silvershard_mines::OnInit(), 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(), SmartScript::ProcessAction(), 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(), npc_bg_seething_shore_air_supply_ground_dummy::SpawnAirSupplyParachute(), battleground_silvershard_mines::SpawnEasternMineCart(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnEscapeEvent(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SpawnInfiniteCorruptor(), battleground_silvershard_mines::SpawnNorthernMineCart(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), battleground_silvershard_mines::SpawnSouthernMineCart(), 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 1362 of file Object.cpp.
References TempSummonData::entry, GetId(), TempSummonData::pos, SummonCreature(), SummonCreatureGroup(), SUMMONER_TYPE_MAP, and TempSummonData::time.
Referenced by SummonCreatureGroup().
| void Map::SwitchGridContainers | ( | Creature * | obj, |
| bool | on | ||
| ) |
Definition at line 219 of file Map.cpp.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddGridObject(), Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddWorldObject(), AddWorldObject(), ASSERT, Cell::CellX(), Cell::CellY(), Trinity::ComputeCellCoord(), Cell::data, NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridType(), BaseEntity::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 | ( | T * | obj, |
| bool | on | ||
| ) |
|
inline |
Definition at line 498 of file Map.h.
Referenced by WorldObject::FindZoneScript(), ForEachMapScript(), AuraEffect::HandleBattlegroundPlayerPosition(), Unit::Kill(), Player::LoadFromDB(), Condition::Meets(), condition_is_shadow_sight_enabled::OnConditionCheck(), and condition_enigma_arena_collision_doors::OnConditionCheck().
|
inline |
|
inline |
Definition at line 495 of file Map.h.
Referenced by instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), Player::CheckInstanceValidity(), SpellInfo::CheckTarget(), Player::ConfirmPendingBind(), Group::Create(), MapManager::CreateMap(), TransportMgr::CreateTransport(), MapManager::FindInstanceIdForPlayer(), WorldObject::FindZoneScript(), ForEachMapScript(), Player::GetInstanceEntrance(), instance_commandscript::HandleInstanceGetBossStateCommand(), instance_commandscript::HandleInstanceSetBossStateCommand(), InstanceHasScript(), Player::LoadFromDB(), InstanceScenario::LoadInstanceData(), Condition::Meets(), CriteriaHandler::RequirementsSatisfied(), Player::ResetInstances(), and at_stratholme_service_entrance::TryHandleOnce().
|
inline |
| void Map::UnloadAll | ( | ) |
Definition at line 1662 of file Map.cpp.
References _corpseBones, _corpsesByGrid, _corpsesByPlayer, _creaturesToMove, _gameObjectsToMove, _transports, RefManager< GridReference< OBJECT > >::end(), and UnloadGrid().
Referenced by MapManager::DestroyMap(), and Battleground::~Battleground().
|
private |
Definition at line 2163 of file Map.cpp.
References _creatureRespawnTimesBySpawnId, _gameObjectRespawnTimesBySpawnId, and _respawnTimes.
Referenced by ~Map().
| bool Map::UnloadGrid | ( | NGridType & | ngrid, |
| bool | pForce | ||
| ) |
Definition at line 1577 of file Map.cpp.
References ActiveObjectsNearGrid(), ASSERT, GetId(), GetMultiPersonalPhaseTracker(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getX(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::getY(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::HasWorldObjectsInNGrid(), i_objectsToRemove, m_terrain, MAX_NUMBER_OF_GRIDS, MoveAllAreaTriggersInMoveList(), MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), RemoveAllObjectsInRemoveList(), setNGrid(), TC_LOG_DEBUG, MultiPersonalPhaseTracker::UnloadGrid(), and NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::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 BattlegroundMap, and InstanceMap.
Definition at line 663 of file Map.cpp.
References _dynamicTree, _infiniteAOIVignettes, _respawnCheckTimer, _transports, _transportsUpdateIter, _vignetteUpdateTimer, _weatherUpdateTimer, _zoneDynamicInfo, RefManager< ReferenceType >::begin(), Vignettes::CanSee(), CONFIG_RESPAWN_MINCHECKINTERVALMS, LinkedListHead::empty(), RefManager< ReferenceType >::end(), Unit::GetAppliedAuras(), Unit::GetCombatManager(), GetCreature(), GetId(), GetInstanceId(), IntervalTimer::GetInterval(), WorldLocation::GetMapId(), GetMultiPersonalPhaseTracker(), GetObjectsStore(), CombatManager::GetPvECombatRefs(), WorldPackets::Packet::GetRawPacket(), Player::GetSession(), Player::GetViewpoint(), GetVisibilityRange(), i_scriptLock, Unit::IsInCombat(), BaseEntity::IsInWorld(), m_activeNonPlayers, m_activeNonPlayersIter, m_mapRefIter, m_mapRefManager, m_mmapTileRebuilder, m_scriptSchedule, Unit::m_SummonSlot, MoveAllAreaTriggersInMoveList(), MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), IntervalTimer::Passed(), ProcessRelocationNotifies(), ProcessRespawns(), IntervalTimer::Reset(), resetMarkedCells(), ScriptsProcess(), SendObjectUpdates(), sScriptMgr, sWorld, TC_METRIC_TAG, TC_METRIC_VALUE, Object::ToCreature(), TYPEID_PLAYER, PeriodicTimer::Update(), MultiPersonalPhaseTracker::Update(), IntervalTimer::Update(), DynamicMapTree::update(), WorldObject::Update(), WorldSession::Update(), Player::Update(), WorldPackets::Vignette::VignetteUpdate::Updated, UpdateSpawnGroupConditions(), VisitNearbyCellsOf(), and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by MapUpdateRequest::call(), BattlegroundMap::Update(), and InstanceMap::Update().
| void Map::UpdateAreaDependentAuras | ( | ) |
Definition at line 4105 of file Map.cpp.
References RefManager< ReferenceType >::begin(), RefManager< ReferenceType >::end(), and GetPlayers().
Referenced by battleground_strand_of_the_ancients::EndRound(), and battleground_isle_of_conquest::HandleCapturedNodes().
| void Map::UpdateIteratorBack | ( | Player * | player | ) |
Definition at line 3644 of file Map.cpp.
References Player::GetMapRef(), and m_mapRefIter.
Referenced by Player::ResetMap().
| void Map::UpdatePersonalPhasesForPlayer | ( | Player const * | player | ) |
Definition at line 431 of file Map.cpp.
References Trinity::ComputeGridCoord(), GetMultiPersonalPhaseTracker(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), MultiPersonalPhaseTracker::OnOwnerPhaseChanged(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Player::OnPhaseChange().
Definition at line 648 of file Map.cpp.
References _zonePlayerCountMap, ASSERT, and MAP_INVALID_ZONE.
Referenced by Player::UpdateZone().
| void Map::UpdateSpawnGroupConditions | ( | ) |
Definition at line 2516 of file Map.cpp.
References ASSERT_NOTNULL, CONDITION_SOURCE_TYPE_SPAWN_GROUP, SpawnGroupTemplateData::flags, GetId(), GetSpawnGroupData(), IsSpawnGroupActive(), sConditionMgr, SetSpawnGroupInactive(), sObjectMgr, SPAWNGROUP_FLAG_DESPAWN_ON_CONDITION_FAILURE, SPAWNGROUP_FLAG_MANUAL_SPAWN, SpawnGroupDespawn(), and SpawnGroupSpawn().
Referenced by battleground_alterac_valley::EventPlayerAssaultsPoint(), battleground_alterac_valley::EventPlayerDefendsPoint(), battleground_alterac_valley::EventPlayerDestroyedPoint(), battleground_temple_of_kotmogu::OnFlagDropped(), battleground_temple_of_kotmogu::OnFlagTaken(), battleground_isle_of_conquest::OnPlayerInteractWithBanner(), battleground_strand_of_the_ancients::ProcessEvent(), battleground_strand_of_the_ancients::ResetObjs(), GameObjectType::ControlZone::TriggerEvent(), Update(), and GameObject::UpdateCapturePoint().
|
inline |
Definition at line 958 of file Map.h.
References Cell::CellX(), Cell::CellY(), getNGrid(), Cell::GridX(), Cell::GridY(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::isGridObjectDataLoaded(), and NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::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 620 of file Map.cpp.
References Cell::CalculateCellArea(), WorldObject::GetGridActivationRange(), Position::GetPositionX(), Position::GetPositionY(), CellArea::high_bound, isCellMarked(), Position::IsPositionValid(), CellArea::low_bound, markCell(), TOTAL_NUMBER_OF_CELLS_PER_MAP, Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
|
friend |
|
friend |
|
private |
|
private |
Definition at line 628 of file Map.h.
Referenced by AddAreaTriggerToMoveList(), and MoveAllAreaTriggersInMoveList().
|
private |
Definition at line 627 of file Map.h.
Referenced by AddAreaTriggerToMoveList(), MoveAllAreaTriggersInMoveList(), and RemoveAreaTriggerFromMoveList().
|
private |
Definition at line 828 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
Definition at line 826 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), and UnloadAll().
|
private |
Definition at line 827 of file Map.h.
Referenced by AddCorpse(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().
|
private |
Definition at line 823 of file Map.h.
Referenced by CheckRespawn(), and ScriptsProcess().
|
private |
Definition at line 778 of file Map.h.
Referenced by GetRespawnInfo(), and UnloadAllRespawnInfos().
|
private |
Definition at line 619 of file Map.h.
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and UnloadAll().
|
private |
Definition at line 618 of file Map.h.
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and RemoveCreatureFromMoveList().
|
private |
Definition at line 625 of file Map.h.
Referenced by AddDynamicObjectToMoveList(), and MoveAllDynamicObjectsInMoveList().
|
private |
Definition at line 624 of file Map.h.
Referenced by AddDynamicObjectToMoveList(), MoveAllDynamicObjectsInMoveList(), and RemoveDynamicObjectFromMoveList().
|
protected |
Definition at line 657 of file Map.h.
Referenced by GetAreaId(), GetFullTerrainStatusForPosition(), getObjectHitPos(), GetWaterOrGroundLevel(), GetZoneAndAreaId(), GetZoneId(), isInLineOfSight(), and Update().
|
private |
Definition at line 832 of file Map.h.
Referenced by AddFarSpellCallback(), and DelayedUpdate().
|
private |
Definition at line 824 of file Map.h.
Referenced by CheckRespawn().
|
private |
Definition at line 779 of file Map.h.
Referenced by GetRespawnInfo(), and UnloadAllRespawnInfos().
|
private |
Definition at line 622 of file Map.h.
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and UnloadAll().
|
private |
Definition at line 621 of file Map.h.
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and RemoveGameObjectFromMoveList().
|
private |
Definition at line 820 of file Map.h.
Referenced by GetGuidSequenceGenerator().
|
private |
Definition at line 864 of file Map.h.
Referenced by AddInfiniteAOIVignette(), RemoveInfiniteAOIVignette(), and Update().
|
private |
|
private |
Definition at line 822 of file Map.h.
Referenced by GetAreaTrigger(), GetConversation(), GetCorpse(), GetCreature(), GetDynamicObject(), GetGameObject(), GetPet(), and GetSceneObject().
|
private |
|
private |
|
private |
Definition at line 777 of file Map.h.
Referenced by AddRespawnInfo(), DeleteRespawnInfo(), ProcessRespawns(), Respawn(), and UnloadAllRespawnInfos().
|
private |
Definition at line 810 of file Map.h.
Referenced by IsSpawnGroupActive(), and SetSpawnGroupActive().
|
protected |
Definition at line 671 of file Map.h.
Referenced by AddToMap(), RemoveFromMap(), SendInitTransports(), SendRemoveTransports(), SendUpdateTransportVisibility(), UnloadAll(), and Update().
|
protected |
Definition at line 672 of file Map.h.
Referenced by RemoveFromMap(), and Update().
|
private |
Definition at line 830 of file Map.h.
Referenced by SendObjectUpdates().
|
private |
|
private |
|
private |
Definition at line 853 of file Map.h.
Referenced by GetWorldStateValue(), Map(), and SetWorldStateValue().
|
private |
Definition at line 815 of file Map.h.
Referenced by GetOrGenerateZoneDefaultWeather(), GetZoneWeather(), SendZoneDynamicInfo(), SendZoneWeather(), SetZoneMusic(), SetZoneOverrideLight(), SetZoneWeather(), and Update().
Definition at line 813 of file Map.h.
Referenced by ApplyDynamicModeRespawnScaling(), and UpdatePlayerZoneStats().
| std::unordered_map<ObjectGuid::LowType , CreatureGroup*> Map::CreatureGroupHolder |
Definition at line 429 of file Map.h.
Referenced by FormationMgr::AddCreatureToGroup(), and FormationMgr::RemoveCreatureFromGroup().
|
private |
Definition at line 685 of file Map.h.
Referenced by EnsureGridCreated().
|
private |
Definition at line 691 of file Map.h.
Referenced by setNGrid().
|
protected |
Definition at line 653 of file Map.h.
Referenced by InstanceMap::CreateInstanceData(), EnsureGridCreated(), and EnsureGridLoaded().
|
protected |
Definition at line 651 of file Map.h.
Referenced by GetEntrancePos(), GetId(), GetMapName(), Instanceable(), IsBattleArena(), IsBattleground(), IsBattlegroundOrArena(), IsDungeon(), IsGarrison(), IsNonRaidDungeon(), IsRaid(), IsScenario(), and IsWorldMap().
|
private |
Definition at line 699 of file Map.h.
Referenced by AddObjectToRemoveList(), RemoveAllObjectsInRemoveList(), and UnloadGrid().
|
private |
Definition at line 700 of file Map.h.
Referenced by AddObjectToSwitchList(), and RemoveAllObjectsInRemoveList().
|
private |
Definition at line 698 of file Map.h.
Referenced by ScriptCommandStart(), ScriptsStart(), and Update().
|
protected |
Definition at line 652 of file Map.h.
Referenced by Is25ManRaid(), IsHeroic(), IsLFR(), IsMythic(), IsMythicPlus(), IsNormal(), and IsTimewalking().
|
private |
Definition at line 701 of file Map.h.
Referenced by AddWorldObject(), RemoveWorldObject(), and ~Map().
|
protected |
Definition at line 666 of file Map.h.
Referenced by ActiveObjectsNearGrid(), AddToActive(), RemoveFromActive(), and Update().
|
protected |
Definition at line 667 of file Map.h.
Referenced by RemoveFromActive(), and Update().
|
protected |
Definition at line 661 of file Map.h.
Referenced by Update(), and UpdateIteratorBack().
|
protected |
Definition at line 660 of file Map.h.
Referenced by ActiveObjectsNearGrid(), AddInfiniteAOIVignette(), GetPlayersCountExceptGMs(), RemoveAllPlayers(), BattlegroundMap::RemoveAllPlayers(), RemoveInfiniteAOIVignette(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), SendToPlayers(), SetWorldStateValue(), MapReference::sourceObjectDestroyLink(), MapReference::targetObjectBuildLink(), MapReference::targetObjectDestroyLink(), Update(), InstanceMap::UpdateInstanceLock(), and InstanceMap::UpdateInstanceLock().
|
protected |
Definition at line 658 of file Map.h.
Referenced by Map(), RequestRebuildNavMeshOnGameObjectModelChange(), and Update().
|
private |
Definition at line 704 of file Map.h.
Referenced by ScriptCommandStart(), ScriptsProcess(), ScriptsStart(), Update(), and ~Map().
|
private |
Definition at line 687 of file Map.h.
Referenced by EnsureGridCreated(), GetAreaId(), GetFullTerrainStatusForPosition(), GetGridHeight(), GetLiquidStatus(), GetMinHeight(), GetStaticHeight(), GetWaterLevel(), GetWaterOrGroundLevel(), GetZoneAndAreaId(), GetZoneId(), isInLineOfSight(), IsInWater(), IsUnderWater(), Map(), RequestRebuildNavMeshOnGameObjectModelChange(), UnloadGrid(), and ~Map().
|
protected |
Definition at line 655 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::InstanceMap(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), and BattlegroundMap::SetUnload().
|
protected |
Definition at line 663 of file Map.h.
Referenced by InitVisibilityDistance(), GarrisonMap::InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), BattlegroundMap::InitVisibilityDistance(), and ProcessRelocationNotifies().
|
protected |
Definition at line 656 of file Map.h.
Referenced by InitVisibilityDistance(), GarrisonMap::InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), and BattlegroundMap::InitVisibilityDistance().
|
protected |
|
private |