|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Map.h>
Public Types | |
| typedef MapRefManager | PlayerList |
| Public Types inherited from GridRefManager< NGridType > | |
| typedef LinkedListHead::Iterator< GridReference< NGridType > > | iterator |
| Public Types inherited from RefManager< GridRefManager< NGridType >, NGridType > | |
| typedef LinkedListHead::Iterator< Reference< GridRefManager< NGridType >, NGridType > > | iterator |
| Public Types inherited from LinkedListHead | |
| typedef Iterator< LinkedListElement > | iterator |
Public Member Functions | |
| bool | ActiveObjectsNearGrid (NGridType const &ngrid) const |
| void | AddObjectToRemoveList (WorldObject *obj) |
| void | AddObjectToSwitchList (WorldObject *obj, bool on) |
| virtual bool | AddPlayerToMap (Player *) |
| 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 () |
| virtual bool | CanEnter (Player *) |
| 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) |
| virtual void | InitVisibilityDistance () |
| 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) |
| virtual void | RemovePlayerFromMap (Player *, bool) |
| 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 |
| virtual void | UnloadAll () |
| bool | UnloadGrid (NGridType &ngrid, bool pForce) |
| virtual void | Update (const uint32) |
| 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 () |
Static Public Member Functions | |
| static void | DeleteRespawnTimesInDB (uint16 mapId, uint32 instanceId) |
| static void | DeleteStateMachine () |
| static bool | ExistMap (uint32 mapid, int gx, int gy) |
| static bool | ExistVMap (uint32 mapid, int gx, int gy) |
| static uint32 | GetAreaIdByAreaFlag (uint16 areaflag, uint32 map_id) |
| static void | GetZoneAndAreaIdByAreaFlag (uint32 &zoneid, uint32 &areaid, uint16 areaflag, uint32 map_id) |
| static uint32 | GetZoneIdByAreaFlag (uint16 areaflag, uint32 map_id) |
| static void | InitStateMachine () |
Public Attributes | |
| CreatureGroupHolderType | CreatureGroupHolder |
Protected Types | |
| typedef std::set< WorldObject * > | ActiveNonPlayers |
| typedef std::set< Transport * > | TransportsContainer |
Protected Member Functions | |
| void | SetUnloadReferenceLock (const GridCoord &p, bool on) |
Protected Attributes | |
| DynamicMapTree | _dynamicTree |
| TransportsContainer | _transports |
| TransportsContainer::iterator | _transportsUpdateIter |
| std::mutex | GridLock |
| uint32 | i_InstanceId |
| MapEntry const * | i_mapEntry |
| uint8 | i_spawnMode |
| std::mutex | Lock |
| ActiveNonPlayers | m_activeNonPlayers |
| ActiveNonPlayers::iterator | m_activeNonPlayersIter |
| MapRefManager::iterator | m_mapRefIter |
| MapRefManager | m_mapRefManager |
| uint32 | m_unloadTimer |
| int32 | m_VisibilityNotifyPeriod |
| float | m_VisibleDistance |
Private Types | |
| typedef std::multimap< time_t, ScriptAction > | ScriptScheduleMap |
Private Member Functions | |
| GameObject * | _FindGameObject (WorldObject *pWorldObject, uint32 guid) const |
| Creature * | _GetScriptCreature (Object *obj, bool isSource, const ScriptInfo *scriptInfo) const |
| Creature * | _GetScriptCreatureSourceOrTarget (Object *source, Object *target, const ScriptInfo *scriptInfo, bool bReverse=false) const |
| Player * | _GetScriptPlayer (Object *obj, bool isSource, const ScriptInfo *scriptInfo) const |
| Player * | _GetScriptPlayerSourceOrTarget (Object *source, Object *target, const ScriptInfo *scriptInfo) const |
| Unit * | _GetScriptUnit (Object *obj, bool isSource, const ScriptInfo *scriptInfo) const |
| WorldObject * | _GetScriptWorldObject (Object *obj, bool isSource, const ScriptInfo *scriptInfo) const |
| void | _ScriptProcessDoor (Object *source, Object *target, const ScriptInfo *scriptInfo) const |
| void | AddCreatureToMoveList (Creature *c, float x, float y, float z, float ang) |
| void | AddGameObjectToMoveList (GameObject *go, float x, float y, float z, float ang) |
| void | AddToActiveHelper (WorldObject *obj) |
| template<class T> | |
| void | AddToGrid (T *object, Cell const &cell) |
| void | buildNGridLinkage (NGridType *pNGridType) |
| bool | CreatureCellRelocation (Creature *creature, Cell new_cell) |
| template<class T> | |
| void | DeleteFromWorld (T *) |
| void | EnsureGridCreated (const GridCoord &) |
| void | EnsureGridCreated_i (const GridCoord &) |
| bool | EnsureGridLoaded (Cell const &) |
| void | EnsureGridLoadedForActiveObject (Cell const &, WorldObject *object) |
| bool | GameObjectCellRelocation (GameObject *go, Cell new_cell) |
| GridMap * | GetGrid (float x, float y) |
| NGridType * | getNGrid (uint32 x, uint32 y) const |
| template<class T> | |
| void | InitializeObject (T *obj) |
| bool | IsGridLoaded (const GridCoord &) const |
| bool | isGridObjectDataLoaded (uint32 x, uint32 y) const |
| void | LoadMap (int gx, int gy, bool reload=false) |
| void | LoadMapAndVMap (int gx, int gy) |
| void | LoadMMap (int gx, int gy) |
| void | LoadVMap (int gx, int gy) |
| void | ProcessRelocationNotifies (const uint32 diff) |
| void | RemoveCreatureFromMoveList (Creature *c) |
| void | RemoveFromActiveHelper (WorldObject *obj) |
| void | RemoveGameObjectFromMoveList (GameObject *go) |
| void | ScriptsProcess () |
| Process queued scripts. | |
| void | SendInitSelf (Player *player) |
| void | setGridObjectDataLoaded (bool pLoaded, uint32 x, uint32 y) |
| void | setNGrid (NGridType *grid, uint32 x, uint32 y) |
| void | SetTimer (uint32 t) |
| void | UpdateActiveCells (const float &x, const float &y, const uint32 t_diff) |
Private Attributes | |
| UNORDERED_MAP< uint32, time_t > | _creatureRespawnTimes |
| std::vector< Creature * > | _creaturesToMove |
| bool | _creatureToMoveLock |
| std::vector< GameObject * > | _gameObjectsToMove |
| bool | _gameObjectsToMoveLock |
| UNORDERED_MAP< uint32, time_t > | _goRespawnTimes |
| GridMap * | GridMaps [MAX_NUMBER_OF_GRIDS][MAX_NUMBER_OF_GRIDS] |
| time_t | i_gridExpiry |
| NGridType * | i_grids [MAX_NUMBER_OF_GRIDS][MAX_NUMBER_OF_GRIDS] |
| std::set< WorldObject * > | i_objectsToRemove |
| std::map< WorldObject *, bool > | i_objectsToSwitch |
| bool | i_scriptLock |
| std::set< WorldObject * > | i_worldObjects |
| Map * | m_parentMap |
| ScriptScheduleMap | m_scriptSchedule |
| std::bitset< TOTAL_NUMBER_OF_CELLS_PER_MAP *TOTAL_NUMBER_OF_CELLS_PER_MAP > | marked_cells |
Friends | |
| class | MapReference |
|
protected |
| typedef MapRefManager Map::PlayerList |
|
private |
|
protected |
Definition at line 222 of file Map.cpp.
References _creatureToMoveLock, _gameObjectsToMoveLock, _transports, _transportsUpdateIter, DEFAULT_VISIBILITY_DISTANCE, DEFAULT_VISIBILITY_NOTIFY_PERIOD, GridRefManager< NGridType >::end(), GridMaps, i_gridExpiry, i_InstanceId, i_mapEntry, i_scriptLock, i_spawnMode, InitVisibilityDistance(), m_activeNonPlayers, m_activeNonPlayersIter, m_parentMap, m_unloadTimer, m_VisibilityNotifyPeriod, m_VisibleDistance, Map(), MAX_NUMBER_OF_GRIDS, setNGrid(), sMapStore, and sScriptMgr.
Referenced by BattlegroundMap::BattlegroundMap(), MapInstanced::CreateInstanceForPlayer(), MapInstanced::FindInstanceMap(), GetAreaFlag(), GetAreaInfo(), GetHeight(), getLiquidStatus(), GetParent(), GetTerrainType(), GetWaterLevel(), GetWaterOrGroundLevel(), InstanceMap::InstanceMap(), Map(), MapInstanced::MapInstanced(), and MapReference.
|
virtual |
Definition at line 40 of file Map.cpp.
References _transports, ASSERT, MMAP::MMapFactory::createOrGetMMapManager(), GetId(), Transport::GetTransportTemplate(), i_InstanceId, i_worldObjects, TransportTemplate::inInstance, WorldObject::IsWorldObject(), m_scriptSchedule, GameObject::RemoveFromWorld(), WorldObject::RemoveFromWorld(), WorldObject::ResetMap(), sScriptMgr, UnloadAll(), and MMAP::MMapManager::unloadMapInstance().
|
inlineprivate |
Definition at line 257 of file MapScripts.cpp.
References Skyfire::ComputeCellCoord(), WorldObject::GetGridActivationRange(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), and Cell::Visit().
Referenced by _ScriptProcessDoor(), and ScriptsProcess().
|
inlineprivate |
Definition at line 177 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SF_LOG_ERROR, and Object::ToCreature().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 111 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SF_LOG_ERROR, and Object::ToCreature().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 162 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SF_LOG_ERROR, and Object::ToPlayer().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 89 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SF_LOG_ERROR, and Object::ToPlayer().
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 144 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), Object::isType(), SF_LOG_ERROR, Object::ToUnit(), and TYPEMASK_UNIT.
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 192 of file MapScripts.cpp.
References ScriptInfo::GetDebugInfo(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), and SF_LOG_ERROR.
Referenced by ScriptsProcess().
|
inlineprivate |
Definition at line 208 of file MapScripts.cpp.
References _FindGameObject(), ScriptInfo::command, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, ScriptInfo::GetDebugInfo(), Object::GetEntry(), GameObject::GetGoState(), GameObject::GetGoType(), Object::GetGUIDLow(), Object::GetTypeId(), GO_STATE_READY, ScriptInfo::GOGuid, Object::isType(), ScriptInfo::ResetDelay, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_OPEN_DOOR, SF_LOG_ERROR, Object::ToGameObject(), ScriptInfo::ToggleDoor, TYPEMASK_GAMEOBJECT, TYPEMASK_UNIT, and GameObject::UseDoorOrButton().
Referenced by ScriptsProcess().
| bool Map::ActiveObjectsNearGrid | ( | NGridType const & | ngrid | ) | const |
Definition at line 2531 of file Map.cpp.
References Skyfire::ComputeCellCoord(), CoordPair< LIMIT >::dec_x(), CoordPair< LIMIT >::dec_y(), Position::GetPositionX(), Position::GetPositionY(), GetVisibilityRange(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), CoordPair< LIMIT >::inc_x(), CoordPair< LIMIT >::inc_y(), m_activeNonPlayers, m_mapRefManager, MAX_NUMBER_OF_CELLS, SIZE_OF_GRID_CELL, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by UnloadGrid(), and ActiveState::Update().
|
private |
Definition at line 979 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, Skyfire::Maps::GetMoveQueueAddAction(), Skyfire::Maps::MAP_MOVE_QUEUE_ADD_APPEND, Skyfire::Maps::MAP_MOVE_QUEUE_ADD_SKIPPED_LOCKED, and MapObject::SetNewCellPosition().
Referenced by CreatureRelocation().
|
private |
Definition at line 997 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, Skyfire::Maps::GetMoveQueueAddAction(), Skyfire::Maps::MAP_MOVE_QUEUE_ADD_APPEND, Skyfire::Maps::MAP_MOVE_QUEUE_ADD_SKIPPED_LOCKED, and MapObject::SetNewCellPosition().
Referenced by GameObjectRelocation().
| void Map::AddObjectToRemoveList | ( | WorldObject * | obj | ) |
Definition at line 2410 of file Map.cpp.
References ASSERT, WorldObject::CleanupsBeforeDelete(), GetId(), GetInstanceId(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Skyfire::Maps::GetRemoveListAddAction(), i_objectsToRemove, and Skyfire::Maps::MAP_REMOVE_LIST_ADD_INSERT.
Referenced by WorldObject::AddObjectToRemoveList(), MoveAllCreaturesInMoveList(), and MoveAllGameObjectsInMoveList().
| void Map::AddObjectToSwitchList | ( | WorldObject * | obj, |
| bool | on ) |
Definition at line 2424 of file Map.cpp.
References ASSERT, GetId(), GetInstanceId(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Skyfire::Maps::GetSwitchListAction(), Object::GetTypeId(), i_objectsToSwitch, Skyfire::Maps::MAP_SWITCH_LIST_ERASE_OPPOSITE, Skyfire::Maps::MAP_SWITCH_LIST_IGNORE_UNSUPPORTED_TYPE, Skyfire::Maps::MAP_SWITCH_LIST_INSERT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by WorldObject::SetWorldObject().
|
virtual |
Reimplemented in BattlegroundMap, and InstanceMap.
Definition at line 460 of file Map.cpp.
References AddToGrid(), Player::AddToWorld(), ASSERT, Skyfire::ComputeCellCoord(), EnsureGridLoadedForActiveObject(), Object::GetGUIDLow(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), CoordPair< LIMIT >::IsCoordValid(), Player::m_clientGUIDs, SendInitSelf(), SendInitTransports(), Player::SetMap(), SF_LOG_ERROR, sScriptMgr, Player::UpdateObjectVisibility(), Player::UpdatePhasing(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by BattlegroundMap::AddPlayerToMap(), InstanceMap::AddPlayerToMap(), and WorldSession::HandlePlayerLogin().
| void Map::AddToActive | ( | Creature * | c | ) |
Definition at line 2575 of file Map.cpp.
References AddToActiveHelper(), Skyfire::ComputeGridCoord(), Creature::GetDBTableGUIDLow(), Object::GetEntry(), Object::GetGUIDLow(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Creature::GetRespawnPosition(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::incUnloadActiveLock(), CoordPair< LIMIT >::IsCoordValid(), Unit::IsPet(), SF_LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::AddToActive | ( | DynamicObject * | d | ) |
Definition at line 2604 of file Map.cpp.
References AddToActiveHelper().
| void Map::AddToActive | ( | T * | obj | ) |
Definition at line 2569 of file Map.cpp.
References AddToActiveHelper().
Referenced by AddObjectHelper(), AddToMap(), and WorldObject::setActive().
|
inlineprivate |
Definition at line 601 of file Map.h.
References m_activeNonPlayers.
Referenced by AddToActive(), AddToActive(), and AddToActive().
Definition at line 267 of file Map.cpp.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), WorldObject::IsWorldObject(), and MapObject::SetCurrentCell().
| void Map::AddToGrid | ( | GameObject * | obj, |
| Cell const & | cell ) |
Definition at line 279 of file Map.cpp.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), Cell::GridY(), and MapObject::SetCurrentCell().
|
private |
Definition at line 257 of file Map.cpp.
References AddWorldObject(), Cell::CellX(), Cell::CellY(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), getNGrid(), Cell::GridX(), and Cell::GridY().
Referenced by AddPlayerToMap(), AddToMap(), CreatureCellRelocation(), GameObjectCellRelocation(), and PlayerRelocation().
| bool Map::AddToMap | ( | T * | obj | ) |
Definition at line 504 of file Map.cpp.
References AddToActive(), AddToGrid(), ASSERT, Skyfire::ComputeCellCoord(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), Skyfire::Maps::GetAddObjectAction(), Cell::GridX(), Cell::GridY(), GUID_LOPART(), InitializeObject(), CoordPair< LIMIT >::IsCoordValid(), Skyfire::Maps::MAP_ADD_OBJECT_REFRESH_EXISTING, Skyfire::Maps::MAP_ADD_OBJECT_REJECT_INVALID_COORDS, sBattlePetSpawnMgr, SF_LOG_DEBUG, SF_LOG_ERROR, Object::ToCreature(), UI64FMTD, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Battleground::AddCreature(), Battleground::AddObject(), Player::BuildPlayerRepop(), ObjectAccessor::ConvertCorpseForPlayer(), Transport::CreateGOPassenger(), TransportMgr::CreateLocalTransport(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), TransportMgr::CreateTransport(), Spell::EffectCreateTamedPet(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTameCreature(), Spell::EffectTransmitted(), Creature::FarTeleportTo(), GameEventMgr::GameEventSpawn(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Pet::LoadPetFromDB(), LuaGlobalFunctions::PerformIngameSpawn(), GameObject::Refresh(), ScriptsProcess(), PoolGroup< T >::Spawn1Object(), Battlefield::SpawnCreature(), Battlefield::SpawnGameObject(), BattlePetWildZonePool::SpawnReplacement(), SpawnSurveyGameObject(), SummonCreature(), WorldObject::SummonGameObject(), Player::SummonPet(), Transport::TeleportTransport(), and GameObject::Update().
| bool Map::AddToMap | ( | Transport * | obj | ) |
Definition at line 556 of file Map.cpp.
References _transports, GameObject::AddToWorld(), GridRefManager< NGridType >::begin(), Object::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), Skyfire::ComputeCellCoord(), MapRefManager::end(), Skyfire::Maps::GetAddObjectAction(), Object::GetGUID(), GetId(), GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), WorldObject::GetTransport(), CoordPair< LIMIT >::IsCoordValid(), LinkedListHead::isEmpty(), Object::IsInWorld(), Player::m_clientGUIDs, Skyfire::Maps::MAP_ADD_OBJECT_REFRESH_EXISTING, Skyfire::Maps::MAP_ADD_OBJECT_REJECT_INVALID_COORDS, Player::SendDirectMessage(), SF_LOG_ERROR, UI64FMTD, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 401 of file Map.h.
References i_worldObjects.
Referenced by AddToGrid(), SwitchGridContainers(), and SwitchGridContainers().
|
inline |
|
inlineprivate |
Definition at line 519 of file Map.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link().
Referenced by EnsureGridCreated_i().
|
inlinevirtual |
Reimplemented in BattlegroundMap, InstanceMap, and MapInstanced.
Definition at line 359 of file Map.h.
Referenced by BattlegroundMap::CanEnter(), InstanceMap::CanEnter(), and WorldSession::HandleMoveWorldportAckOpcode().
|
inline |
Definition at line 247 of file Map.h.
References m_unloadTimer.
| bool Map::CheckGridIntegrity | ( | Creature * | c, |
| bool | moved ) const |
Definition at line 2268 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), MapObject::GetCurrentCell(), Object::GetGUIDLow(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), and SF_LOG_DEBUG.
Referenced by CreatureRelocation().
|
inline |
Definition at line 448 of file Map.h.
References _dynamicTree.
Definition at line 1108 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetGUIDLow(), Cell::GridX(), Cell::GridY(), WorldObject::isActiveObject(), IsGridLoaded(), GridObject< T >::RemoveFromGrid(), and SF_LOG_DEBUG.
Referenced by CreatureRespawnRelocation(), and MoveAllCreaturesInMoveList().
| void Map::CreatureRelocation | ( | Creature * | creature, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| bool | respawnRelocationOnFail = true ) |
If hovering, always increase our server-side Z position Client automatically projects correct position based on Z coord sent in monster move and UNIT_FIELD_HOVER_HEIGHT sent in object updates
Definition at line 909 of file Map.cpp.
References AddCreatureToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), CheckGridIntegrity(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetFloatValue(), Object::GetGUIDLow(), getNGrid(), Unit::GetVehicleKit(), Cell::GridX(), Cell::GridY(), Unit::HasUnitMovementFlag(), Unit::IsVehicle(), MOVEMENTFLAG_HOVER, Position::Relocate(), Vehicle::RelocatePassengers(), RemoveCreatureFromMoveList(), SF_LOG_DEBUG, UNIT_FIELD_HOVER_HEIGHT, and Unit::UpdateObjectVisibility().
Referenced by Spell::EffectSummonDeadPet(), Creature::RemoveCorpse(), Skyfire::PetTransport::RemoveOwnerHunterPet(), Creature::SetPosition(), Transport::UpdatePassengerPositions(), and Unit::UpdatePosition().
| bool Map::CreatureRespawnRelocation | ( | Creature * | c, |
| bool | diffGridOnly ) |
Definition at line 1230 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), MotionMaster::Clear(), Unit::CombatStop(), CreatureCellRelocation(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetGUIDLow(), Unit::GetMotionMaster(), Creature::GetRespawnPosition(), Cell::GridX(), Cell::GridY(), MotionMaster::Initialize(), Position::Relocate(), SF_LOG_DEBUG, and Unit::UpdateObjectVisibility().
Referenced by MoveAllCreaturesInMoveList(), and ObjectGridEvacuator::Visit().
|
virtual |
Reimplemented in MapInstanced.
Definition at line 2391 of file Map.cpp.
References ASSERT, GridRefManager< OBJECT >::begin(), GridRefManager< OBJECT >::end(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), IsBattlegroundOrArena(), MAX_GRID_STATE, RemoveAllObjectsInRemoveList(), and si_GridStates.
Referenced by MapInstanced::DelayedUpdate().
| void Map::DeleteFromWorld | ( | Player * | player | ) |
Definition at line 370 of file Map.cpp.
References sObjectAccessor.
|
private |
Definition at line 363 of file Map.cpp.
Referenced by RemoveFromMap(), RemoveFromMap(), and RemovePlayerFromMap().
| void Map::DeleteRespawnTimes | ( | ) |
Definition at line 3305 of file Map.cpp.
References _creatureRespawnTimes, _goRespawnTimes, DeleteRespawnTimesInDB(), GetId(), and GetInstanceId().
Referenced by InstanceSaveManager::_ResetInstance(), and InstanceMap::UnloadAll().
Definition at line 3313 of file Map.cpp.
References CHAR_DEL_CREATURE_RESPAWN_BY_INSTANCE, CHAR_DEL_GO_RESPAWN_BY_INSTANCE, CharacterDatabase, PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by InstanceSaveManager::_ResetInstance(), and DeleteRespawnTimes().
|
static |
Definition at line 214 of file Map.cpp.
References GRID_STATE_ACTIVE, GRID_STATE_IDLE, GRID_STATE_INVALID, GRID_STATE_REMOVAL, and si_GridStates.
Referenced by MapManager::UnloadAll().
|
private |
Definition at line 377 of file Map.cpp.
References EnsureGridCreated_i(), and GridLock.
Referenced by AddToMap(), CreatureCellRelocation(), EnsureGridLoaded(), GameObjectCellRelocation(), and GetGrid().
|
private |
Definition at line 385 of file Map.cpp.
References buildNGridLinkage(), CONFIG_GRID_UNLOAD, GetId(), getNGrid(), GRID_STATE_IDLE, GridMaps, i_gridExpiry, i_InstanceId, CoordPair< LIMIT >::IsCoordValid(), LoadMapAndVMap(), MAX_NUMBER_OF_GRIDS, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetGridState(), setNGrid(), SF_LOG_DEBUG, SF_LOG_ERROR, sWorld, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by EnsureGridCreated().
|
private |
Definition at line 431 of file Map.cpp.
References ASSERT, Balance(), Cell::CellX(), Cell::CellY(), EnsureGridCreated(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), GetId(), getNGrid(), Cell::GridX(), Cell::GridY(), i_InstanceId, isGridObjectDataLoaded(), ObjectGridLoader::LoadN(), setGridObjectDataLoaded(), SF_LOG_DEBUG, and sObjectAccessor.
Referenced by EnsureGridLoadedForActiveObject(), LoadGrid(), and Visit().
|
private |
Definition at line 415 of file Map.cpp.
References ASSERT, EnsureGridLoaded(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), Object::GetGUID(), GetId(), getNGrid(), GRID_STATE_ACTIVE, Cell::GridX(), Cell::GridY(), ResetGridExpiry(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetGridState(), SF_LOG_DEBUG, and UI64FMTD.
Referenced by AddPlayerToMap(), AddToMap(), CreatureCellRelocation(), GameObjectCellRelocation(), and PlayerRelocation().
|
static |
Definition at line 75 of file Map.cpp.
References SF_LOG_ERROR, and sWorld.
Referenced by MapManager::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
|
static |
Definition at line 104 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), SF_LOG_ERROR, and sWorld.
Referenced by MapManager::ExistMapAndVMap(), and misc_commandscript::HandleGPSCommand().
|
private |
Definition at line 1169 of file Map.cpp.
References AddToGrid(), Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridCreated(), EnsureGridLoadedForActiveObject(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetGUIDLow(), Cell::GridX(), Cell::GridY(), WorldObject::isActiveObject(), IsGridLoaded(), GridObject< T >::RemoveFromGrid(), and SF_LOG_DEBUG.
Referenced by GameObjectRespawnRelocation(), and MoveAllGameObjectsInMoveList().
| void Map::GameObjectRelocation | ( | GameObject * | go, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| bool | respawnRelocationOnFail = true ) |
Definition at line 946 of file Map.cpp.
References AddGameObjectToMoveList(), ASSERT, Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetGUIDLow(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::GridX(), Cell::GridY(), Position::Relocate(), RemoveGameObjectFromMoveList(), SF_LOG_DEBUG, GameObject::UpdateModelPosition(), and WorldObject::UpdateObjectVisibility().
Referenced by Transport::UpdatePassengerPositions().
| bool Map::GameObjectRespawnRelocation | ( | GameObject * | go, |
| bool | diffGridOnly ) |
Definition at line 1260 of file Map.cpp.
References Cell::CellX(), Cell::CellY(), Cell::DiffGrid(), GameObjectCellRelocation(), MapObject::GetCurrentCell(), Object::GetEntry(), Object::GetGUIDLow(), GameObject::GetRespawnPosition(), Cell::GridX(), Cell::GridY(), Position::Relocate(), SF_LOG_DEBUG, and WorldObject::UpdateObjectVisibility().
Referenced by MoveAllGameObjectsInMoveList(), and ObjectGridEvacuator::Visit().
| uint16 Map::GetAreaFlag | ( | float | x, |
| float | y, | ||
| float | z, | ||
| bool * | isOutdoors = 0 ) const |
Definition at line 2063 of file Map.cpp.
References WMOAreaTableEntry::areaId, GetAreaEntryByAreaID(), GetAreaFlagByMapId(), GetAreaInfo(), GetGrid(), GetWMOAreaTableEntryByTripple(), i_mapEntry, IsOutdoorWMO(), AreaTableEntry::m_AreaBit, and Map().
Referenced by Player::CheckAreaExploreAndOutdoor(), MapManager::GetAreaFlag(), GetAreaId(), getLiquidStatus(), GetZoneAndAreaId(), and GetZoneId().
|
inline |
Definition at line 330 of file Map.h.
References GetAreaFlag(), GetAreaIdByAreaFlag(), and GetId().
Referenced by LuaMap::GetAreaId(), and WorldObject::GetAreaId().
Definition at line 2203 of file Map.cpp.
References GetAreaEntryByAreaFlagAndMap(), and AreaTableEntry::m_ID.
Referenced by GetAreaId(), and MapManager::GetAreaId().
| bool Map::GetAreaInfo | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint32 & | mogpflags, | ||
| int32 & | adtId, | ||
| int32 & | rootId, | ||
| int32 & | groupId ) const |
Definition at line 2044 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), VMAP::IVMapManager::getAreaInfo(), GetGrid(), GetId(), and Map().
Referenced by GetAreaFlag(), and IsOutdoors().
Definition at line 3179 of file Map.cpp.
References ObjectAccessor::GetObjectInMap().
Referenced by Battleground::_ProcessRessurect(), WorldSession::DoLootRelease(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::FilterMeleeHoverDiskPassangers(), FindSceneActor(), Battleground::GetBGCreature(), Unit::GetCreature(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), npc_commandscript::HandleNpcDeleteCommand(), WorldSession::HandleTotemDestroyed(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), go_troll_cage::initBlyCrewMember(), TempSummon::InitStats(), Player::KilledMonsterCredit(), Creature::LoadCreatureFromDB(), npc_lorekeeper::OnGossipSelect(), spell_malygos_destroy_platform_channel::spell_malygos_destroy_platform_channel_AuraScript::OnRemove(), spell_malygos_vortex_visual::spell_malygos_vortex_visual_AuraScript::OnRemove(), Player::SendLoot(), WorldSession::SendTaxiStatus(), and Player::UpdateTriggerVisibility().
|
inline |
Definition at line 456 of file Map.h.
References _creatureRespawnTimes, and UNORDERED_MAP.
Referenced by GetLinkedRespawnTime(), and Creature::LoadCreatureFromDB().
|
inline |
Definition at line 363 of file Map.h.
References GetSpawnMode().
Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::CanRollForItemInLFG(), spell_malygos_arcane_storm::spell_malygos_arcane_storm_SpellScript::FilterTargets(), LuaMap::GetDifficulty(), GetMapDifficulty(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), Player::inRandomLfgDungeon(), IsRegularDifficulty(), lfg::LFGPlayerScript::OnMapChanged(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), and Player::RewardReputation().
| DynamicObject * Map::GetDynamicObject | ( | uint64 | guid | ) |
Definition at line 3201 of file Map.cpp.
References ObjectAccessor::GetObjectInMap().
|
inline |
Definition at line 379 of file Map.h.
References i_mapEntry.
|
inline |
Definition at line 244 of file Map.h.
References i_mapEntry.
Referenced by MapInstanced::CreateInstanceForPlayer(), Group::GetBoundInstance(), misc_commandscript::HandleAppearCommand(), and InstanceMap::SendResetWarnings().
| GameObject * Map::GetGameObject | ( | uint64 | guid | ) |
Definition at line 3184 of file Map.cpp.
References ObjectAccessor::GetObjectInMap().
Referenced by Player::CheckDuelDistance(), WorldSession::DoLootRelease(), Player::DuelComplete(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundBFG::EventPlayerClickedOnFlag(), Battleground::GetBGObject(), GameObject::GetGameObject(), Player::GetNextQuest(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleGameobjectReportUse(), gobject_commandscript::HandleGameObjectTargetCommand(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMovementOpcodes(), spell_alexstrasza_bunny_destroy_platform_event::spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleSendEvent(), Battleground::HandleTriggerBuff(), spell_alexstrasza_gift_beam_visual::spell_alexstrasza_gift_beam_visual_AuraScript::OnRemove(), at_kelthuzad_center::OnTrigger(), Player::PrepareQuestMenu(), ReplaceSurveyObjectSlot(), Player::SendLoot(), WorldSession::SendQuestgiverStatusMultiple(), and Player::UpdateTriggerVisibility().
|
inline |
Definition at line 465 of file Map.h.
References _goRespawnTimes, and UNORDERED_MAP.
Referenced by GetLinkedRespawnTime(), and GameObject::LoadGameObjectFromDB().
|
inlineprivate |
Definition at line 1924 of file Map.cpp.
References Skyfire::ComputeGridCoord(), EnsureGridCreated(), GridMaps, CoordPair< LIMIT >::IsCoordValid(), Skyfire::IsValidMapCoord(), MAX_NUMBER_OF_GRIDS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by GetAreaFlag(), GetAreaInfo(), GetHeight(), getLiquidStatus(), GetTerrainType(), GetWaterLevel(), and GetWaterOrGroundLevel().
|
inline |
Definition at line 299 of file Map.h.
References i_gridExpiry.
Referenced by MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
| float Map::GetHeight | ( | float | x, |
| float | y, | ||
| float | z, | ||
| bool | checkVMap = true, | ||
| float | maxSearchDist = DEFAULT_HEIGHT_SEARCH ) const |
Definition at line 1959 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), GetGrid(), VMAP::IVMapManager::getHeight(), GetId(), INVALID_HEIGHT, VMAP::IVMapManager::isHeightCalcEnabled(), Map(), and VMAP_INVALID_HEIGHT_VALUE.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), LuaMap::GetHeight(), GetHeight(), GetWaterOrGroundLevel(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGPSCommand(), Creature::LoadCreatureFromDB(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), PathGenerator::ResolveTerrainZ(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), WorldObject::UpdateAllowedPositionZ(), WorldObject::UpdateGroundPositionZ(), Creature::UpdateMovementFlags(), and Unit::UpdateSplinePosition().
| float Map::GetHeight | ( | uint32 | phasemask, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| bool | vmap = true, | ||
| float | maxSearchDist = DEFAULT_HEIGHT_SEARCH ) const |
Definition at line 2251 of file Map.cpp.
References _dynamicTree, and GetHeight().
|
inline |
Definition at line 300 of file Map.h.
References i_mapEntry.
Referenced by AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), AddToMap(), InstanceMap::CanEnter(), Player::CanRollForItemInLFG(), GameObject::Create(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstance(), InstanceMap::CreateInstanceData(), MapInstanced::CreateInstanceForPlayer(), TransportMgr::CreateInstanceTransports(), Transport::CreateLocal(), TransportMgr::CreateLocalTransport(), DeleteRespawnTimes(), EnsureGridCreated_i(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GetAreaId(), GetAreaInfo(), GetHeight(), getLiquidStatus(), GetMapDifficulty(), LuaMap::GetMapId(), InstanceMap::GetMaxPlayers(), GetZoneAndAreaId(), GetZoneId(), gobject_commandscript::HandleGameObjectAddCommand(), go_commandscript::HandleGoZoneXYCommand(), WorldSession::HandleMoveWorldportAckOpcode(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), Player::inRandomLfgDungeon(), isInLineOfSight(), LoadMap(), LoadMMap(), LoadRespawnTimes(), LoadVMap(), AchievementCriteriaData::Meets(), lfg::LFGPlayerScript::OnMapChanged(), LuaGlobalFunctions::PerformIngameSpawn(), RemoveAllPlayers(), RemoveCreatureRespawnTime(), RemoveGORespawnTime(), InstanceMap::Reset(), Player::RewardReputation(), SaveCreatureRespawnTime(), SaveGORespawnTime(), InstanceMap::SendResetWarnings(), Creature::SetInCombatWithZone(), WorldObject::SetMap(), InstanceMap::SetResetSchedule(), TransportMgr::SpawnLocalTransports(), SummonCreatureGroup(), Transport::TeleportTransport(), UnloadGrid(), ActiveState::Update(), IdleState::Update(), RemovalState::Update(), and ~Map().
|
inline |
Definition at line 357 of file Map.h.
References i_InstanceId.
Referenced by ObjectAccessor::AddCorpsesToGrid(), AddObjectToRemoveList(), AddObjectToSwitchList(), InstanceMap::AddPlayerToMap(), BattlegroundMap::CanEnter(), InstanceMap::CanEnter(), DeleteRespawnTimes(), LuaMap::GetInstanceId(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), Creature::LoadCreatureFromDB(), GameObject::LoadGameObjectFromDB(), LoadHelper(), LoadRespawnTimes(), InstanceMap::PermBindAllPlayers(), RemoveCreatureRespawnTime(), RemoveGORespawnTime(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::RemovePlayerFromMap(), SaveCreatureRespawnTime(), SaveGORespawnTime(), WorldObject::SetMap(), and InstanceMap::SetResetSchedule().
| time_t Map::GetLinkedRespawnTime | ( | uint64 | guid | ) | const |
Definition at line 3326 of file Map.cpp.
References GetCreatureRespawnTime(), GetGORespawnTime(), GUID_HIPART(), GUID_LOPART(), HIGHGUID_GAMEOBJECT, HIGHGUID_UNIT, and sObjectMgr.
Referenced by Creature::Update(), and GameObject::Update().
| ZLiquidStatus Map::getLiquidStatus | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint8 | ReqLiquidType, | ||
| LiquidData * | data = 0 ) const |
Definition at line 2110 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), LiquidData::depth_level, LiquidData::entry, GetAreaEntryByAreaFlagAndMap(), GetAreaEntryByAreaID(), GetAreaFlag(), GetGrid(), GetId(), VMAP::IVMapManager::GetLiquidLevel(), INVALID_HEIGHT, LiquidData::level, LIQUID_MAP_ABOVE_WATER, LIQUID_MAP_IN_WATER, LIQUID_MAP_NO_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, Map(), SF_LOG_DEBUG, sLiquidTypeStore, and LiquidData::type_flags.
Referenced by GetWaterOrGroundLevel(), misc_commandscript::HandleGPSCommand(), IsInWater(), IsUnderWater(), Player::UpdateUnderwaterState(), and Unit::UpdateUnderwaterState().
| MapDifficulty const * Map::GetMapDifficulty | ( | ) | const |
Definition at line 3039 of file Map.cpp.
References GetDifficulty(), GetId(), and GetMapDifficultyData().
Referenced by InstanceMap::GetMaxPlayers(), and InstanceMap::GetMaxResetDelay().
| char const * Map::GetMapName | ( | ) | const |
Definition at line 2285 of file Map.cpp.
References i_mapEntry.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CanEnter(), ChatHandler::ExecuteCommandInTable(), Player::GetMapAreaAndZoneString(), LuaMap::GetName(), go_commandscript::HandleGoZoneXYCommand(), WorldSession::HandleMoveWorldportAckOpcode(), LoadMMap(), LoadVMap(), InstanceMap::PermBindAllPlayers(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::RemovePlayerFromMap(), and InstanceMap::SetResetSchedule().
Definition at line 521 of file Map.h.
References ASSERT, i_grids, and MAX_NUMBER_OF_GRIDS.
Referenced by AddToActive(), AddToGrid(), AddToGrid(), AddToGrid(), CreatureRelocation(), EnsureGridCreated_i(), EnsureGridLoaded(), EnsureGridLoadedForActiveObject(), GameObjectRelocation(), GetUnloadLock(), IsGridLoaded(), isGridObjectDataLoaded(), IsRemovalGrid(), RemoveFromActive(), setGridObjectDataLoaded(), SetUnloadLock(), SetUnloadReferenceLock(), SwitchGridContainers(), SwitchGridContainers(), and Visit().
| bool Map::getObjectHitPos | ( | uint32 | phasemask, |
| float | x1, | ||
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| float & | rx, | ||
| float & | ry, | ||
| float & | rz, | ||
| float | modifyDist ) |
Definition at line 2237 of file Map.cpp.
References _dynamicTree.
Referenced by WorldObject::MovePositionToFirstCollision().
|
inlinevirtual |
Definition at line 451 of file Map.h.
References TEAM_OTHER.
Referenced by Guild::HandleGuildPartyRequest().
|
inline |
Definition at line 308 of file Map.h.
References m_parentMap, and Map().
|
inline |
Definition at line 407 of file Map.h.
References m_mapRefManager.
Referenced by AddToMap(), AggroAllPlayers(), Transport::BuildUpdate(), InstanceMap::CanEnter(), boss_gothik::boss_gothikAI::CheckGroupSplitted(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), boss_general_vezax::boss_general_vezaxAI::CheckShamanisticRage(), dummy_dragonAI::DoRaidWhisper(), ScriptedAI::DoTeleportAll(), npc_kalecgos::npc_kalecgosAI::DoWorkaroundForQuestCredit(), CreatureAI::DoZoneInCombat(), boss_lady_vashj::boss_lady_vashjAI::EnterCombat(), npc_gothik_minion::npc_gothik_minionAI::EnterEvadeMode(), LuaGlobalFunctions::GetPlayersInMap(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), kalecgos_teleporter::OnGossipHello(), boss_headless_horseman::boss_headless_horsemanAI::SelectRandomPlayer(), CreatureTextMgr::SendChatPacket(), CreatureTextMgr::SendNonChatPacket(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), Creature::SetInCombatWithZone(), boss_volazj::boss_volazjAI::SummonedCreatureDespawn(), boss_sathrovarr::boss_sathrovarrAI::TeleportAllPlayersBack(), Transport::TeleportTransport(), boss_cthun::cthunAI::UpdateAI(), boss_grandmaster_vorpil::boss_grandmaster_vorpilAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_the_lurker_below::boss_the_lurker_belowAI::UpdateAI(), npc_barnes::npc_barnesAI::UpdateAI(), npc_ethereal_sphere::npc_ethereal_sphereAI::UpdateAI(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), UpdateWorldState(), and npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached().
| uint32 Map::GetPlayersCountExceptGMs | ( | ) | const |
Definition at line 2516 of file Map.cpp.
References m_mapRefManager.
Referenced by InstanceMap::CanEnter(), LuaMap::GetPlayerCount(), and AchievementCriteriaData::Meets().
|
inline |
Definition at line 358 of file Map.h.
References i_spawnMode.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CanEnter(), TransportMgr::CreateLocalTransport(), SmartScript::FillScript(), GetDifficulty(), SpellMgr::GetSpellIdForDifficulty(), Unit::HandleAuraProc(), gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), IsVampire(), LuaGlobalFunctions::PerformIngameSpawn(), spell_bronjahm_magic_bane::spell_bronjahm_magic_bane_SpellScript::RecalculateDamage(), InstanceMap::SetResetSchedule(), and TransportMgr::SpawnLocalTransports().
| uint8 Map::GetTerrainType | ( | float | x, |
| float | y ) const |
Definition at line 3189 of file Map.cpp.
References _transports, GUID_HIPART(), and HIGHGUID_MO_TRANSPORT.
Referenced by ObjectAccessor::GetTransport(), and WorldSession::HandleMovementOpcodes().
|
inline |
Definition at line 288 of file Map.h.
References getNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getUnloadLock(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 267 of file Map.h.
References m_VisibleDistance.
Referenced by ActiveObjectsNearGrid(), WorldObject::GetGridActivationRange(), WorldObject::GetSightRange(), WorldObject::GetVisibilityRange(), AuraEffect::HandleFeignDeath(), and AuraEffect::HandleModPossessPet().
| float Map::GetWaterLevel | ( | float | x, |
| float | y ) const |
Definition at line 2195 of file Map.cpp.
References GetGrid(), and Map().
Referenced by go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), Player::IsUnderWater(), and instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss().
| float Map::GetWaterOrGroundLevel | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float * | ground = NULL, | ||
| bool | swim = false ) const |
Definition at line 1941 of file Map.cpp.
References GetGrid(), GetHeight(), getLiquidStatus(), LiquidData::level, Map(), MAP_ALL_LIQUIDS, PHASEMASK_NORMAL, and VMAP_INVALID_HEIGHT_VALUE.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), and WorldObject::UpdateAllowedPositionZ().
|
inline |
Definition at line 340 of file Map.h.
References GetAreaFlag(), GetId(), and GetZoneAndAreaIdByAreaFlag().
Referenced by WorldObject::GetZoneAndAreaId().
|
static |
Definition at line 2223 of file Map.cpp.
References GetAreaEntryByAreaFlagAndMap(), AreaTableEntry::m_ID, and AreaTableEntry::m_ParentAreaID.
Referenced by GetZoneAndAreaId(), and MapManager::GetZoneAndAreaId().
|
inline |
Definition at line 335 of file Map.h.
References GetAreaFlag(), GetId(), and GetZoneIdByAreaFlag().
Referenced by WorldObject::GetZoneId().
Definition at line 2213 of file Map.cpp.
References GetAreaEntryByAreaFlagAndMap(), AreaTableEntry::m_ID, and AreaTableEntry::m_ParentAreaID.
Referenced by GetZoneId(), and MapManager::GetZoneId().
|
inline |
Definition at line 397 of file Map.h.
References m_mapRefManager.
Referenced by BattlegroundMap::RemoveAllPlayers(), RemoveAllPlayers(), InstanceMap::Reset(), Group::ResetInstances(), InstanceMap::SetResetSchedule(), and InstanceMap::UnloadAll().
| void Map::InitializeObject | ( | Creature * | obj | ) |
Definition at line 492 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
| void Map::InitializeObject | ( | GameObject * | obj | ) |
Definition at line 498 of file Map.cpp.
References MapObject::_moveState, and MAP_OBJECT_CELL_MOVE_NONE.
|
private |
Definition at line 489 of file Map.cpp.
Referenced by AddToMap().
|
static |
Definition at line 206 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 BattlegroundMap, InstanceMap, and MapInstanced.
Definition at line 248 of file Map.cpp.
References World::GetMaxVisibleDistanceOnContinents(), World::GetVisibilityNotifyPeriodOnContinents(), m_VisibilityNotifyPeriod, and m_VisibleDistance.
Referenced by Map().
|
inline |
Definition at line 447 of file Map.h.
References _dynamicTree.
Referenced by GameObject::AddToWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
|
inline |
Definition at line 367 of file Map.h.
References i_mapEntry.
Referenced by InstanceSaveManager::_ResetInstance(), ObjectAccessor::AddCorpsesToGrid(), ObjectMgr::AddGOData(), MapManager::CreateMap(), MapManager::FindBaseNonInstanceMap(), MapManager::FindMap(), GameEventMgr::GameEventSpawn(), MapManager::GetNumInstances(), MapManager::GetNumPlayersInInstances(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), AuraEffect::HandlePreventResurrection(), misc_commandscript::HandleSummonCommand(), PoolGroup< T >::Spawn1Object(), ToMapInstanced(), and ToMapInstanced().
| bool Map::Is25ManRaid | ( | ) | const |
Definition at line 3063 of file Map.cpp.
References DIFFICULTY_25MAN_HEROIC, DIFFICULTY_25MAN_LFR, DIFFICULTY_25MAN_NORMAL, i_spawnMode, and sDifficultyStore.
Referenced by GameObject::Create(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::FilterTargets(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), and spell_the_lich_king_vile_spirits::spell_the_lich_king_vile_spirits_AuraScript::Load().
|
inline |
|
inline |
Definition at line 376 of file Map.h.
References i_mapEntry.
Referenced by AuraEffect::HandleAuraDummy(), LuaMap::IsBattleground(), Unit::RemoveCharmedBy(), and Unit::SetCharmedBy().
|
inline |
Definition at line 378 of file Map.h.
References i_mapEntry.
Referenced by ObjectAccessor::ConvertCorpseForPlayer(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstanceForPlayer(), DelayedUpdate(), misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), Player::LoadFromDB(), and WorldObject::SetZoneScript().
|
inline |
Definition at line 394 of file Map.h.
References marked_cells.
Referenced by ProcessRelocationNotifies(), and VisitNearbyCellsOf().
|
inline |
Definition at line 369 of file Map.h.
References i_mapEntry.
Referenced by boss_gothik::boss_gothikAI::CheckGroupSplitted(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), boss_general_vezax::boss_general_vezaxAI::CheckShamanisticRage(), dummy_dragonAI::DoRaidWhisper(), npc_gothik_minion::npc_gothik_minionAI::EnterEvadeMode(), AuraEffect::HandlePeriodicDummyAuraTick(), LuaMap::IsDungeon(), IsInstance(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), boss_headless_horseman::boss_headless_horsemanAI::SelectRandomPlayer(), boss_the_lurker_below::boss_the_lurker_belowAI::UpdateAI(), npc_ethereal_sphere::npc_ethereal_sphereAI::UpdateAI(), and npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached().
|
private |
Definition at line 594 of file Map.cpp.
References getNGrid(), CoordPair< LIMIT >::IsCoordValid(), isGridObjectDataLoaded(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
Definition at line 283 of file Map.h.
References Skyfire::ComputeGridCoord(), and IsGridLoaded().
Referenced by ObjectMgr::AddGOData(), CreatureCellRelocation(), GameEventMgr::GameEventSpawn(), GameObjectCellRelocation(), IsGridLoaded(), PoolGroup< T >::Spawn1Object(), SwitchGridContainers(), SwitchGridContainers(), Transport::UpdatePosition(), and Visit().
Definition at line 527 of file Map.h.
References getNGrid(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded().
Referenced by EnsureGridLoaded(), and IsGridLoaded().
| bool Map::IsHeroic | ( | ) | const |
Definition at line 3044 of file Map.cpp.
References DIFFICULTY_10MAN_HEROIC, DIFFICULTY_25MAN_HEROIC, DIFFICULTY_HEROIC, DIFFICULTY_SCE_HEROIC, i_spawnMode, and sDifficultyStore.
Referenced by npc_kalecgos::npc_kalecgosAI::DoWorkaroundForQuestCredit(), AuraEffect::HandleAuraDummy(), AuraEffect::HandlePeriodicDummyAuraTick(), instance_gundrak::instance_gundrak_InstanceMapScript::instance_gundrak_InstanceMapScript(), and LuaMap::IsHeroic().
| bool Map::isInLineOfSight | ( | float | x1, |
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| uint32 | phasemask ) const |
Definition at line 2231 of file Map.cpp.
References _dynamicTree, VMAP::VMapFactory::createOrGetVMapManager(), GetId(), and VMAP::IVMapManager::isInLineOfSight().
Referenced by WorldObject::IsWithinLOS().
|
inline |
Definition at line 368 of file Map.h.
References IsDungeon(), IsRaid(), and IsScenario().
Referenced by InstanceSaveManager::_ResetInstance(), InstanceSaveManager::_ResetOrWarnAll(), InstanceMap::AddPlayerToMap(), MapInstanced::CreateInstance(), TransportMgr::CreateTransport(), ScriptedAI::DoTeleportAll(), CreatureAI::DoZoneInCombat(), SmartScript::FillScript(), Skyfire::XP::Gain(), WorldObject::GetInstanceScript(), SpellMgr::GetSpellIdForDifficulty(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), instance_commandscript::HandleInstanceSaveDataCommand(), misc_commandscript::HandleSummonCommand(), Unit::Kill(), AchievementCriteriaData::Meets(), Condition::Meets(), lfg::LFGGroupScript::OnRemoveMember(), InstanceMap::PermBindAllPlayers(), Group::ResetInstances(), Player::ResetInstances(), InstanceSave::SaveToDB(), Creature::SetInCombatWithZone(), InstanceMap::SetResetSchedule(), lfg::LFGMgr::TeleportPlayer(), ToInstanceMap(), and ToInstanceMap().
| bool Map::IsInWater | ( | float | x, |
| float | y, | ||
| float | z, | ||
| LiquidData * | data = 0 ) const |
Definition at line 2256 of file Map.cpp.
References getLiquidStatus(), LIQUID_MAP_IN_WATER, LIQUID_MAP_UNDER_WATER, and MAP_ALL_LIQUIDS.
Referenced by Unit::IsInWater().
|
inline |
Definition at line 371 of file Map.h.
References i_mapEntry.
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and Player::RewardReputation().
| bool Map::IsOutdoors | ( | float | x, |
| float | y, | ||
| float | z ) const |
Definition at line 2025 of file Map.cpp.
References WMOAreaTableEntry::areaId, WMOAreaTableEntry::Flags, GetAreaEntryByAreaID(), GetAreaInfo(), GetWMOAreaTableEntryByTripple(), IsOutdoorWMO(), and SF_LOG_DEBUG.
Referenced by misc_commandscript::HandleGPSCommand().
|
inline |
Definition at line 372 of file Map.h.
References i_mapEntry.
Referenced by InstanceMap::CanEnter(), boss_ossirian::boss_ossirianAI::EnterCombat(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), IsInstance(), LuaMap::IsRaid(), IsRaidOrHeroicDungeon(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), kalecgos_teleporter::OnGossipHello(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), boss_sathrovarr::boss_sathrovarrAI::TeleportAllPlayersBack(), boss_cthun::cthunAI::UpdateAI(), and npc_barnes::npc_barnesAI::UpdateAI().
|
inline |
Definition at line 373 of file Map.h.
References DIFFICULTY_HEROIC, i_spawnMode, and IsRaid().
Referenced by Group::InCombatToInstance(), Unit::Kill(), and InstanceMap::SetResetSchedule().
|
inline |
Definition at line 364 of file Map.h.
References GetDifficulty().
Referenced by InstanceMap::GetMaxPlayers().
|
inline |
Definition at line 277 of file Map.h.
References Skyfire::ComputeGridCoord(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), getNGrid(), GRID_STATE_REMOVAL, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by ObjectAccessor::ConvertCorpseForPlayer().
|
inline |
| bool Map::IsUnderWater | ( | float | x, |
| float | y, | ||
| float | z ) const |
Definition at line 2263 of file Map.cpp.
References getLiquidStatus(), LIQUID_MAP_UNDER_WATER, MAP_LIQUID_TYPE_OCEAN, and MAP_LIQUID_TYPE_WATER.
Referenced by WorldSession::HandleMovementOpcodes(), and Unit::IsUnderWater().
| void Map::LoadGrid | ( | float | x, |
| float | y ) |
Definition at line 455 of file Map.cpp.
References EnsureGridLoaded().
Referenced by npc_lorekeeper::OnGossipSelect(), and FlightPathMovementGenerator::PreloadEndGrid().
|
private |
Definition at line 151 of file Map.cpp.
References GetId(), GridMaps, i_InstanceId, m_parentMap, SF_LOG_ERROR, SF_LOG_INFO, sScriptMgr, and sWorld.
Referenced by LoadMapAndVMap().
|
private |
Definition at line 195 of file Map.cpp.
References i_InstanceId, LoadMap(), LoadMMap(), and LoadVMap().
Referenced by EnsureGridCreated_i().
|
private |
Definition at line 123 of file Map.cpp.
References MMAP::MMapFactory::createOrGetMMapManager(), GetId(), GetMapName(), MMAP::MMapManager::loadMap(), SF_LOG_INFO, and sWorld.
Referenced by LoadMapAndVMap().
| void Map::LoadRespawnTimes | ( | ) |
Definition at line 3272 of file Map.cpp.
References _creatureRespawnTimes, _goRespawnTimes, CHAR_SEL_CREATURE_RESPAWNS, CHAR_SEL_GO_RESPAWNS, CharacterDatabase, GetId(), GetInstanceId(), Field::GetUInt32(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by MapManager::CreateBaseMap(), and MapInstanced::CreateInstance().
|
private |
Definition at line 133 of file Map.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), GetId(), GetMapName(), VMAP::IVMapManager::loadMap(), SF_LOG_DEBUG, SF_LOG_INFO, sWorld, VMAP::VMAP_LOAD_RESULT_ERROR, VMAP::VMAP_LOAD_RESULT_IGNORED, and VMAP::VMAP_LOAD_RESULT_OK.
Referenced by LoadMapAndVMap().
|
inline |
| void Map::MoveAllCreaturesInMoveList | ( | ) |
Definition at line 1015 of file Map.cpp.
References _creaturesToMove, _creatureToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), Skyfire::Maps::ConsumeMoveQueueEntry(), CreatureCellRelocation(), CreatureRespawnRelocation(), WorldObject::FindMap(), Object::GetEntry(), Object::GetGUIDLow(), Unit::GetVehicleKit(), Object::IsInWorld(), Unit::IsPet(), Unit::IsVehicle(), Position::m_positionX, Position::m_positionY, PET_SAVE_NOT_IN_SLOT, Position::Relocate(), Vehicle::RelocatePassengers(), SF_LOG_DEBUG, and Unit::UpdateObjectVisibility().
Referenced by UnloadGrid(), and Update().
| void Map::MoveAllGameObjectsInMoveList | ( | ) |
Definition at line 1067 of file Map.cpp.
References _gameObjectsToMove, _gameObjectsToMoveLock, MapObject::_moveState, MapObject::_newPosition, AddObjectToRemoveList(), Skyfire::Maps::ConsumeMoveQueueEntry(), WorldObject::FindMap(), GameObjectCellRelocation(), GameObjectRespawnRelocation(), Object::GetEntry(), Object::GetGUIDLow(), Object::IsInWorld(), Position::m_positionX, Position::m_positionY, Position::Relocate(), SF_LOG_DEBUG, GameObject::UpdateModelPosition(), and WorldObject::UpdateObjectVisibility().
Referenced by UnloadGrid(), and Update().
| void Map::PlayerRelocation | ( | Player * | player, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation ) |
If hovering, always increase our server-side Z position Client automatically projects correct position based on Z coord sent in monster move and UNIT_FIELD_HOVER_HEIGHT sent in object updates
Definition at line 877 of file Map.cpp.
References AddToGrid(), ASSERT, Cell::CellX(), Cell::CellY(), Cell::DiffCell(), Cell::DiffGrid(), EnsureGridLoadedForActiveObject(), Object::GetFloatValue(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetVehicleKit(), Cell::GridX(), Cell::GridY(), Unit::HasUnitMovementFlag(), Unit::IsVehicle(), MOVEMENTFLAG_HOVER, Position::Relocate(), Vehicle::RelocatePassengers(), GridObject< T >::RemoveFromGrid(), SF_LOG_DEBUG, UNIT_FIELD_HOVER_HEIGHT, and Player::UpdateObjectVisibility().
Referenced by Transport::UpdatePassengerPositions(), and Unit::UpdatePosition().
| void Map::PreserveTransportVisibility | ( | std::set< uint64 > & | guids | ) | const |
Definition at line 2375 of file Map.cpp.
References _transports.
|
private |
Definition at line 731 of file Map.cpp.
References GridRefManager< OBJECT >::begin(), GridRefManager< OBJECT >::end(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getGridInfoRef(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), GridInfo::getRelocationTimer(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), GRID_STATE_ACTIVE, isCellMarked(), m_VisibilityNotifyPeriod, MAX_NUMBER_OF_CELLS, MAX_VISIBILITY_DISTANCE, Cell::SetNoCreate(), TOTAL_NUMBER_OF_CELLS_PER_MAP, PeriodicTimer::TPassed(), PeriodicTimer::TReset(), PeriodicTimer::TUpdate(), Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
| void Map::RemoveAllObjectsInRemoveList | ( | ) |
Definition at line 2448 of file Map.cpp.
References Unit::CleanupsBeforeDelete(), ObjectAccessor::GetCorpse(), Object::GetGUID(), Object::GetGUIDLow(), Object::GetTypeId(), i_objectsToRemove, i_objectsToSwitch, WorldObject::IsPermanentWorldObject(), RemoveFromMap(), SF_LOG_ERROR, SwitchGridContainers(), Object::ToCreature(), Object::ToGameObject(), TYPEID_AREATRIGGER, TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by DelayedUpdate(), and UnloadGrid().
|
virtual |
Reimplemented in BattlegroundMap.
Definition at line 1364 of file Map.cpp.
References GetId(), WorldObject::GetName(), Position::GetOrientation(), HavePlayers(), Player::IsBeingTeleportedFar(), Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, m_mapRefManager, SF_LOG_ERROR, and Player::TeleportTo().
|
private |
Definition at line 992 of file Map.cpp.
References _creatureToMoveLock, MapObject::_moveState, and Skyfire::Maps::MarkMoveQueueEntryInactive().
Referenced by CreatureRelocation().
| void Map::RemoveCreatureRespawnTime | ( | uint32 | dbGuid | ) |
Definition at line 3231 of file Map.cpp.
References _creatureRespawnTimes, CHAR_DEL_CREATURE_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by Creature::DeleteFromDB(), FindSceneActor(), ResetCryForTheMoonActor(), Creature::Respawn(), and SaveCreatureRespawnTime().
| void Map::RemoveFromActive | ( | Creature * | c | ) |
Definition at line 2613 of file Map.cpp.
References Skyfire::ComputeGridCoord(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::decUnloadActiveLock(), Creature::GetDBTableGUIDLow(), Object::GetEntry(), Object::GetGUIDLow(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Creature::GetRespawnPosition(), CoordPair< LIMIT >::IsCoordValid(), Unit::IsPet(), RemoveFromActiveHelper(), SF_LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::RemoveFromActive | ( | DynamicObject * | obj | ) |
Definition at line 2642 of file Map.cpp.
References RemoveFromActiveHelper().
| void Map::RemoveFromActive | ( | T * | obj | ) |
Definition at line 2610 of file Map.cpp.
Referenced by RemoveFromMap(), and WorldObject::setActive().
|
inlineprivate |
Definition at line 606 of file Map.h.
References m_activeNonPlayers, and m_activeNonPlayersIter.
Referenced by RemoveFromActive(), and RemoveFromActive().
| void Map::RemoveFromMap | ( | T * | obj, |
| bool | remove ) |
Definition at line 826 of file Map.cpp.
References CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, DeleteFromWorld(), RemoveFromActive(), sBattlePetSpawnMgr, sWorld, and Object::ToCreature().
Referenced by Creature::FarTeleportTo(), RemoveAllObjectsInRemoveList(), and Transport::TeleportTransport().
| void Map::RemoveFromMap | ( | Transport * | obj, |
| bool | remove ) |
Definition at line 850 of file Map.cpp.
References _transports, _transportsUpdateIter, CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, DeleteFromWorld(), GameObject::RemoveFromWorld(), WorldObject::ResetMap(), GameObject::SaveRespawnTime(), and sWorld.
|
private |
Definition at line 1010 of file Map.cpp.
References _gameObjectsToMoveLock, MapObject::_moveState, and Skyfire::Maps::MarkMoveQueueEntryInactive().
Referenced by GameObjectRelocation().
|
inline |
Definition at line 446 of file Map.h.
References _dynamicTree.
Referenced by GameObject::RemoveFromWorld(), GameObject::UpdateModel(), and GameObject::UpdateModelPosition().
| void Map::RemoveGORespawnTime | ( | uint32 | dbGuid | ) |
Definition at line 3261 of file Map.cpp.
References _goRespawnTimes, CHAR_DEL_GO_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by GameObject::DeleteFromDB(), GameObject::LoadGameObjectFromDB(), GameObject::Respawn(), and SaveGORespawnTime().
|
virtual |
Reimplemented in BattlegroundMap, and InstanceMap.
Definition at line 808 of file Map.cpp.
References ASSERT, DeleteFromWorld(), GridObject< T >::IsInGrid(), GridObject< T >::RemoveFromGrid(), Player::RemoveFromWorld(), SendRemoveTransports(), sScriptMgr, and Player::UpdateObjectVisibility().
Referenced by WorldSession::HandleMoveWorldportAckOpcode(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::RemovePlayerFromMap(), and Player::TeleportTo().
|
inline |
Definition at line 402 of file Map.h.
References i_worldObjects.
Referenced by SwitchGridContainers(), and SwitchGridContainers().
|
inline |
Definition at line 294 of file Map.h.
References i_gridExpiry, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::ResetTimeTracker().
Referenced by EnsureGridLoadedForActiveObject(), ActiveState::Update(), IdleState::Update(), and RemovalState::Update().
|
inline |
| void Map::SaveCreatureRespawnTime | ( | uint32 | dbGuid, |
| time_t | respawnTime ) |
Definition at line 3212 of file Map.cpp.
References _creatureRespawnTimes, CHAR_REP_CREATURE_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), RemoveCreatureRespawnTime(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by Creature::SaveRespawnTime().
| void Map::SaveGORespawnTime | ( | uint32 | dbGuid, |
| time_t | respawnTime ) |
Definition at line 3242 of file Map.cpp.
References _goRespawnTimes, CHAR_REP_GO_RESPAWN, CharacterDatabase, GetId(), GetInstanceId(), RemoveGORespawnTime(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by GameObject::SaveRespawnTime().
| void Map::ScriptCommandStart | ( | ScriptInfo const & | script, |
| uint32 | delay, | ||
| Object * | source, | ||
| Object * | target ) |
Definition at line 60 of file MapScripts.cpp.
References Object::GetGUID(), Object::GetTypeId(), i_scriptLock, m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), ScriptAction::sourceGUID, sScriptMgr, sWorld, ScriptAction::targetGUID, and TYPEID_ITEM.
|
private |
Process queued scripts.
Definition at line 274 of file MapScripts.cpp.
References _FindGameObject(), _GetScriptCreature(), _GetScriptCreatureSourceOrTarget(), _GetScriptPlayer(), _GetScriptPlayerSourceOrTarget(), _GetScriptUnit(), _GetScriptWorldObject(), _ScriptProcessDoor(), AddToMap(), ScriptInfo::Amount, Player::AreaExploredOrEventHappens(), ScriptInfo::CallScript, ScriptInfo::CastSpell, Unit::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, Skyfire::ComputeCellCoord(), ScriptInfo::CreateItem, ScriptInfo::CreatureEntry, ScriptInfo::DespawnDelay, ScriptInfo::DespawnSelf, ScriptInfo::DestX, ScriptInfo::DestY, ScriptInfo::DestZ, ScriptInfo::Distance, ScriptInfo::Emote, ScriptInfo::EmoteID, ScriptInfo::Equip, EQUIP_ERR_OK, ScriptInfo::EquipmentID, Player::FailQuest(), ScriptInfo::FieldID, ScriptInfo::FieldSet, ScriptInfo::FieldValue, HashMapHolder< T >::Find(), ScriptInfo::Flags, ScriptInfo::FlagToggle, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_TRAP, GetClosestCreatureWithEntry(), ScriptInfo::GetDebugInfo(), WorldObject::GetDistance(), Object::GetEntry(), GameObject::GetGoType(), WorldObject::GetGridActivationRange(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetMap(), ObjectAccessor::GetObjectInWorld(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), GetScriptsMapByType(), Object::GetTypeId(), GO_READY, ScriptInfo::GOGuid, GUID_HIPART(), HIGHGUID_CORPSE, HIGHGUID_GAMEOBJECT, HIGHGUID_ITEM, HIGHGUID_MO_TRANSPORT, HIGHGUID_PET, HIGHGUID_PLAYER, HIGHGUID_TRANSPORT, HIGHGUID_UNIT, HIGHGUID_VEHICLE, IS_PLAYER_GUID(), ScriptInfo::IsRepeatable, GameObject::isSpawned(), Object::isType(), WorldObject::IsWithinDistInMap(), ScriptInfo::ItemEntry, JUST_DIED, ScriptInfo::Kill, ScriptInfo::KillCredit, LANG_UNIVERSAL, ScriptInfo::LoadPath, m_scriptSchedule, MAKE_NEW_GUID(), ScriptInfo::MapID, ScriptInfo::Model, ScriptInfo::ModelID, Unit::MonsterMoveWithSpeed(), ScriptInfo::MoveTo, ScriptInfo::MovieID, Unit::NearTeleportTo(), NULL_BAG, NULL_SLOT, OBJECT_FIELD_ENTRY_ID, ScriptInfo::Orientation, ScriptAction::ownerGUID, ScriptInfo::PathID, WorldObject::PlayDistanceSound(), ScriptInfo::PlayMovie, ScriptInfo::PlaySound, ScriptInfo::PosX, ScriptInfo::PosY, ScriptInfo::PosZ, ScriptInfo::QuestExplored, ScriptInfo::QuestID, ScriptInfo::RemoveAura, ScriptInfo::RemoveCorpse, ScriptInfo::RespawnGameobject, ScriptAction::script, SCRIPT_COMMAND_ACTIVATE_OBJECT, SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT, SCRIPT_COMMAND_CAST_SPELL, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_CLOSE_GOSSIP, SCRIPT_COMMAND_CREATE_ITEM, SCRIPT_COMMAND_DESPAWN_SELF, SCRIPT_COMMAND_EMOTE, SCRIPT_COMMAND_EQUIP, SCRIPT_COMMAND_FIELD_SET, SCRIPT_COMMAND_FLAG_REMOVE, SCRIPT_COMMAND_FLAG_SET, SCRIPT_COMMAND_KILL, SCRIPT_COMMAND_KILL_CREDIT, SCRIPT_COMMAND_LOAD_PATH, SCRIPT_COMMAND_MODEL, SCRIPT_COMMAND_MOVE_TO, SCRIPT_COMMAND_OPEN_DOOR, SCRIPT_COMMAND_ORIENTATION, SCRIPT_COMMAND_PLAY_SOUND, SCRIPT_COMMAND_PLAYMOVIE, SCRIPT_COMMAND_QUEST_EXPLORED, SCRIPT_COMMAND_REMOVE_AURA, SCRIPT_COMMAND_RESPAWN_GAMEOBJECT, SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_TELEPORT_TO, SCRIPT_COMMAND_TEMP_SUMMON_CREATURE, ScriptInfo::ScriptID, ScriptsStart(), ScriptInfo::ScriptType, ScriptInfo::SearchRadius, GameObject::SetLootState(), GameObject::SetRespawnTime(), SF_CASTSPELL_SEARCH_CREATURE, SF_CASTSPELL_SOURCE_TO_SOURCE, SF_CASTSPELL_SOURCE_TO_TARGET, SF_CASTSPELL_TARGET_TO_SOURCE, SF_CASTSPELL_TARGET_TO_TARGET, SF_CASTSPELL_TRIGGERED, SF_EMOTE_USE_STATE, SF_KILLCREDIT_REWARD_GROUP, SF_LOG_ERROR, SF_ORIENTATION_FACE_TARGET, SF_PLAYSOUND_DISTANCE_SOUND, SF_PLAYSOUND_TARGET_PLAYER, SF_REMOVEAURA_REVERSE, SF_TALK_USE_PLAYER, SF_TELEPORT_USE_CREATURE, sObjectMgr, ScriptInfo::SoundID, ScriptAction::sourceGUID, ScriptInfo::SpellID, sScriptMgr, sWaypointMgr, sWorld, ScriptInfo::Talk, ScriptAction::targetGUID, ScriptInfo::TeleportTo, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, ScriptInfo::TempSummonCreature, ScriptInfo::TextID, Object::ToGameObject(), Object::ToPlayer(), GameObject::ToTransport(), Object::ToUnit(), ScriptInfo::TravelTime, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_UNIT, TYPEMASK_UNIT, UI64FMTD, UNIT_FIELD_NPC_EMOTESTATE, and Cell::Visit().
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 22 of file MapScripts.cpp.
References Object::GetGUID(), Object::GetTypeId(), i_scriptLock, m_scriptSchedule, ScriptAction::ownerGUID, ScriptAction::script, ScriptsProcess(), ScriptAction::sourceGUID, sScriptMgr, sWorld, ScriptAction::targetGUID, and TYPEID_ITEM.
Referenced by FlightPathMovementGenerator::DoEventIfAny(), Transport::DoEventIfAny(), WaypointMovementGenerator< Creature >::OnArrived(), ScriptsProcess(), Spell::SendLoot(), and GameObject::Use().
|
private |
Definition at line 2312 of file Map.cpp.
References Player::BuildCreateUpdateBlockForPlayer(), UpdateData::BuildPacket(), Object::GetGUIDLow(), WorldLocation::GetMapId(), Player::GetSession(), WorldObject::GetTransport(), Player::HaveAtClient(), WorldSession::SendPacket(), and SF_LOG_INFO.
Referenced by AddPlayerToMap().
| void Map::SendInitTransports | ( | Player * | player | ) |
Definition at line 2344 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldLocation::GetMapId(), Player::GetSession(), WorldObject::GetTransport(), Player::m_clientGUIDs, and WorldSession::SendPacket().
Referenced by AddPlayerToMap(), and BattlegroundIC::SetupBattleground().
| void Map::SendRemoveTransports | ( | Player * | player | ) |
Definition at line 2362 of file Map.cpp.
References _transports, UpdateData::BuildPacket(), WorldLocation::GetMapId(), Player::GetSession(), WorldObject::GetTransport(), and WorldSession::SendPacket().
Referenced by RemovePlayerFromMap().
| void Map::SendToPlayers | ( | WorldPacket const * | data | ) | const |
Definition at line 2525 of file Map.cpp.
References m_mapRefManager.
Referenced by boss_ossirian::boss_ossirianAI::EnterCombat().
Definition at line 528 of file Map.h.
References getNGrid(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setGridObjectDataLoaded().
Referenced by EnsureGridLoaded().
Definition at line 2381 of file Map.cpp.
References ASSERT, i_grids, MAX_NUMBER_OF_GRIDS, and SF_LOG_ERROR.
Referenced by EnsureGridCreated_i(), Map(), and UnloadGrid().
|
inlineprivate |
Definition at line 494 of file Map.h.
References i_gridExpiry, and MIN_GRID_DELAY.
|
inline |
Definition at line 289 of file Map.h.
References getNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadExplicitLock(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlineprotected |
Definition at line 536 of file Map.h.
References getNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadReferenceLock(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by MapInstanced::AddGridMapReference(), and MapInstanced::RemoveGridMapReference().
| TempSummon * Map::SummonCreature | ( | uint32 | entry, |
| Position const & | pos, | ||
| SummonPropertiesEntry const * | properties = NULL, | ||
| uint32 | duration = 0, | ||
| Unit * | summoner = NULL, | ||
| uint32 | spellId = 0, | ||
| uint32 | vehId = 0 ) |
Definition at line 2564 of file Object.cpp.
References AddToMap(), SummonPropertiesEntry::Category, Creature::Create(), SummonPropertiesEntry::Flags, Position::GetOrientation(), WorldObject::GetPhaseMask(), WorldObject::GetPhases(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeam(), Object::GetTypeId(), HIGHGUID_UNIT, TempSummon::InitStats(), TempSummon::InitSummon(), PHASEMASK_NORMAL, Creature::SetHomePosition(), Unit::SetPhased(), Object::SetUInt32Value(), sObjectMgr, SUMMON_CATEGORY_ALLY, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_PUPPET, SUMMON_CATEGORY_UNK, SUMMON_CATEGORY_VEHICLE, SUMMON_CATEGORY_WILD, SUMMON_TYPE_GUARDIAN, SUMMON_TYPE_GUARDIAN2, SUMMON_TYPE_LIGHTWELL, SUMMON_TYPE_MINION, SUMMON_TYPE_MINIPET, SUMMON_TYPE_STATUE, SUMMON_TYPE_TOTEM, SUMMON_TYPE_VEHICLE, SUMMON_TYPE_VEHICLE2, Object::ToCreature(), Object::ToPlayer(), SummonPropertiesEntry::Type, TYPEID_PLAYER, UNIT_FIELD_CREATED_BY_SPELL, UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, UNIT_MASK_PUPPET, UNIT_MASK_SUMMON, and UNIT_MASK_TOTEM.
Referenced by spell_halion_damage_aoe_summon::spell_halion_damage_aoe_summon_SpellScript::HandleSummon(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), at_sindragosa_lair::OnTrigger(), LuaGlobalFunctions::PerformIngameSpawn(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), SummonCreatureGroup(), LuaUnit::SummonGuardian(), and Spell::SummonGuardian().
| void Map::SummonCreatureGroup | ( | uint8 | group, |
| std::list< TempSummon * > * | list = NULL ) |
Summons group of creatures.
| group | Id of group to summon. |
| list | List to store pointers to summoned creatures. |
Definition at line 2675 of file Object.cpp.
References GetId(), sObjectMgr, SummonCreature(), and SUMMONER_TYPE_MAP.
| void Map::SwitchGridContainers | ( | Creature * | obj, |
| bool | on ) |
Definition at line 291 of file Map.cpp.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), AddWorldObject(), ASSERT, Cell::CellX(), Cell::CellY(), Skyfire::ComputeCellCoord(), Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::grid_x, Cell::grid_y, Cell::GridX(), Cell::GridY(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), WorldObject::IsPermanentWorldObject(), Creature::m_isTempWorldObject, Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), SF_LOG_DEBUG, SF_LOG_ERROR, UI64FMTD, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::SwitchGridContainers | ( | GameObject * | obj, |
| bool | on ) |
Definition at line 328 of file Map.cpp.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), AddWorldObject(), ASSERT, Cell::CellX(), Cell::CellY(), Skyfire::ComputeCellCoord(), Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), Object::GetGUID(), getNGrid(), Position::GetPositionX(), Position::GetPositionY(), Cell::grid_x, Cell::grid_y, Cell::GridX(), Cell::GridY(), CoordPair< LIMIT >::IsCoordValid(), IsGridLoaded(), WorldObject::IsPermanentWorldObject(), Cell::Part, GridObject< T >::RemoveFromGrid(), RemoveWorldObject(), SF_LOG_DEBUG, SF_LOG_ERROR, UI64FMTD, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
| void Map::SwitchGridContainers | ( | T * | obj, |
| bool | on ) |
Definition at line 288 of file Map.cpp.
Referenced by RemoveAllObjectsInRemoveList().
|
inline |
Definition at line 440 of file Map.h.
References IsInstance().
Referenced by TransportMgr::CreateTransport(), GetBaradinHoldAI(), GetFirelandsAI(), GetHallsOfOriginationAI(), GetIcecrownCitadelAI(), GetInstanceAI(), GetRubySanctumAI(), GetRubySanctumAI(), and GetZulAmanAI().
|
inline |
Definition at line 441 of file Map.h.
References IsInstance().
|
inline |
Definition at line 437 of file Map.h.
References Instanceable().
|
inline |
Definition at line 438 of file Map.h.
References Instanceable().
|
virtual |
Reimplemented in InstanceMap, and MapInstanced.
Definition at line 1381 of file Map.cpp.
References _creaturesToMove, _gameObjectsToMove, GridRefManager< OBJECT >::begin(), GridRefManager< OBJECT >::end(), and UnloadGrid().
Referenced by MapInstanced::DestroyInstance(), InstanceMap::UnloadAll(), MapInstanced::UnloadAll(), and ~Map().
| bool Map::UnloadGrid | ( | NGridType & | ngrid, |
| bool | pForce ) |
Definition at line 1285 of file Map.cpp.
References ActiveObjectsNearGrid(), ASSERT, MMAP::MMapFactory::createOrGetMMapManager(), VMAP::VMapFactory::createOrGetVMapManager(), GetId(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetWorldObjectCountInNGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY(), GridMaps, i_InstanceId, i_objectsToRemove, m_parentMap, MAX_NUMBER_OF_GRIDS, MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), RemoveAllObjectsInRemoveList(), setNGrid(), SF_LOG_DEBUG, MMAP::MMapManager::unloadMap(), VMAP::IVMapManager::unloadMap(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllGrids().
Referenced by UnloadAll(), and RemovalState::Update().
|
virtual |
update worldsessions for existing players
update active cells around players and active objects
Reimplemented in InstanceMap, and MapInstanced.
Definition at line 631 of file Map.cpp.
References _dynamicTree, _transports, _transportsUpdateIter, Player::GetSession(), Player::GetViewpoint(), i_scriptLock, Object::IsInWorld(), m_activeNonPlayers, m_activeNonPlayersIter, m_mapRefIter, m_mapRefManager, m_scriptSchedule, MoveAllCreaturesInMoveList(), MoveAllGameObjectsInMoveList(), ProcessRelocationNotifies(), resetMarkedCells(), ScriptsProcess(), sScriptMgr, Object::ToCreature(), Object::ToDynObject(), Player::Update(), WorldObject::Update(), WorldSession::Update(), and VisitNearbyCellsOf().
Referenced by InstanceMap::Update(), and MapInstanced::Update().
|
private |
| void Map::UpdateIteratorBack | ( | Player * | player | ) |
Definition at line 3206 of file Map.cpp.
References Player::GetMapRef(), and m_mapRefIter.
Referenced by Player::ResetMap().
Definition at line 2298 of file Map.cpp.
References WorldObject::GetSightRange(), Skyfire::VisibleNotifier::SendToSelf(), Cell::SetNoCreate(), and Cell::Visit().
| void Map::UpdateObjectVisibility | ( | WorldObject * | obj, |
| Cell | cell, | ||
| CellCoord | cellpair ) |
Definition at line 2290 of file Map.cpp.
References WorldObject::GetVisibilityRange(), Cell::SetNoCreate(), and Cell::Visit().
|
inline |
Definition at line 686 of file Map.h.
References Cell::CellX(), Cell::CellY(), EnsureGridLoaded(), getNGrid(), Cell::GridX(), Cell::GridY(), IsGridLoaded(), Cell::NoCreate(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
Referenced by ProcessRelocationNotifies(), Cell::Visit(), Cell::VisitCircle(), and VisitNearbyCellsOf().
|
inline |
Definition at line 701 of file Map.h.
References Skyfire::ComputeCellCoord(), Cell::SetNoCreate(), and Cell::Visit().
Referenced by spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), Player::UpdateCinematicVisibility(), and WorldObject::VisitNearbyObject().
|
inline |
Definition at line 715 of file Map.h.
References Skyfire::ComputeCellCoord(), Cell::SetNoCreate(), and Cell::Visit().
Referenced by spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::CheckIfCorpseNear(), and spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::CheckIfCorpseNear().
|
inline |
Definition at line 742 of file Map.h.
References Skyfire::ComputeCellCoord(), Cell::SetNoCreate(), and Cell::Visit().
Referenced by WorldObject::VisitNearbyGridObject().
| void Map::VisitNearbyCellsOf | ( | WorldObject * | obj, |
| TypeContainerVisitor< Skyfire::ObjectUpdater, GridTypeMapContainer > & | gridVisitor, | ||
| TypeContainerVisitor< Skyfire::ObjectUpdater, WorldTypeMapContainer > & | worldVisitor ) |
Definition at line 602 of file Map.cpp.
References Cell::CalculateCellArea(), WorldObject::GetGridActivationRange(), Position::GetPositionX(), Position::GetPositionY(), CellArea::high_bound, isCellMarked(), Position::IsPositionValid(), CellArea::low_bound, markCell(), Cell::SetNoCreate(), TOTAL_NUMBER_OF_CELLS_PER_MAP, Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Update().
|
inline |
Definition at line 731 of file Map.h.
References Skyfire::ComputeCellCoord(), Cell::SetNoCreate(), and Cell::Visit().
Referenced by WorldObject::VisitNearbyWorldObject().
|
friend |
Definition at line 239 of file Map.h.
References Map(), and MapReference.
Referenced by MapReference.
|
private |
Definition at line 622 of file Map.h.
Referenced by DeleteRespawnTimes(), GetCreatureRespawnTime(), LoadRespawnTimes(), RemoveCreatureRespawnTime(), and SaveCreatureRespawnTime().
|
private |
Definition at line 508 of file Map.h.
Referenced by AddCreatureToMoveList(), MoveAllCreaturesInMoveList(), and UnloadAll().
|
private |
Definition at line 507 of file Map.h.
Referenced by AddCreatureToMoveList(), Map(), MoveAllCreaturesInMoveList(), and RemoveCreatureFromMoveList().
|
protected |
Definition at line 546 of file Map.h.
Referenced by Balance(), ContainsGameObjectModel(), GetHeight(), getObjectHitPos(), InsertGameObjectModel(), isInLineOfSight(), RemoveGameObjectModel(), and Update().
|
private |
Definition at line 511 of file Map.h.
Referenced by AddGameObjectToMoveList(), MoveAllGameObjectsInMoveList(), and UnloadAll().
|
private |
Definition at line 510 of file Map.h.
Referenced by AddGameObjectToMoveList(), Map(), MoveAllGameObjectsInMoveList(), and RemoveGameObjectFromMoveList().
|
private |
Definition at line 623 of file Map.h.
Referenced by DeleteRespawnTimes(), GetGORespawnTime(), LoadRespawnTimes(), RemoveGORespawnTime(), and SaveGORespawnTime().
|
protected |
Definition at line 559 of file Map.h.
Referenced by AddToMap(), GetTransport(), Map(), PreserveTransportVisibility(), RemoveFromMap(), SendInitTransports(), SendRemoveTransports(), Update(), and ~Map().
|
protected |
Definition at line 560 of file Map.h.
Referenced by Map(), RemoveFromMap(), and Update().
| CreatureGroupHolderType Map::CreatureGroupHolder |
Definition at line 426 of file Map.h.
Referenced by FormationMgr::AddCreatureToGroup(), and FormationMgr::RemoveCreatureFromGroup().
|
protected |
Definition at line 539 of file Map.h.
Referenced by EnsureGridCreated().
|
private |
Definition at line 579 of file Map.h.
Referenced by EnsureGridCreated_i(), GetGrid(), LoadMap(), Map(), and UnloadGrid().
|
private |
Definition at line 572 of file Map.h.
Referenced by EnsureGridCreated_i(), GetGridExpiry(), Map(), ResetGridExpiry(), and SetTimer().
|
private |
Definition at line 578 of file Map.h.
Referenced by getNGrid(), and setNGrid().
|
protected |
Definition at line 543 of file Map.h.
Referenced by InstanceMap::CreateInstanceData(), EnsureGridCreated_i(), EnsureGridLoaded(), GetInstanceId(), LoadMap(), LoadMapAndVMap(), Map(), UnloadGrid(), and ~Map().
|
protected |
Definition at line 541 of file Map.h.
Referenced by GetAreaFlag(), GetEntrancePos(), GetEntry(), GetId(), GetMapName(), Instanceable(), IsBattleArena(), IsBattleground(), IsBattlegroundOrArena(), IsDungeon(), IsNonRaidInstance(), IsRaid(), IsScenario(), and Map().
|
private |
Definition at line 587 of file Map.h.
Referenced by AddObjectToRemoveList(), RemoveAllObjectsInRemoveList(), and UnloadGrid().
|
private |
Definition at line 588 of file Map.h.
Referenced by AddObjectToSwitchList(), and RemoveAllObjectsInRemoveList().
|
private |
Definition at line 586 of file Map.h.
Referenced by Map(), ScriptCommandStart(), ScriptsStart(), and Update().
|
protected |
Definition at line 542 of file Map.h.
Referenced by GetSpawnMode(), Is25ManRaid(), IsHeroic(), IsRaidOrHeroicDungeon(), and Map().
|
private |
Definition at line 589 of file Map.h.
Referenced by AddWorldObject(), RemoveWorldObject(), and ~Map().
|
protected |
Definition at line 538 of file Map.h.
Referenced by BattlegroundMap::AddPlayerToMap(), InstanceMap::AddPlayerToMap(), MapInstanced::CreateBattleground(), and MapInstanced::CreateInstance().
|
protected |
Definition at line 554 of file Map.h.
Referenced by ActiveObjectsNearGrid(), AddToActiveHelper(), Map(), RemoveFromActiveHelper(), and Update().
|
protected |
Definition at line 555 of file Map.h.
Referenced by Map(), RemoveFromActiveHelper(), and Update().
|
protected |
Definition at line 549 of file Map.h.
Referenced by Update(), and UpdateIteratorBack().
|
protected |
Definition at line 548 of file Map.h.
Referenced by ActiveObjectsNearGrid(), GetPlayers(), GetPlayersCountExceptGMs(), HavePlayers(), InstanceMap::PermBindAllPlayers(), BattlegroundMap::RemoveAllPlayers(), RemoveAllPlayers(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), InstanceMap::SendResetWarnings(), SendToPlayers(), MapReference::sourceObjectDestroyLink(), MapReference::targetObjectBuildLink(), MapReference::targetObjectDestroyLink(), and Update().
|
private |
Definition at line 576 of file Map.h.
Referenced by GetParent(), LoadMap(), Map(), and UnloadGrid().
|
private |
Definition at line 592 of file Map.h.
Referenced by ScriptCommandStart(), ScriptsProcess(), ScriptsStart(), Update(), and ~Map().
|
protected |
Definition at line 544 of file Map.h.
Referenced by InstanceMap::AddPlayerToMap(), CanUnload(), InstanceMap::InstanceMap(), Map(), InstanceMap::RemovePlayerFromMap(), InstanceMap::Reset(), and BattlegroundMap::SetUnload().
|
protected |
Definition at line 551 of file Map.h.
Referenced by BattlegroundMap::InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), InitVisibilityDistance(), Map(), and ProcessRelocationNotifies().
|
protected |
Definition at line 545 of file Map.h.
Referenced by GetVisibilityRange(), BattlegroundMap::InitVisibilityDistance(), InstanceMap::InitVisibilityDistance(), InitVisibilityDistance(), and Map().
|
private |
Definition at line 580 of file Map.h.
Referenced by isCellMarked(), markCell(), and resetMarkedCells().