![]() |
TrinityCore
|
#include <OutdoorPvPMgr.h>
Public Member Functions | |
| void | InitOutdoorPvP () |
| void | Die () |
| void | HandlePlayerEnterZone (Player *player, uint32 areaflag) |
| void | HandlePlayerLeaveZone (Player *player, uint32 areaflag) |
| void | HandlePlayerResurrects (Player *player, uint32 areaflag) |
| OutdoorPvP * | GetOutdoorPvPToZoneId (uint32 zoneid) |
| bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
| bool | HandleOpenGo (Player *player, GameObject *go) |
| ZoneScript * | GetZoneScript (uint32 zoneId) |
| void | AddZone (uint32 zoneid, OutdoorPvP *handle) |
| void | Update (uint32 diff) |
| void | HandleGossipOption (Player *player, Creature *creature, uint32 gossipid) |
| bool | CanTalkTo (Player *player, Creature *creature, GossipMenuItems const &gso) |
| 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::vector< OutdoorPvP * > | OutdoorPvPSet |
| typedef std::unordered_map< uint32, OutdoorPvP * > | OutdoorPvPMap |
| typedef std::array< uint32, MAX_OUTDOORPVP_TYPES > | OutdoorPvPScriptIds |
Private Member Functions | |
| OutdoorPvPMgr () | |
| ~OutdoorPvPMgr () | |
Private Attributes | |
| OutdoorPvPSet | m_OutdoorPvPSet |
| OutdoorPvPMap | m_OutdoorPvPMap |
| OutdoorPvPScriptIds | m_OutdoorPvPDatas = {} |
| uint32 | m_UpdateTimer |
Definition at line 35 of file OutdoorPvPMgr.h.
|
private |
Definition at line 84 of file OutdoorPvPMgr.h.
|
private |
Definition at line 85 of file OutdoorPvPMgr.h.
|
private |
Definition at line 83 of file OutdoorPvPMgr.h.
|
private |
Definition at line 26 of file OutdoorPvPMgr.cpp.
References m_UpdateTimer.
|
inlineprivate |
Definition at line 39 of file OutdoorPvPMgr.h.
| void OutdoorPvPMgr::AddZone | ( | uint32 | zoneid, |
| OutdoorPvP * | handle | ||
| ) |
Definition at line 115 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPMap.
| bool OutdoorPvPMgr::CanTalkTo | ( | Player * | player, |
| Creature * | creature, | ||
| GossipMenuItems const & | gso | ||
| ) |
Definition at line 207 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet.
| void OutdoorPvPMgr::Die | ( | ) |
Definition at line 31 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPDatas, m_OutdoorPvPMap, and m_OutdoorPvPSet.
| std::string OutdoorPvPMgr::GetDefenseMessage | ( | uint32 | zoneId, |
| uint32 | id, | ||
| LocaleConstant | locale | ||
| ) | const |
Definition at line 236 of file OutdoorPvPMgr.cpp.
References sObjectMgr, and TC_LOG_ERROR.
| OutdoorPvP * OutdoorPvPMgr::GetOutdoorPvPToZoneId | ( | uint32 | zoneid | ) |
Definition at line 147 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPMap.
| ZoneScript * OutdoorPvPMgr::GetZoneScript | ( | uint32 | zoneId | ) |
Definition at line 179 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPMap.
| bool OutdoorPvPMgr::HandleCustomSpell | ( | Player * | player, |
| uint32 | spellId, | ||
| GameObject * | go | ||
| ) |
Definition at line 169 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet.
Definition at line 217 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet.
Definition at line 198 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet.
| bool OutdoorPvPMgr::HandleOpenGo | ( | Player * | player, |
| GameObject * | go | ||
| ) |
Definition at line 188 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet.
Definition at line 120 of file OutdoorPvPMgr.cpp.
References Object::GetGUID(), OutdoorPvP::HandlePlayerEnterZone(), m_OutdoorPvPMap, TC_LOG_DEBUG, and ObjectGuid::ToString().
Definition at line 133 of file OutdoorPvPMgr.cpp.
References Object::GetGUID(), m_OutdoorPvPMap, TC_LOG_DEBUG, and ObjectGuid::ToString().
Definition at line 226 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPMap.
| void OutdoorPvPMgr::InitOutdoorPvP | ( | ) |
Definition at line 49 of file OutdoorPvPMgr.cpp.
References DISABLE_TYPE_OUTDOORPVP, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt8(), DisableMgr::IsDisabledFor(), m_OutdoorPvPDatas, m_OutdoorPvPSet, MAX_OUTDOORPVP_TYPES, OutdoorPvP::SetupOutdoorPvP(), sObjectMgr, sScriptMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
|
static |
| void OutdoorPvPMgr::Update | ( | uint32 | diff | ) |
Definition at line 158 of file OutdoorPvPMgr.cpp.
References m_OutdoorPvPSet, m_UpdateTimer, OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL, and OutdoorPvP::Update().
|
private |
Definition at line 96 of file OutdoorPvPMgr.h.
Referenced by Die(), and InitOutdoorPvP().
|
private |
Definition at line 93 of file OutdoorPvPMgr.h.
Referenced by AddZone(), Die(), GetOutdoorPvPToZoneId(), GetZoneScript(), HandlePlayerEnterZone(), HandlePlayerLeaveZone(), and HandlePlayerResurrects().
|
private |
Definition at line 89 of file OutdoorPvPMgr.h.
Referenced by CanTalkTo(), Die(), HandleCustomSpell(), HandleDropFlag(), HandleGossipOption(), HandleOpenGo(), InitOutdoorPvP(), and Update().
|
private |
Definition at line 99 of file OutdoorPvPMgr.h.
Referenced by OutdoorPvPMgr(), and Update().