![]() |
TrinityCore
|
#include <Map.h>
Inheritance diagram for InstanceMap:Public Member Functions | |
| InstanceMap (uint32 id, time_t, uint32 InstanceId, Difficulty SpawnMode, TeamId InstanceTeam, InstanceLock *instanceLock, Optional< uint32 > lfgDungeonsId) | |
| ~InstanceMap () | |
| bool | AddPlayerToMap (Player *player, bool initPlayer=true) override |
| void | RemovePlayerFromMap (Player *, bool) override |
| void | Update (uint32) override |
| void | CreateInstanceData () |
| InstanceResetResult | Reset (InstanceResetMethod method) |
| uint32 | GetScriptId () const |
| std::string const & | GetScriptName () const |
| InstanceScript * | GetInstanceScript () |
| InstanceScript const * | GetInstanceScript () const |
| InstanceScenario * | GetInstanceScenario () |
| InstanceScenario const * | GetInstanceScenario () const |
| void | SetInstanceScenario (InstanceScenario *scenario) |
| InstanceLock const * | GetInstanceLock () const |
| void | UpdateInstanceLock (UpdateBossStateSaveDataEvent const &updateSaveDataEvent) |
| void | UpdateInstanceLock (UpdateAdditionalSaveDataEvent const &updateSaveDataEvent) |
| void | CreateInstanceLockForPlayer (Player *player) |
| TransferAbortParams | CannotEnter (Player *player) override |
| uint32 | GetMaxPlayers () const |
| TeamId | GetTeamIdInInstance () const |
| Team | GetTeamInInstance () const |
| Optional< uint32 > | GetLfgDungeonsId () const |
| virtual void | InitVisibilityDistance () override |
| Group * | GetOwningGroup () const |
| void | TrySetOwningGroup (Group *group) |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from Map | |
| Map (uint32 id, time_t, uint32 InstanceId, Difficulty SpawnMode) | |
| virtual | ~Map () |
| MapEntry const * | GetEntry () const |
| bool | CanUnload (uint32 diff) |
| 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) |
| float | GetVisibilityRange () const |
| 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) |
| 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 |
| 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 () |
Private Attributes | |
| Optional< SystemTimePoint > | i_instanceExpireEvent |
| InstanceScript * | i_data |
| uint32 | i_script_id |
| std::unique_ptr< InstanceScenario > | i_scenario |
| InstanceLock * | i_instanceLock |
| GroupInstanceReference | i_owningGroupRef |
| Optional< uint32 > | i_lfgDungeonsId |
Additional Inherited Members | |
Public Types inherited from Map | |
| 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 |
Static Public Member Functions inherited from Map | |
| 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 inherited from Map | |
| std::unordered_map< ObjectGuid::LowType, CreatureGroup * > | CreatureGroupHolder |
Protected Types inherited from Map | |
| typedef std::set< WorldObject * > | ActiveNonPlayers |
| typedef std::set< Transport * > | TransportsContainer |
Protected Member Functions inherited from Map | |
| 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 inherited from Map | |
| 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 |
| InstanceMap::InstanceMap | ( | uint32 | id, |
| time_t | expiry, | ||
| uint32 | InstanceId, | ||
| Difficulty | SpawnMode, | ||
| TeamId | InstanceTeam, | ||
| InstanceLock * | instanceLock, | ||
| Optional< uint32 > | lfgDungeonsId | ||
| ) |
Definition at line 2868 of file Map.cpp.
References CONFIG_INSTANCE_UNLOAD_DELAY, InstanceLock::GetExpiryTime(), i_instanceExpireEvent, i_instanceLock, InitVisibilityDistance(), Map::m_unloadTimer, MIN_UNLOAD_DELAY, InstanceLock::SetInUse(), WorldStateMgr::SetValue(), sWorld, TEAM_ALLIANCE, TEAM_HORDE, WS_TEAM_IN_INSTANCE_ALLIANCE, and WS_TEAM_IN_INSTANCE_HORDE.
| InstanceMap::~InstanceMap | ( | ) |
Definition at line 2890 of file Map.cpp.
References i_data, i_instanceLock, and InstanceLock::SetInUse().
|
overridevirtual |
Reimplemented from Map.
Definition at line 2951 of file Map.cpp.
References WorldSession::AddInstanceEnterTime(), Map::AddPlayerToMap(), InstanceLockData::CompletedEncountersMask, WorldPackets::Instance::PendingRaidLock::CompletedMask, WorldPackets::Instance::PendingRaidLock::Extending, InstanceLock::GetData(), Map::GetEntry(), BaseEntity::GetGUID(), Map::GetInstanceId(), Map::GetMapDifficulty(), Map::GetMapName(), WorldObject::GetName(), Player::GetSession(), GameTime::GetSystemTime(), i_data, i_instanceLock, i_scenario, InstanceLock::IsExpired(), InstanceLock::IsExtended(), InstanceLock::IsNew(), Map::m_unloadTimer, InstanceScript::OnPlayerEnter(), WorldSession::SendPacket(), Player::SetPendingBind(), sInstanceLockMgr, TC_LOG_DEBUG, WorldPackets::Instance::PendingRaidLock::TimeUntilLock, WorldPackets::Instance::PendingRaidLock::WarningOnly, and WorldPackets::Instance::PendingRaidLock::Write().
|
overridevirtual |
Reimplemented from Map.
Definition at line 2908 of file Map.cpp.
References ABORT, Map::CannotEnter(), Map::GetDifficultyID(), BaseEntity::GetGUID(), Map::GetId(), Map::GetInstanceId(), GetInstanceScript(), Map::GetMapName(), Player::GetMapRef(), GetMaxPlayers(), WorldObject::GetName(), GetOwningGroup(), Map::GetPlayersCountExceptGMs(), Reference< TO, FROM, Derived >::getTarget(), i_instanceLock, Player::IsGameMaster(), Player::IsInGroup(), Player::IsLoading(), Map::IsRaid(), sInstanceLockMgr, TC_LOG_ERROR, TC_LOG_WARN, ObjectGuid::ToString(), TRANSFER_ABORT_ERROR, TRANSFER_ABORT_MAX_PLAYERS, TRANSFER_ABORT_NONE, and TRANSFER_ABORT_ZONE_IN_COMBAT.
| void InstanceMap::CreateInstanceData | ( | ) |
Definition at line 3030 of file Map.cpp.
References InstanceScript::Create(), InstanceLockData::Data, InstanceLockData::EntranceWorldSafeLocId, Map::GetEntry(), Map::GetId(), InstanceLock::GetInstanceInitializationData(), Map::GetMapDifficulty(), i_data, Map::i_InstanceId, i_instanceLock, i_owningGroupRef, i_script_id, InstanceLock::IsNew(), Map::IsRaid(), Reference< TO, FROM, Derived >::isValid(), InstanceScript::Load(), InstanceTemplate::ScriptId, InstanceScript::SetEntranceLocation(), sObjectMgr, sScriptMgr, and TC_LOG_DEBUG.
| void InstanceMap::CreateInstanceLockForPlayer | ( | Player * | player | ) |
Definition at line 3259 of file Map.cpp.
References CharacterDatabase, InstanceLockData::CompletedEncountersMask, InstanceLock::GetData(), Map::GetEntry(), BaseEntity::GetGUID(), Map::GetInstanceId(), Map::GetMapDifficulty(), InstanceScript::GetSaveData(), Player::GetSession(), WorldPackets::Instance::InstanceSaveCreated::Gm, i_data, i_instanceLock, InstanceLock::IsExpired(), Player::IsGameMaster(), InstanceLock::IsNew(), WorldSession::SendCalendarRaidLockoutAdded(), Player::SendDirectMessage(), sInstanceLockMgr, and WorldPackets::Instance::InstanceSaveCreated::Write().
Referenced by Player::ConfirmPendingBind().
|
overridevirtual |
Reimplemented from Map.
Definition at line 4130 of file Map.cpp.
References Map::GetDebugInfo(), GetScriptId(), and GetScriptName().
|
inline |
Definition at line 900 of file Map.h.
Referenced by MapManager::CreateMap(), and MapManager::FindInstanceIdForPlayer().
|
inline |
|
inline |
|
inline |
Definition at line 895 of file Map.h.
Referenced by CannotEnter(), instance_commandscript::HandleInstanceGetBossStateCommand(), instance_commandscript::HandleInstanceSetBossStateCommand(), Player::LoadFromDB(), and InstanceScenario::LoadInstanceData().
|
inline |
| uint32 InstanceMap::GetMaxPlayers | ( | ) | const |
Definition at line 3432 of file Map.cpp.
References Map::GetEntry(), Map::GetMapDifficulty(), MapEntry::MaxPlayers, and MapDifficultyEntry::MaxPlayers.
Referenced by CannotEnter(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckAchievementCriteriaMeet(), and CriteriaHandler::RequirementsSatisfied().
|
inline |
Definition at line 913 of file Map.h.
Referenced by CannotEnter(), and Player::CheckInstanceValidity().
|
inline |
Definition at line 893 of file Map.h.
Referenced by ScriptMgr::CreateInstanceData(), and GetDebugInfo().
| std::string const & InstanceMap::GetScriptName | ( | ) | const |
Definition at line 3141 of file Map.cpp.
References i_script_id, and sObjectMgr.
Referenced by GetDebugInfo().
| TeamId InstanceMap::GetTeamIdInInstance | ( | ) | const |
Definition at line 3441 of file Map.cpp.
References WorldStateMgr::GetValue(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, WS_TEAM_IN_INSTANCE_ALLIANCE, and WS_TEAM_IN_INSTANCE_HORDE.
Referenced by instance_ulduar::instance_ulduar_InstanceMapScript::instance_ulduar_InstanceMapScript(), boss_hodir::JustAppeared(), and InstanceScript::UpdateSpawnGroups().
|
inline |
Definition at line 908 of file Map.h.
References ALLIANCE, HORDE, and TEAM_ALLIANCE.
Referenced by boss_lord_stormsong::DoAction(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::GetCreatureEntry(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::GetCreatureEntry(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::GetCreatureEntry(), instance_nexus::instance_nexus_InstanceMapScript::GetCreatureEntry(), instance_ulduar::instance_ulduar_InstanceMapScript::GetCreatureEntry(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::GetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetData(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::GetData(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::GetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetGameObjectEntry(), boss_aqusirr::JustDied(), boss_lord_stormsong::JustDied(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), at_waycrest_manor_organ_missiles::OnRemove(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::SetBossState(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SetData(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnEscapeEvent(), and instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnGunship().
|
overridevirtual |
Reimplemented from Map.
Definition at line 2898 of file Map.cpp.
References CONFIG_MAX_VISIBILITY_DISTANCE_INSTANCE, CONFIG_VISIBILITY_NOTIFY_PERIOD_INSTANCE, Map::m_VisibilityNotifyPeriod, Map::m_VisibleDistance, and sWorld.
Referenced by InstanceMap().
|
overridevirtual |
Reimplemented from Map.
Definition at line 3013 of file Map.cpp.
References CONFIG_INSTANCE_UNLOAD_DELAY, Map::GetInstanceId(), Map::GetMapName(), WorldObject::GetName(), i_data, i_instanceLock, i_scenario, InstanceLock::IsExpired(), Map::m_mapRefManager, Map::m_unloadTimer, MIN_UNLOAD_DELAY, InstanceScript::OnPlayerLeave(), Map::RemovePlayerFromMap(), LinkedListHead::size(), sWorld, and TC_LOG_DEBUG.
| InstanceResetResult InstanceMap::Reset | ( | InstanceResetMethod | method | ) |
Definition at line 3078 of file Map.cpp.
References CannotReset, InstanceLockData::CompletedEncountersMask, WorldPackets::Instance::PendingRaidLock::CompletedMask, WorldPackets::Instance::RaidInstanceMessage::DifficultyID, Expire, WorldPackets::Instance::PendingRaidLock::Extending, InstanceLock::GetData(), Map::GetDifficultyID(), Map::GetEntry(), Map::GetId(), Map::GetInstanceId(), WorldPackets::Packet::GetRawPacket(), Map::HavePlayers(), i_data, i_instanceLock, MapEntry::IsFlexLocking(), InstanceLock::IsNew(), Map::m_mapRefManager, Map::m_unloadTimer, Manual, WorldPackets::Instance::RaidInstanceMessage::MapID, MIN_UNLOAD_DELAY, NotEmpty, OnChangeDifficulty, RAID_INSTANCE_EXPIRED, Success, WorldPackets::Instance::PendingRaidLock::TimeUntilLock, WorldPackets::Instance::RaidInstanceMessage::Type, WorldPackets::Instance::PendingRaidLock::WarningOnly, WorldPackets::Instance::PendingRaidLock::Write(), and WorldPackets::Instance::RaidInstanceMessage::Write().
Referenced by Group::ResetInstances(), and Update().
| void InstanceMap::SetInstanceScenario | ( | InstanceScenario * | scenario | ) |
Definition at line 3146 of file Map.cpp.
References Map::DoOnPlayers(), i_scenario, InstanceScenario::LoadInstanceData(), and Scenario::OnPlayerEnter().
| void InstanceMap::TrySetOwningGroup | ( | Group * | group | ) |
Definition at line 3069 of file Map.cpp.
References i_owningGroupRef, Reference< TO, FROM, Derived >::isValid(), and Reference< TO, FROM, Derived >::link().
|
overridevirtual |
Reimplemented from Map.
Definition at line 2993 of file Map.cpp.
References Expire, Map::GetEntry(), Map::GetMapDifficulty(), GameTime::GetSystemTime(), i_data, i_instanceExpireEvent, i_scenario, Reset(), sInstanceLockMgr, InstanceScript::Update(), Map::Update(), and InstanceScript::UpdateCombatResurrection().
| void InstanceMap::UpdateInstanceLock | ( | UpdateAdditionalSaveDataEvent const & | updateSaveDataEvent | ) |
Definition at line 3213 of file Map.cpp.
References CharacterDatabase, InstanceLockData::CompletedEncountersMask, InstanceLockData::Data, InstanceLock::GetData(), Map::GetEntry(), BaseEntity::GetGUID(), Map::GetInstanceId(), Map::GetMapDifficulty(), InstanceScript::GetSaveData(), Player::GetSession(), WorldPackets::Instance::InstanceSaveCreated::Gm, i_data, i_instanceLock, InstanceLock::IsExpired(), Player::IsGameMaster(), InstanceLock::IsNew(), Map::m_mapRefManager, WorldSession::SendCalendarRaidLockoutAdded(), Player::SendDirectMessage(), sInstanceLockMgr, InstanceScript::UpdateAdditionalSaveData(), and WorldPackets::Instance::InstanceSaveCreated::Write().
| void InstanceMap::UpdateInstanceLock | ( | UpdateBossStateSaveDataEvent const & | updateSaveDataEvent | ) |
Definition at line 3163 of file Map.cpp.
References DungeonEncounterEntry::Bit, CharacterDatabase, InstanceLockData::CompletedEncountersMask, InstanceLockData::Data, UpdateBossStateSaveDataEvent::DungeonEncounter, InstanceLock::GetData(), InstanceScript::GetEntranceLocationForCompletedEncounters(), Map::GetEntry(), BaseEntity::GetGUID(), Map::GetInstanceId(), Map::GetMapDifficulty(), InstanceScript::GetSaveData(), Player::GetSession(), WorldPackets::Instance::InstanceSaveCreated::Gm, i_data, i_instanceLock, InstanceLock::IsExpired(), Player::IsGameMaster(), InstanceLock::IsNew(), Map::m_mapRefManager, WorldSession::SendCalendarRaidLockoutAdded(), Player::SendDirectMessage(), sInstanceLockMgr, InstanceScript::UpdateBossStateSaveData(), and WorldPackets::Instance::InstanceSaveCreated::Write().
Referenced by PersistentInstanceScriptValueBase::NotifyValueChanged(), and InstanceScript::SetBossState().
|
private |
Definition at line 919 of file Map.h.
Referenced by AddPlayerToMap(), CreateInstanceData(), CreateInstanceLockForPlayer(), RemovePlayerFromMap(), Reset(), Update(), UpdateInstanceLock(), UpdateInstanceLock(), and ~InstanceMap().
|
private |
Definition at line 918 of file Map.h.
Referenced by InstanceMap(), and Update().
|
private |
Definition at line 922 of file Map.h.
Referenced by AddPlayerToMap(), CannotEnter(), CreateInstanceData(), CreateInstanceLockForPlayer(), InstanceMap(), RemovePlayerFromMap(), Reset(), UpdateInstanceLock(), UpdateInstanceLock(), and ~InstanceMap().
|
private |
Definition at line 923 of file Map.h.
Referenced by CreateInstanceData(), and TrySetOwningGroup().
|
private |
Definition at line 921 of file Map.h.
Referenced by AddPlayerToMap(), RemovePlayerFromMap(), SetInstanceScenario(), and Update().
|
private |
Definition at line 920 of file Map.h.
Referenced by CreateInstanceData(), and GetScriptName().