|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Map.h>
Public Member Functions | |
| bool | AddPlayerToMap (Player *) OVERRIDE |
| BattlegroundMap (uint32 id, time_t, uint32 InstanceId, Map *_parent, uint8 spawnMode) | |
| bool | CanEnter (Player *player) OVERRIDE |
| Battleground * | GetBG () |
| virtual void | InitVisibilityDistance () OVERRIDE |
| void | RemoveAllPlayers () OVERRIDE |
| void | RemovePlayerFromMap (Player *, bool) OVERRIDE |
| void | SetBG (Battleground *bg) |
| void | SetUnload () |
| ~BattlegroundMap () | |
| Public Member Functions inherited from Map | |
| bool | ActiveObjectsNearGrid (NGridType const &ngrid) const |
| void | AddObjectToRemoveList (WorldObject *obj) |
| void | AddObjectToSwitchList (WorldObject *obj, bool on) |
| template<> | |
| void | AddToActive (Creature *c) |
| template<> | |
| void | AddToActive (DynamicObject *d) |
| template<class T> | |
| void | AddToActive (T *obj) |
| template<> | |
| void | AddToGrid (Creature *obj, Cell const &cell) |
| template<> | |
| void | AddToGrid (GameObject *obj, Cell const &cell) |
| template<class T> | |
| bool | AddToMap (T *) |
| template<> | |
| bool | AddToMap (Transport *obj) |
| void | AddWorldObject (WorldObject *obj) |
| void | Balance () |
| bool | CanUnload (uint32 diff) |
| bool | CheckGridIntegrity (Creature *c, bool moved) const |
| bool | ContainsGameObjectModel (const GameObjectModel &model) const |
| void | CreatureRelocation (Creature *creature, float x, float y, float z, float ang, bool respawnRelocationOnFail=true) |
| bool | CreatureRespawnRelocation (Creature *c, bool diffGridOnly) |
| virtual void | DelayedUpdate (const uint32 diff) |
| template<> | |
| void | DeleteFromWorld (Player *player) |
| void | DeleteRespawnTimes () |
| void | GameObjectRelocation (GameObject *go, float x, float y, float z, float orientation, bool respawnRelocationOnFail=true) |
| bool | GameObjectRespawnRelocation (GameObject *go, bool diffGridOnly) |
| uint16 | GetAreaFlag (float x, float y, float z, bool *isOutdoors=0) const |
| uint32 | GetAreaId (float x, float y, float z) const |
| bool | GetAreaInfo (float x, float y, float z, uint32 &mogpflags, int32 &adtId, int32 &rootId, int32 &groupId) const |
| Creature * | GetCreature (uint64 guid) |
| time_t | GetCreatureRespawnTime (uint32 dbGuid) const |
| DifficultyID | GetDifficulty () const |
| DynamicObject * | GetDynamicObject (uint64 guid) |
| bool | GetEntrancePos (int32 &mapid, float &x, float &y) |
| MapEntry const * | GetEntry () const |
| GameObject * | GetGameObject (uint64 guid) |
| time_t | GetGORespawnTime (uint32 dbGuid) const |
| time_t | GetGridExpiry (void) const |
| float | GetHeight (float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| float | GetHeight (uint32 phasemask, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
| uint32 | GetId (void) const |
| uint32 | GetInstanceId () const |
| time_t | GetLinkedRespawnTime (uint64 guid) const |
| ZLiquidStatus | getLiquidStatus (float x, float y, float z, uint8 ReqLiquidType, LiquidData *data=0) const |
| MapDifficulty const * | GetMapDifficulty () const |
| const char * | GetMapName () const |
| bool | getObjectHitPos (uint32 phasemask, float x1, float y1, float z1, float x2, float y2, float z2, float &rx, float &ry, float &rz, float modifyDist) |
| virtual uint32 | GetOwnerGuildId (uint32=TEAM_OTHER) const |
| Map const * | GetParent () const |
| PlayerList const & | GetPlayers () const |
| uint32 | GetPlayersCountExceptGMs () const |
| uint8 | GetSpawnMode () const |
| uint8 | GetTerrainType (float x, float y) const |
| Transport * | GetTransport (uint64 guid) |
| bool | GetUnloadLock (const GridCoord &p) const |
| float | GetVisibilityRange () const |
| float | GetWaterLevel (float x, float y) const |
| float | GetWaterOrGroundLevel (float x, float y, float z, float *ground=NULL, bool swim=false) const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid, float x, float y, float z) const |
| uint32 | GetZoneId (float x, float y, float z) const |
| bool | HavePlayers () const |
| template<> | |
| void | InitializeObject (Creature *obj) |
| template<> | |
| void | InitializeObject (GameObject *obj) |
| void | InsertGameObjectModel (const GameObjectModel &model) |
| bool | Instanceable () const |
| bool | Is25ManRaid () const |
| bool | IsBattleArena () const |
| bool | IsBattleground () const |
| bool | IsBattlegroundOrArena () const |
| bool | isCellMarked (uint32 pCellId) |
| bool | IsDungeon () const |
| bool | IsGridLoaded (float x, float y) const |
| bool | IsHeroic () const |
| bool | isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask) const |
| bool | IsInstance () const |
| bool | IsInWater (float x, float y, float z, LiquidData *data=0) const |
| bool | IsNonRaidInstance () const |
| bool | IsOutdoors (float x, float y, float z) const |
| bool | IsRaid () const |
| bool | IsRaidOrHeroicDungeon () const |
| bool | IsRegularDifficulty () const |
| bool | IsRemovalGrid (float x, float y) const |
| bool | IsScenario () const |
| bool | IsUnderWater (float x, float y, float z) const |
| void | LoadGrid (float x, float y) |
| void | LoadRespawnTimes () |
| Map (uint32 id, time_t, uint32 InstanceId, uint8 SpawnMode, Map *_parent=NULL) | |
| void | markCell (uint32 pCellId) |
| void | MoveAllCreaturesInMoveList () |
| void | MoveAllGameObjectsInMoveList () |
| void | PlayerRelocation (Player *, float x, float y, float z, float orientation) |
| void | PreserveTransportVisibility (std::set< uint64 > &guids) const |
| void | RemoveAllObjectsInRemoveList () |
| void | RemoveCreatureRespawnTime (uint32 dbGuid) |
| template<> | |
| void | RemoveFromActive (Creature *c) |
| template<> | |
| void | RemoveFromActive (DynamicObject *obj) |
| template<class T> | |
| void | RemoveFromActive (T *obj) |
| template<class T> | |
| void | RemoveFromMap (T *, bool) |
| template<> | |
| void | RemoveFromMap (Transport *obj, bool remove) |
| void | RemoveGameObjectModel (const GameObjectModel &model) |
| void | RemoveGORespawnTime (uint32 dbGuid) |
| void | RemoveWorldObject (WorldObject *obj) |
| void | ResetGridExpiry (NGridType &grid, float factor=1) const |
| void | resetMarkedCells () |
| void | SaveCreatureRespawnTime (uint32 dbGuid, time_t respawnTime) |
| void | SaveGORespawnTime (uint32 dbGuid, time_t respawnTime) |
| void | ScriptCommandStart (ScriptInfo const &script, uint32 delay, Object *source, Object *target) |
| void | ScriptsStart (std::map< uint32, std::multimap< uint32, ScriptInfo > > const &scripts, uint32 id, Object *source, Object *target) |
| Put scripts in the execution queue. | |
| void | SendInitTransports (Player *player) |
| void | SendRemoveTransports (Player *player) |
| void | SendToPlayers (WorldPacket const *data) const |
| void | SetUnloadLock (const GridCoord &p, bool on) |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=NULL, uint32 duration=0, Unit *summoner=NULL, uint32 spellId=0, uint32 vehId=0) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| template<> | |
| void | SwitchGridContainers (Creature *obj, bool on) |
| template<> | |
| void | SwitchGridContainers (GameObject *obj, bool on) |
| template<class T> | |
| void | SwitchGridContainers (T *obj, bool on) |
| InstanceMap * | ToInstanceMap () |
| const InstanceMap * | ToInstanceMap () const |
| MapInstanced * | ToMapInstanced () |
| const MapInstanced * | ToMapInstanced () const |
| 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 () |
Private Attributes | |
| Battleground * | m_bg |
| BattlegroundMap::BattlegroundMap | ( | uint32 | id, |
| time_t | expiry, | ||
| uint32 | InstanceId, | ||
| Map * | _parent, | ||
| uint8 | spawnMode ) |
Definition at line 3105 of file Map.cpp.
References InitVisibilityDistance(), m_bg, and Map::Map().
|
virtual |
Reimplemented from Map.
Definition at line 3146 of file Map.cpp.
References Map::AddPlayerToMap(), Map::Lock, and Player::m_InstanceValid.
|
virtual |
Reimplemented from Map.
Definition at line 3129 of file Map.cpp.
References ASSERT, Map::CanEnter(), Player::GetBattlegroundId(), Object::GetGUIDLow(), Map::GetInstanceId(), Player::GetMapRef(), Reference< TO, FROM >::getTarget(), and SF_LOG_ERROR.
|
inline |
|
virtual |
Reimplemented from Map.
Definition at line 3122 of file Map.cpp.
References World::GetMaxVisibleDistanceInBGArenas(), World::GetVisibilityNotifyPeriodInBGArenas(), Map::m_VisibilityNotifyPeriod, and Map::m_VisibleDistance.
Referenced by BattlegroundMap().
|
virtual |
Reimplemented from Map.
Definition at line 3170 of file Map.cpp.
References Map::HavePlayers(), and Map::m_mapRefManager.
Referenced by MapInstanced::DestroyInstance().
|
virtual |
Reimplemented from Map.
Definition at line 3159 of file Map.cpp.
References Map::GetInstanceId(), Map::GetMapName(), WorldObject::GetName(), Map::RemovePlayerFromMap(), and SF_LOG_INFO.
|
inline |
Definition at line 680 of file Map.h.
References m_bg.
Referenced by MapInstanced::CreateBattleground().
| void BattlegroundMap::SetUnload | ( | ) |
Definition at line 3165 of file Map.cpp.
References Map::m_unloadTimer, and MIN_UNLOAD_DELAY.
|
private |
Definition at line 682 of file Map.h.
Referenced by BattlegroundMap(), GetBG(), SetBG(), and ~BattlegroundMap().