|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Map.h>
Public Member Functions | |
| bool | AddPlayerToMap (Player *) OVERRIDE |
| bool | CanEnter (Player *player) OVERRIDE |
| void | CreateInstanceData (bool load) |
| InstanceScript * | GetInstanceScript () |
| uint32 | GetMaxPlayers () const |
| uint32 | GetMaxResetDelay () const |
| uint32 | GetScriptId () const |
| virtual void | InitVisibilityDistance () OVERRIDE |
| InstanceMap (uint32 id, time_t, uint32 InstanceId, uint8 SpawnMode, Map *_parent) | |
| void | PermBindAllPlayers (Player *source) |
| void | RemovePlayerFromMap (Player *, bool) OVERRIDE |
| bool | Reset (InstanceResetMethod method) |
| void | SendResetWarnings (uint32 timeLeft) const |
| void | SetResetSchedule (bool on) |
| void | UnloadAll () OVERRIDE |
| void | Update (const uint32) OVERRIDE |
| ~InstanceMap () | |
| Public Member Functions inherited from Map | |
| bool | ActiveObjectsNearGrid (NGridType const &ngrid) const |
| void | AddObjectToRemoveList (WorldObject *obj) |
| void | AddObjectToSwitchList (WorldObject *obj, bool on) |
| template<> | |
| void | AddToActive (Creature *c) |
| template<> | |
| void | AddToActive (DynamicObject *d) |
| template<class T> | |
| void | AddToActive (T *obj) |
| template<> | |
| void | AddToGrid (Creature *obj, Cell const &cell) |
| template<> | |
| void | AddToGrid (GameObject *obj, Cell const &cell) |
| template<class T> | |
| bool | AddToMap (T *) |
| template<> | |
| bool | AddToMap (Transport *obj) |
| void | AddWorldObject (WorldObject *obj) |
| void | Balance () |
| bool | CanUnload (uint32 diff) |
| bool | CheckGridIntegrity (Creature *c, bool moved) const |
| bool | ContainsGameObjectModel (const GameObjectModel &model) const |
| void | CreatureRelocation (Creature *creature, float x, float y, float z, float ang, bool respawnRelocationOnFail=true) |
| bool | CreatureRespawnRelocation (Creature *c, bool diffGridOnly) |
| virtual void | DelayedUpdate (const uint32 diff) |
| template<> | |
| void | DeleteFromWorld (Player *player) |
| void | DeleteRespawnTimes () |
| void | GameObjectRelocation (GameObject *go, float x, float y, float z, float orientation, bool respawnRelocationOnFail=true) |
| bool | GameObjectRespawnRelocation (GameObject *go, bool diffGridOnly) |
| uint16 | GetAreaFlag (float x, float y, float z, bool *isOutdoors=0) const |
| uint32 | GetAreaId (float x, float y, float z) const |
| bool | GetAreaInfo (float x, float y, float z, uint32 &mogpflags, int32 &adtId, int32 &rootId, int32 &groupId) const |
| Creature * | GetCreature (uint64 guid) |
| time_t | GetCreatureRespawnTime (uint32 dbGuid) const |
| DifficultyID | GetDifficulty () const |
| DynamicObject * | GetDynamicObject (uint64 guid) |
| bool | GetEntrancePos (int32 &mapid, float &x, float &y) |
| MapEntry const * | GetEntry () const |
| GameObject * | GetGameObject (uint64 guid) |
| time_t | GetGORespawnTime (uint32 dbGuid) const |
| time_t | GetGridExpiry (void) const |
| float | GetHeight (float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| float | GetHeight (uint32 phasemask, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| uint32 | GetId (void) const |
| uint32 | GetInstanceId () const |
| time_t | GetLinkedRespawnTime (uint64 guid) const |
| ZLiquidStatus | getLiquidStatus (float x, float y, float z, uint8 ReqLiquidType, LiquidData *data=0) const |
| MapDifficulty const * | GetMapDifficulty () const |
| const char * | GetMapName () const |
| bool | getObjectHitPos (uint32 phasemask, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float modifyDist) |
| virtual uint32 | GetOwnerGuildId (uint32=TEAM_OTHER) const |
| Map const * | GetParent () const |
| PlayerList const & | GetPlayers () const |
| uint32 | GetPlayersCountExceptGMs () const |
| uint8 | GetSpawnMode () const |
| uint8 | GetTerrainType (float x, float y) const |
| Transport * | GetTransport (uint64 guid) |
| bool | GetUnloadLock (const GridCoord &p) const |
| float | GetVisibilityRange () const |
| float | GetWaterLevel (float x, float y) const |
| float | GetWaterOrGroundLevel (float x, float y, float z, float *ground=NULL, bool swim=false) const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid, float x, float y, float z) const |
| uint32 | GetZoneId (float x, float y, float z) const |
| bool | HavePlayers () const |
| template<> | |
| void | InitializeObject (Creature *obj) |
| template<> | |
| void | InitializeObject (GameObject *obj) |
| void | InsertGameObjectModel (const GameObjectModel &model) |
| bool | Instanceable () const |
| bool | Is25ManRaid () const |
| bool | IsBattleArena () const |
| bool | IsBattleground () const |
| bool | IsBattlegroundOrArena () const |
| bool | isCellMarked (uint32 pCellId) |
| bool | IsDungeon () const |
| bool | IsGridLoaded (float x, float y) const |
| bool | IsHeroic () const |
| bool | isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask) const |
| bool | IsInstance () const |
| bool | IsInWater (float x, float y, float z, LiquidData *data=0) const |
| bool | IsNonRaidInstance () const |
| bool | IsOutdoors (float x, float y, float z) const |
| bool | IsRaid () const |
| bool | IsRaidOrHeroicDungeon () const |
| bool | IsRegularDifficulty () const |
| bool | IsRemovalGrid (float x, float y) const |
| bool | IsScenario () const |
| bool | IsUnderWater (float x, float y, float z) const |
| void | LoadGrid (float x, float y) |
| void | LoadRespawnTimes () |
| Map (uint32 id, time_t, uint32 InstanceId, uint8 SpawnMode, Map *_parent=NULL) | |
| void | markCell (uint32 pCellId) |
| void | MoveAllCreaturesInMoveList () |
| void | MoveAllGameObjectsInMoveList () |
| void | PlayerRelocation (Player *, float x, float y, float z, float orientation) |
| void | PreserveTransportVisibility (std::set< uint64 > &guids) const |
| void | RemoveAllObjectsInRemoveList () |
| virtual void | RemoveAllPlayers () |
| void | RemoveCreatureRespawnTime (uint32 dbGuid) |
| template<> | |
| void | RemoveFromActive (Creature *c) |
| template<> | |
| void | RemoveFromActive (DynamicObject *obj) |
| template<class T> | |
| void | RemoveFromActive (T *obj) |
| template<class T> | |
| void | RemoveFromMap (T *, bool) |
| template<> | |
| void | RemoveFromMap (Transport *obj, bool remove) |
| void | RemoveGameObjectModel (const GameObjectModel &model) |
| void | RemoveGORespawnTime (uint32 dbGuid) |
| void | RemoveWorldObject (WorldObject *obj) |
| void | ResetGridExpiry (NGridType &grid, float factor=1) const |
| void | resetMarkedCells () |
| void | SaveCreatureRespawnTime (uint32 dbGuid, time_t respawnTime) |
| void | SaveGORespawnTime (uint32 dbGuid, time_t respawnTime) |
| void | ScriptCommandStart (ScriptInfo const &script, uint32 delay, Object *source, Object *target) |
| void | ScriptsStart (std::map< uint32, std::multimap< uint32, ScriptInfo > > const &scripts, uint32 id, Object *source, Object *target) |
| Put scripts in the execution queue. | |
| void | SendInitTransports (Player *player) |
| void | SendRemoveTransports (Player *player) |
| void | SendToPlayers (WorldPacket const *data) const |
| void | SetUnloadLock (const GridCoord &p, bool on) |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=NULL, uint32 duration=0, Unit *summoner=NULL, uint32 spellId=0, uint32 vehId=0) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| template<> | |
| void | SwitchGridContainers (Creature *obj, bool on) |
| template<> | |
| void | SwitchGridContainers (GameObject *obj, bool on) |
| template<class T> | |
| void | SwitchGridContainers (T *obj, bool on) |
| InstanceMap * | ToInstanceMap () |
| const InstanceMap * | ToInstanceMap () const |
| MapInstanced * | ToMapInstanced () |
| const MapInstanced * | ToMapInstanced () const |
| bool | UnloadGrid (NGridType &ngrid, bool pForce) |
| void | UpdateIteratorBack (Player *player) |
| void | UpdateObjectsVisibilityFor (Player *player, Cell cell, CellCoord cellpair) |
| void | UpdateObjectVisibility (WorldObject *obj, Cell cell, CellCoord cellpair) |
| template<class T, class CONTAINER> | |
| void | Visit (const Cell &cell, TypeContainerVisitor< T, CONTAINER > &visitor) |
| template<class NOTIFIER> | |
| void | VisitAll (const float &x, const float &y, float radius, NOTIFIER ¬ifier) |
| template<class NOTIFIER> | |
| void | VisitFirstFound (const float &x, const float &y, float radius, NOTIFIER ¬ifier) |
| template<class NOTIFIER> | |
| void | VisitGrid (const float &x, const float &y, float radius, NOTIFIER ¬ifier) |
| void | VisitNearbyCellsOf (WorldObject *obj, TypeContainerVisitor< Skyfire::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Skyfire::ObjectUpdater, WorldTypeMapContainer > &worldVisitor) |
| template<class NOTIFIER> | |
| void | VisitWorld (const float &x, const float &y, float radius, NOTIFIER ¬ifier) |
| virtual | ~Map () |
| Public Member Functions inherited from GridRefManager< NGridType > | |
| iterator | begin () |
| iterator | end () |
| GridReference< NGridType > * | getFirst () |
| GridReference< NGridType > * | getLast () |
| iterator | rbegin () |
| iterator | rend () |
| Public Member Functions inherited from RefManager< GridRefManager< NGridType >, NGridType > | |
| iterator | begin () |
| void | clearReferences () |
| iterator | end () |
| Reference< GridRefManager< NGridType >, NGridType > * | getFirst () |
| Reference< GridRefManager< NGridType >, NGridType > * | getLast () |
| iterator | rbegin () |
| RefManager () | |
| iterator | rend () |
| virtual | ~RefManager () |
| Public Member Functions inherited from LinkedListHead | |
| void | decSize () |
| LinkedListElement * | getFirst () |
| LinkedListElement const * | getFirst () const |
| LinkedListElement * | getLast () |
| LinkedListElement const * | getLast () const |
| uint32 | getSize () const |
| void | incSize () |
| void | insertFirst (LinkedListElement *pElem) |
| void | insertLast (LinkedListElement *pElem) |
| bool | isEmpty () const |
| LinkedListHead () | |
| virtual | ~LinkedListHead () |
Private Attributes | |
| InstanceScript * | i_data |
| uint32 | i_script_id |
| bool | m_resetAfterUnload |
| bool | m_unloadWhenEmpty |
| InstanceMap::InstanceMap | ( | uint32 | id, |
| time_t | expiry, | ||
| uint32 | InstanceId, | ||
| uint8 | SpawnMode, | ||
| Map * | _parent ) |
Definition at line 2661 of file Map.cpp.
References CONFIG_INSTANCE_UNLOAD_DELAY, i_data, i_script_id, InitVisibilityDistance(), m_resetAfterUnload, Map::m_unloadTimer, m_unloadWhenEmpty, Map::Map(), MIN_UNLOAD_DELAY, and sWorld.
|
virtual |
Reimplemented from Map.
Definition at line 2755 of file Map.cpp.
References Player::AddInstanceEnterTime(), Map::AddPlayerToMap(), ASSERT, Group::BindToInstance(), Player::BindToInstance(), InstanceSave::CanReset(), ByteBuffer::FlushBits(), Group::GetBoundInstance(), Player::GetBoundInstance(), InstanceSave::GetDifficulty(), Player::GetGroup(), InstanceSave::GetGroupCount(), Object::GetGUIDLow(), Map::GetId(), InstanceSave::GetInstanceId(), Map::GetInstanceId(), Group::GetLeaderGUID(), InstanceSave::GetMapId(), Map::GetMapName(), WorldObject::GetName(), InstanceSave::GetPlayerCount(), Player::GetSession(), Map::GetSpawnMode(), GUID_LOPART(), i_data, Map::IsInstance(), Group::isLFGGroup(), Map::Lock, m_resetAfterUnload, Map::m_unloadTimer, m_unloadWhenEmpty, InstanceGroupBind::perm, InstancePlayerBind::perm, InstanceGroupBind::save, InstancePlayerBind::save, WorldSession::SendPacket(), Player::SetPendingBind(), SetResetSchedule(), SF_LOG_ERROR, SF_LOG_INFO, sInstanceSaveMgr, SMSG_INSTANCE_LOCK_WARNING_QUERY, and ByteBuffer::WriteBit().
|
virtual |
Reimplemented from Map.
Definition at line 2690 of file Map.cpp.
References ASSERT, MapRefManager::begin(), Map::CanEnter(), MapRefManager::end(), Player::GetGroup(), Object::GetGUIDLow(), Map::GetId(), Map::GetInstanceId(), GetInstanceScript(), Map::GetMapName(), Player::GetMapRef(), GetMaxPlayers(), WorldObject::GetName(), Map::GetPlayers(), Map::GetPlayersCountExceptGMs(), Map::GetSpawnMode(), Reference< TO, FROM >::getTarget(), Player::IsBeingForcedTeleportFar(), LinkedListHead::isEmpty(), Player::IsGameMaster(), Map::IsRaid(), Player::SendTransferAborted(), SF_LOG_ERROR, SF_LOG_INFO, TRANSFER_ABORT_MAX_PLAYERS, and TRANSFER_ABORT_ZONE_IN_COMBAT.
| void InstanceMap::CreateInstanceData | ( | bool | load | ) |
Definition at line 2893 of file Map.cpp.
References CHAR_SEL_INSTANCE, CharacterDatabase, Map::GetId(), Field::GetString(), i_data, Map::i_InstanceId, i_script_id, InstanceTemplate::ScriptId, PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, sObjectMgr, and sScriptMgr.
Referenced by MapInstanced::CreateInstance().
|
inline |
Definition at line 647 of file Map.h.
References i_data.
Referenced by CanEnter(), and TransportMgr::CreateTransport().
| uint32 InstanceMap::GetMaxPlayers | ( | ) | const |
Definition at line 3081 of file Map.cpp.
References DIFFICULTY_NONE, Map::GetId(), Map::GetMapDifficulty(), GetMapDifficultyData(), Map::IsRegularDifficulty(), and MapDifficulty::maxPlayers.
Referenced by CanEnter().
| uint32 InstanceMap::GetMaxResetDelay | ( | ) | const |
Definition at line 3097 of file Map.cpp.
References Map::GetMapDifficulty(), and MapDifficulty::resetTime.
|
inline |
Definition at line 646 of file Map.h.
References i_script_id.
Referenced by ScriptMgr::CreateInstanceData(), boss_bronjahm::boss_bronjahmAI::InitializeAI(), and boss_devourer_of_souls::boss_devourer_of_soulsAI::InitializeAI().
|
virtual |
Reimplemented from Map.
Definition at line 2680 of file Map.cpp.
References World::GetMaxVisibleDistanceInInstances(), World::GetVisibilityNotifyPeriodInInstances(), Map::m_VisibilityNotifyPeriod, and Map::m_VisibleDistance.
Referenced by InstanceMap().
| void InstanceMap::PermBindAllPlayers | ( | Player * | source | ) |
Definition at line 2971 of file Map.cpp.
References Group::BindToInstance(), Player::BindToInstance(), ByteBuffer::FlushBits(), Player::GetBoundInstance(), InstanceSave::GetDifficulty(), Player::GetGroup(), Object::GetGUID(), Object::GetGUIDLow(), Map::GetInstanceId(), Group::GetLeaderGUID(), WorldObject::GetMap(), InstanceSave::GetMapId(), WorldLocation::GetMapId(), Map::GetMapName(), WorldObject::GetName(), Player::GetSession(), Player::IsGameMaster(), Map::IsInstance(), Map::m_mapRefManager, InstancePlayerBind::perm, WorldSession::SendCalendarRaidLockout(), WorldSession::SendPacket(), SF_LOG_ERROR, sInstanceSaveMgr, SMSG_INSTANCE_SAVE_CREATED, and ByteBuffer::WriteBit().
|
virtual |
Reimplemented from Map.
Definition at line 2882 of file Map.cpp.
References CONFIG_INSTANCE_UNLOAD_DELAY, Map::GetInstanceId(), Map::GetMapName(), WorldObject::GetName(), Map::m_mapRefManager, Map::m_unloadTimer, m_unloadWhenEmpty, MIN_UNLOAD_DELAY, Map::RemovePlayerFromMap(), SetResetSchedule(), SF_LOG_INFO, and sWorld.
| bool InstanceMap::Reset | ( | InstanceResetMethod | method | ) |
Definition at line 2935 of file Map.cpp.
References Map::GetId(), Map::HavePlayers(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, INSTANCE_RESET_GLOBAL, Map::m_mapRefManager, m_resetAfterUnload, Map::m_unloadTimer, m_unloadWhenEmpty, and MIN_UNLOAD_DELAY.
| void InstanceMap::SendResetWarnings | ( | uint32 | timeLeft | ) | const |
Definition at line 3018 of file Map.cpp.
References Map::GetEntry(), Map::GetId(), and Map::m_mapRefManager.
| void InstanceMap::SetResetSchedule | ( | bool | on | ) |
Definition at line 3024 of file Map.cpp.
References Map::GetId(), Map::GetInstanceId(), Map::GetMapName(), Map::GetSpawnMode(), Map::HavePlayers(), Map::IsInstance(), Map::IsRaidOrHeroicDungeon(), SF_LOG_ERROR, and sInstanceSaveMgr.
Referenced by AddPlayerToMap(), and RemovePlayerFromMap().
|
virtual |
Reimplemented from Map.
Definition at line 3008 of file Map.cpp.
References ASSERT, Map::DeleteRespawnTimes(), Map::HavePlayers(), m_resetAfterUnload, and Map::UnloadAll().
|
virtual |
Reimplemented from Map.
Definition at line 2874 of file Map.cpp.
References i_data, and Map::Update().
|
private |
Definition at line 661 of file Map.h.
Referenced by AddPlayerToMap(), CreateInstanceData(), GetInstanceScript(), InstanceMap(), Update(), and ~InstanceMap().
|
private |
Definition at line 662 of file Map.h.
Referenced by CreateInstanceData(), GetScriptId(), and InstanceMap().
|
private |
Definition at line 659 of file Map.h.
Referenced by AddPlayerToMap(), InstanceMap(), Reset(), and UnloadAll().
|
private |
Definition at line 660 of file Map.h.
Referenced by AddPlayerToMap(), InstanceMap(), RemovePlayerFromMap(), and Reset().