AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Map.h"
Public Member Functions | |
BattlegroundMap (uint32 id, uint32 InstanceId, Map *_parent, uint8 spawnMode) | |
~BattlegroundMap () override | |
bool | AddPlayerToMap (Player *) override |
void | RemovePlayerFromMap (Player *, bool) override |
EnterState | CannotEnter (Player *player, bool loginCheck=false) override |
void | SetUnload () |
void | RemoveAllPlayers () override |
void | InitVisibilityDistance () override |
Battleground * | GetBG () |
void | SetBG (Battleground *bg) |
Public Member Functions inherited from Map | |
Map (uint32 id, uint32 InstanceId, uint8 SpawnMode, Map *_parent=nullptr) | |
~Map () override | |
MapEntry const * | GetEntry () const |
bool | CanUnload (uint32 diff) |
virtual bool | AddPlayerToMap (Player *) |
virtual void | RemovePlayerFromMap (Player *, bool) |
virtual void | AfterPlayerUnlinkFromMap () |
template<class T > | |
bool | AddToMap (T *, bool checkTransport=false) |
template<class T > | |
void | RemoveFromMap (T *, bool) |
void | VisitNearbyCellsOf (WorldObject *obj, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &worldVisitor, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &largeGridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &largeWorldVisitor) |
void | VisitNearbyCellsOfPlayer (Player *player, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &gridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &worldVisitor, TypeContainerVisitor< Acore::ObjectUpdater, GridTypeMapContainer > &largeGridVisitor, TypeContainerVisitor< Acore::ObjectUpdater, WorldTypeMapContainer > &largeWorldVisitor) |
virtual void | Update (const uint32, const uint32, bool thread=true) |
float | GetVisibilityRange () const |
void | SetVisibilityRange (float range) |
virtual void | InitVisibilityDistance () |
void | PlayerRelocation (Player *, float x, float y, float z, float o) |
void | CreatureRelocation (Creature *creature, float x, float y, float z, float o) |
void | GameObjectRelocation (GameObject *go, float x, float y, float z, float o) |
void | DynamicObjectRelocation (DynamicObject *go, float x, float y, float z, float o) |
template<class T , class CONTAINER > | |
void | Visit (const Cell &cell, TypeContainerVisitor< T, CONTAINER > &visitor) |
bool | IsRemovalGrid (float x, float y) const |
bool | IsGridLoaded (float x, float y) const |
void | LoadGrid (float x, float y) |
void | LoadAllCells () |
bool | UnloadGrid (NGridType &ngrid) |
virtual void | UnloadAll () |
uint32 | GetId () const |
Map const * | GetParent () const |
std::shared_mutex & | GetMMapLock () const |
void | HandleDelayedVisibility () |
float | GetHeight (float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
float | GetGridHeight (float x, float y) const |
float | GetMinHeight (float x, float y) const |
Transport * | GetTransportForPos (uint32 phase, float x, float y, float z, WorldObject *worldobject=nullptr) |
void | GetFullTerrainStatusForPosition (uint32 phaseMask, float x, float y, float z, float collisionHeight, PositionFullTerrainStatus &data, uint8 reqLiquidType=MAP_ALL_LIQUIDS) |
LiquidData const | GetLiquidData (uint32 phaseMask, float x, float y, float z, float collisionHeight, uint8 ReqLiquidType) |
bool | GetAreaInfo (uint32 phaseMask, float x, float y, float z, uint32 &mogpflags, int32 &adtId, int32 &rootId, int32 &groupId) const |
uint32 | GetAreaId (uint32 phaseMask, float x, float y, float z) const |
uint32 | GetZoneId (uint32 phaseMask, float x, float y, float z) const |
void | GetZoneAndAreaId (uint32 phaseMask, uint32 &zoneid, uint32 &areaid, float x, float y, float z) const |
float | GetWaterLevel (float x, float y) const |
bool | IsInWater (uint32 phaseMask, float x, float y, float z, float collisionHeight) const |
bool | IsUnderWater (uint32 phaseMask, float x, float y, float z, float collisionHeight) const |
bool | HasEnoughWater (WorldObject const *searcher, float x, float y, float z) const |
bool | HasEnoughWater (WorldObject const *searcher, LiquidData const &liquidData) const |
void | MoveAllCreaturesInMoveList () |
void | MoveAllGameObjectsInMoveList () |
void | MoveAllDynamicObjectsInMoveList () |
void | RemoveAllObjectsInRemoveList () |
virtual void | RemoveAllPlayers () |
uint32 | GetInstanceId () const |
uint8 | GetSpawnMode () const |
virtual EnterState | CannotEnter (Player *, bool) |
const char * | GetMapName () const |
Difficulty | GetDifficulty () const |
bool | IsRegularDifficulty () const |
MapDifficulty const * | GetMapDifficulty () const |
bool | Instanceable () const |
bool | IsDungeon () const |
bool | IsNonRaidDungeon () const |
bool | IsRaid () const |
bool | IsRaidOrHeroicDungeon () const |
bool | IsHeroic () const |
bool | Is25ManRaid () const |
bool | IsBattleground () const |
bool | IsBattleArena () const |
bool | IsBattlegroundOrArena () const |
bool | IsWorldMap () const |
bool | GetEntrancePos (int32 &mapid, float &x, float &y) |
void | AddObjectToRemoveList (WorldObject *obj) |
void | AddObjectToSwitchList (WorldObject *obj, bool on) |
virtual void | DelayedUpdate (const uint32 diff) |
void | resetMarkedCells () |
bool | isCellMarked (uint32 pCellId) |
void | markCell (uint32 pCellId) |
void | resetMarkedCellsLarge () |
bool | isCellMarkedLarge (uint32 pCellId) |
void | markCellLarge (uint32 pCellId) |
bool | HavePlayers () const |
uint32 | GetPlayersCountExceptGMs () const |
void | AddWorldObject (WorldObject *obj) |
void | RemoveWorldObject (WorldObject *obj) |
void | SendToPlayers (WorldPacket const *data) const |
PlayerList const & | GetPlayers () const |
void | ScriptsStart (std::map< uint32, std::multimap< uint32, ScriptInfo > > const &scripts, uint32 id, Object *source, Object *target) |
Put scripts in the execution queue. More... | |
void | ScriptCommandStart (ScriptInfo const &script, uint32 delay, Object *source, Object *target) |
template<class T > | |
void | AddToActive (T *obj) |
template<class T > | |
void | RemoveFromActive (T *obj) |
template<class T > | |
void | SwitchGridContainers (T *obj, bool on) |
void | UpdateIteratorBack (Player *player) |
TempSummon * | SummonCreature (uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, bool visibleBySummonerOnly=false) |
GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true) |
GameObject * | SummonGameObject (uint32 entry, Position const &pos, float rotation0=0.0f, float rotation1=0.0f, float rotation2=0.0f, float rotation3=0.0f, uint32 respawnTime=100, bool checkTransport=true) |
void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
Corpse * | GetCorpse (ObjectGuid const guid) |
Creature * | GetCreature (ObjectGuid const guid) |
GameObject * | GetGameObject (ObjectGuid const guid) |
Transport * | GetTransport (ObjectGuid const guid) |
DynamicObject * | GetDynamicObject (ObjectGuid const guid) |
Pet * | GetPet (ObjectGuid const guid) |
MapStoredObjectTypesContainer & | GetObjectsStore () |
CreatureBySpawnIdContainer & | GetCreatureBySpawnIdStore () |
GameObjectBySpawnIdContainer & | GetGameObjectBySpawnIdStore () |
std::unordered_set< Corpse * > const * | GetCorpsesInCell (uint32 cellId) const |
Corpse * | GetCorpseByPlayer (ObjectGuid const &ownerGuid) const |
MapInstanced * | ToMapInstanced () |
MapInstanced const * | ToMapInstanced () const |
InstanceMap * | ToInstanceMap () |
InstanceMap const * | ToInstanceMap () const |
BattlegroundMap * | ToBattlegroundMap () |
BattlegroundMap const * | ToBattlegroundMap () const |
float | GetWaterOrGroundLevel (uint32 phasemask, float x, float y, float z, float *ground=nullptr, bool swim=false, float collisionHeight=DEFAULT_COLLISION_HEIGHT) const |
float | GetHeight (uint32 phasemask, float x, float y, float z, bool vmap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
bool | isInLineOfSight (float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, PathGenerator *path, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
Check if a given source can reach a specific point following a path and normalize the coords. Use this method for long paths, otherwise use the overloaded method with the start coords when you need to do a quick check on small segments. More... | |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
validate the new destination and set reachable coords Check if a given unit can reach a specific point on a segment and set the correct dest coords NOTE: use this method with small segments. More... | |
bool | CanReachPositionAndGetValidCoords (WorldObject const *source, float startX, float startY, float startZ, float &destX, float &destY, float &destZ, bool failOnCollision=true, bool failOnSlopes=true) const |
bool | CheckCollisionAndGetValidCoords (WorldObject const *source, float startX, float startY, float startZ, float &destX, float &destY, float &destZ, bool failOnCollision=true) const |
validate the new destination and set coords Check if a given unit can face collisions in a specific segment More... | |
void | Balance () |
void | RemoveGameObjectModel (const GameObjectModel &model) |
void | InsertGameObjectModel (const GameObjectModel &model) |
bool | ContainsGameObjectModel (const GameObjectModel &model) const |
DynamicMapTree const & | GetDynamicMapTree () 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) |
float | GetGameObjectFloor (uint32 phasemask, float x, float y, float z, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const |
time_t | GetLinkedRespawnTime (ObjectGuid guid) const |
time_t | GetCreatureRespawnTime (ObjectGuid::LowType dbGuid) const |
time_t | GetGORespawnTime (ObjectGuid::LowType dbGuid) const |
void | SaveCreatureRespawnTime (ObjectGuid::LowType dbGuid, time_t &respawnTime) |
void | RemoveCreatureRespawnTime (ObjectGuid::LowType dbGuid) |
void | SaveGORespawnTime (ObjectGuid::LowType dbGuid, time_t &respawnTime) |
void | RemoveGORespawnTime (ObjectGuid::LowType dbGuid) |
void | LoadRespawnTimes () |
void | DeleteRespawnTimes () |
time_t | GetInstanceResetPeriod () const |
void | ScheduleCreatureRespawn (ObjectGuid, Milliseconds) |
void | LoadCorpseData () |
void | DeleteCorpseData () |
void | AddCorpse (Corpse *corpse) |
void | RemoveCorpse (Corpse *corpse) |
Corpse * | ConvertCorpseToBones (ObjectGuid const ownerGuid, bool insignia=false) |
void | RemoveOldCorpses () |
void | SendInitTransports (Player *player) |
void | SendRemoveTransports (Player *player) |
void | SendZoneDynamicInfo (Player *player) |
void | SendInitSelf (Player *player) |
void | PlayDirectSoundToMap (uint32 soundId, uint32 zoneId=0) |
void | SetZoneMusic (uint32 zoneId, uint32 musicId) |
void | SetZoneWeather (uint32 zoneId, WeatherState weatherId, float weatherGrade) |
void | SetZoneOverrideLight (uint32 zoneId, uint32 lightId, Milliseconds fadeInTime) |
void | UpdateEncounterState (EncounterCreditType type, uint32 creditEntry, Unit *source) |
void | LogEncounterFinished (EncounterCreditType type, uint32 creditEntry) |
void | DoForAllPlayers (std::function< void(Player *)> exec) |
GridMap * | GetGrid (float x, float y) |
void | EnsureGridCreated (const GridCoord &) |
bool | AllTransportsEmpty () const |
void | AllTransportsRemovePassengers () |
TransportsContainer const & | GetAllTransports () const |
template<HighGuid high> | |
ObjectGuid::LowType | GenerateLowGuid () |
void | AddUpdateObject (Object *obj) |
void | RemoveUpdateObject (Object *obj) |
std::size_t | GetActiveNonPlayersCount () const |
virtual std::string | GetDebugInfo () const |
template<> | |
void | AddToGrid (Creature *obj, Cell const &cell) |
template<> | |
void | AddToGrid (GameObject *obj, Cell const &cell) |
template<> | |
void | AddToGrid (DynamicObject *obj, Cell const &cell) |
template<> | |
void | AddToGrid (Corpse *obj, Cell const &cell) |
template<> | |
void | SwitchGridContainers (Creature *obj, bool on) |
template<> | |
void | SwitchGridContainers (GameObject *obj, bool on) |
template<> | |
void | DeleteFromWorld (Player *player) |
template<> | |
void | InitializeObject (Creature *) |
template<> | |
void | InitializeObject (GameObject *) |
template<> | |
bool | AddToMap (MotionTransport *obj, bool) |
template<> | |
void | RemoveFromMap (MotionTransport *obj, bool remove) |
template<> | |
void | AddToActive (Creature *c) |
template<> | |
void | AddToActive (DynamicObject *d) |
template<> | |
void | AddToActive (GameObject *d) |
template<> | |
void | RemoveFromActive (Creature *c) |
template<> | |
void | RemoveFromActive (DynamicObject *obj) |
template<> | |
void | RemoveFromActive (GameObject *obj) |
Public Member Functions inherited from GridRefMgr< NGridType > | |
GridReference< NGridType > * | getFirst () |
GridReference< NGridType > * | getLast () |
iterator | begin () |
iterator | end () |
iterator | rbegin () |
iterator | rend () |
Public Member Functions inherited from RefMgr< TO, FROM > | |
RefMgr ()=default | |
virtual | ~RefMgr () |
Reference< TO, FROM > * | getFirst () |
Reference< TO, FROM > const * | getFirst () const |
Reference< TO, FROM > * | getLast () |
Reference< TO, FROM > const * | getLast () const |
iterator | begin () |
iterator | end () |
iterator | rbegin () |
iterator | rend () |
void | clearReferences () |
Public Member Functions inherited from LinkedListHead | |
LinkedListHead () | |
bool | IsEmpty () const |
LinkedListElement * | getFirst () |
LinkedListElement const * | getFirst () const |
LinkedListElement * | getLast () |
LinkedListElement const * | getLast () const |
void | insertFirst (LinkedListElement *pElem) |
void | insertLast (LinkedListElement *pElem) |
uint32 | getSize () const |
void | incSize () |
void | decSize () |
Private Attributes | |
Battleground * | m_bg |
References InitVisibilityDistance().
|
override |
References m_bg, and Battleground::SetBgMap().
|
overridevirtual |
Reimplemented from Map.
References Map::AddPlayerToMap(), Unit::CastSpell(), Map::IsBattleArena(), and Player::m_InstanceValid.
|
overridevirtual |
Reimplemented from Map.
References ABORT, Map::CANNOT_ENTER_ALREADY_IN_MAP, Map::CANNOT_ENTER_INSTANCE_BIND_MISMATCH, Map::CannotEnter(), Player::GetBattlegroundId(), Object::GetGUID(), Map::GetInstanceId(), Player::GetMapRef(), Reference< TO, FROM >::getTarget(), LOG_ERROR, and ObjectGuid::ToString().
|
inline |
References m_bg.
Referenced by ArenaSpectator::HandleSpectatorSpectateCommand(), RemovePlayerFromMap(), and npc_ioc_gunship_captain::npc_ioc_gunship_captainAI::UpdateAI().
|
overridevirtual |
Reimplemented from Map.
References World::GetMaxVisibleDistanceInBGArenas(), Map::IsBattleArena(), and Map::m_VisibleDistance.
Referenced by BattlegroundMap().
|
overridevirtual |
Reimplemented from Map.
References MapRefMgr::begin(), MapRefMgr::end(), Map::HavePlayers(), and Map::m_mapRefMgr.
|
overridevirtual |
Reimplemented from Map.
References GetBG(), Map::IsBattleArena(), Unit::RemoveAura(), and Map::RemovePlayerFromMap().
|
inline |
References m_bg.
Referenced by MapInstanced::CreateBattleground(), and Battleground::~Battleground().
void BattlegroundMap::SetUnload | ( | ) |
References Map::m_unloadTimer, and MIN_UNLOAD_DELAY.
Referenced by Battleground::~Battleground().
|
private |
Referenced by GetBG(), SetBG(), and ~BattlegroundMap().