![]() |
TrinityCore
|
#include <OutdoorPvPMgr.h>
Public Member Functions | |
| OutdoorPvPMgr (OutdoorPvPMgr const &)=delete | |
| OutdoorPvPMgr (OutdoorPvPMgr &&)=delete | |
| OutdoorPvPMgr & | operator= (OutdoorPvPMgr const &)=delete |
| OutdoorPvPMgr & | operator= (OutdoorPvPMgr &&)=delete |
| void | InitOutdoorPvP () |
| void | Die () |
| void | CreateOutdoorPvPForMap (Map *map) |
| void | DestroyOutdoorPvPForMap (Map *map) |
| void | HandlePlayerEnterZone (Player *player, uint32 areaflag) |
| void | HandlePlayerLeaveZone (Player *player, uint32 areaflag) |
| void | HandlePlayerResurrects (Player *player, uint32 areaflag) |
| OutdoorPvP * | GetOutdoorPvPToZoneId (Map *map, uint32 zoneid) |
| bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
| bool | HandleOpenGo (Player *player, GameObject *go) |
| void | AddZone (uint32 zoneid, OutdoorPvP *handle) |
| void | Update (uint32 diff) |
| void | HandleDropFlag (Player *player, uint32 spellId) |
| std::string | GetDefenseMessage (uint32 zoneId, uint32 id, LocaleConstant locale) const |
Static Public Member Functions | |
| static OutdoorPvPMgr * | instance () |
Private Types | |
| typedef std::unordered_map< std::pair< Map *, uint32 >, OutdoorPvP * > | OutdoorPvPMap |
| typedef std::array< uint32, MAX_OUTDOORPVP_TYPES > | OutdoorPvPScriptIds |
Private Member Functions | |
| OutdoorPvPMgr () | |
| ~OutdoorPvPMgr () | |
Private Attributes | |
| std::unordered_map< Map *, std::vector< std::unique_ptr< OutdoorPvP > > > | m_OutdoorPvPByMap |
| OutdoorPvPMap | m_OutdoorPvPMap |
| OutdoorPvPScriptIds | m_OutdoorMapIds = { 0, 530, 530, 530, 530, 1 } |
| OutdoorPvPScriptIds | m_OutdoorPvPDatas = {} |
| uint32 | m_UpdateTimer |
Definition at line 39 of file OutdoorPvPMgr.h.
|
private |
Definition at line 91 of file OutdoorPvPMgr.h.
|
private |
Definition at line 92 of file OutdoorPvPMgr.h.
|
private |
Definition at line 29 of file OutdoorPvPMgr.cpp.
References m_UpdateTimer.
|
privatedefault |
|
delete |
|
delete |
| void OutdoorPvPMgr::AddZone | ( | uint32 | zoneid, |
| OutdoorPvP * | handle | ||
| ) |
Definition at line 130 of file OutdoorPvPMgr.cpp.
References OutdoorPvP::GetMap(), and m_OutdoorPvPMap.
| void OutdoorPvPMgr::CreateOutdoorPvPForMap | ( | Map * | map | ) |
Definition at line 90 of file OutdoorPvPMgr.cpp.
References Map::GetId(), m_OutdoorMapIds, m_OutdoorPvPByMap, m_OutdoorPvPDatas, MAX_OUTDOORPVP_TYPES, OutdoorPvP::SetupOutdoorPvP(), sScriptMgr, and TC_LOG_ERROR.
| void OutdoorPvPMgr::DestroyOutdoorPvPForMap | ( | Map * | map | ) |
Definition at line 121 of file OutdoorPvPMgr.cpp.
References Trinity::Containers::EraseIf(), m_OutdoorPvPByMap, and m_OutdoorPvPMap.
| void OutdoorPvPMgr::Die | ( | ) |
Definition at line 36 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPByMap, m_OutdoorPvPDatas, and m_OutdoorPvPMap.
| std::string OutdoorPvPMgr::GetDefenseMessage | ( | uint32 | zoneId, |
| uint32 | id, | ||
| LocaleConstant | locale | ||
| ) | const |
Definition at line 217 of file OutdoorPvPMgr.cpp.
References DB2Manager::GetBroadcastTextValue(), sBroadcastTextStore, and TC_LOG_ERROR.
| OutdoorPvP * OutdoorPvPMgr::GetOutdoorPvPToZoneId | ( | Map * | map, |
| uint32 | zoneid | ||
| ) |
Definition at line 162 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPMap.
| bool OutdoorPvPMgr::HandleCustomSpell | ( | Player * | player, |
| uint32 | spellId, | ||
| GameObject * | go | ||
| ) |
Definition at line 185 of file OutdoorPvPMgr.cpp.
References Player::GetOutdoorPvP().
Definition at line 203 of file OutdoorPvPMgr.cpp.
References Player::GetOutdoorPvP().
| bool OutdoorPvPMgr::HandleOpenGo | ( | Player * | player, |
| GameObject * | go | ||
| ) |
Definition at line 194 of file OutdoorPvPMgr.cpp.
References Player::GetOutdoorPvP().
Definition at line 135 of file OutdoorPvPMgr.cpp.
References BaseEntity::GetGUID(), WorldObject::GetMap(), OutdoorPvP::HandlePlayerEnterZone(), m_OutdoorPvPMap, TC_LOG_DEBUG, and ObjectGuid::ToString().
Definition at line 148 of file OutdoorPvPMgr.cpp.
References BaseEntity::GetGUID(), WorldObject::GetMap(), m_OutdoorPvPMap, TC_LOG_DEBUG, and ObjectGuid::ToString().
Definition at line 210 of file OutdoorPvPMgr.cpp.
References Player::GetOutdoorPvP().
| void OutdoorPvPMgr::InitOutdoorPvP | ( | ) |
Definition at line 51 of file OutdoorPvPMgr.cpp.
References DISABLE_TYPE_OUTDOORPVP, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt8(), DisableMgr::IsDisabledFor(), m_OutdoorPvPDatas, MAX_OUTDOORPVP_TYPES, sObjectMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
|
static |
|
delete |
|
delete |
| void OutdoorPvPMgr::Update | ( | uint32 | diff | ) |
Definition at line 173 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPByMap, m_UpdateTimer, OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL, and OutdoorPvP::Update().
|
private |
Definition at line 103 of file OutdoorPvPMgr.h.
Referenced by CreateOutdoorPvPForMap().
|
private |
Definition at line 96 of file OutdoorPvPMgr.h.
Referenced by CreateOutdoorPvPForMap(), DestroyOutdoorPvPForMap(), Die(), and Update().
|
private |
Definition at line 104 of file OutdoorPvPMgr.h.
Referenced by CreateOutdoorPvPForMap(), Die(), and InitOutdoorPvP().
|
private |
Definition at line 100 of file OutdoorPvPMgr.h.
Referenced by AddZone(), DestroyOutdoorPvPForMap(), Die(), GetOutdoorPvPToZoneId(), HandlePlayerEnterZone(), and HandlePlayerLeaveZone().
|
private |
Definition at line 107 of file OutdoorPvPMgr.h.
Referenced by OutdoorPvPMgr(), and Update().