TrinityCore
OutdoorPvPMgr Class Reference

#include <OutdoorPvPMgr.h>

Public Member Functions

 OutdoorPvPMgr (OutdoorPvPMgr const &)=delete
 
 OutdoorPvPMgr (OutdoorPvPMgr &&)=delete
 
OutdoorPvPMgroperator= (OutdoorPvPMgr const &)=delete
 
OutdoorPvPMgroperator= (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)
 
OutdoorPvPGetOutdoorPvPToZoneId (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 OutdoorPvPMgrinstance ()
 

Private Types

typedef std::unordered_map< std::pair< Map *, uint32 >, OutdoorPvP * > OutdoorPvPMap
 
typedef std::array< uint32, MAX_OUTDOORPVP_TYPESOutdoorPvPScriptIds
 

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
 

Detailed Description

Definition at line 39 of file OutdoorPvPMgr.h.

Member Typedef Documentation

◆ OutdoorPvPMap

typedef std::unordered_map<std::pair<Map*, uint32 >, OutdoorPvP*> OutdoorPvPMgr::OutdoorPvPMap
private

Definition at line 91 of file OutdoorPvPMgr.h.

◆ OutdoorPvPScriptIds

Definition at line 92 of file OutdoorPvPMgr.h.

Constructor & Destructor Documentation

◆ OutdoorPvPMgr() [1/3]

OutdoorPvPMgr::OutdoorPvPMgr ( )
private

Definition at line 29 of file OutdoorPvPMgr.cpp.

◆ ~OutdoorPvPMgr()

OutdoorPvPMgr::~OutdoorPvPMgr ( )
privatedefault

◆ OutdoorPvPMgr() [2/3]

OutdoorPvPMgr::OutdoorPvPMgr ( OutdoorPvPMgr const &  )
delete

◆ OutdoorPvPMgr() [3/3]

OutdoorPvPMgr::OutdoorPvPMgr ( OutdoorPvPMgr &&  )
delete

Member Function Documentation

◆ AddZone()

void OutdoorPvPMgr::AddZone ( uint32  zoneid,
OutdoorPvP handle 
)

Definition at line 130 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ CreateOutdoorPvPForMap()

void OutdoorPvPMgr::CreateOutdoorPvPForMap ( Map map)

Definition at line 90 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ DestroyOutdoorPvPForMap()

void OutdoorPvPMgr::DestroyOutdoorPvPForMap ( Map map)

Definition at line 121 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ Die()

void OutdoorPvPMgr::Die ( )

Definition at line 36 of file OutdoorPvPMgr.cpp.

◆ GetDefenseMessage()

std::string OutdoorPvPMgr::GetDefenseMessage ( uint32  zoneId,
uint32  id,
LocaleConstant  locale 
) const

Definition at line 217 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ GetOutdoorPvPToZoneId()

OutdoorPvP * OutdoorPvPMgr::GetOutdoorPvPToZoneId ( Map map,
uint32  zoneid 
)

Definition at line 162 of file OutdoorPvPMgr.cpp.

◆ HandleCustomSpell()

bool OutdoorPvPMgr::HandleCustomSpell ( Player player,
uint32  spellId,
GameObject go 
)

Definition at line 185 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ HandleDropFlag()

void OutdoorPvPMgr::HandleDropFlag ( Player player,
uint32  spellId 
)

Definition at line 203 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ HandleOpenGo()

bool OutdoorPvPMgr::HandleOpenGo ( Player player,
GameObject go 
)

Definition at line 194 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerEnterZone()

void OutdoorPvPMgr::HandlePlayerEnterZone ( Player player,
uint32  areaflag 
)

Definition at line 135 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerLeaveZone()

void OutdoorPvPMgr::HandlePlayerLeaveZone ( Player player,
uint32  areaflag 
)

Definition at line 148 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerResurrects()

void OutdoorPvPMgr::HandlePlayerResurrects ( Player player,
uint32  areaflag 
)

Definition at line 210 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ InitOutdoorPvP()

void OutdoorPvPMgr::InitOutdoorPvP ( )

Definition at line 51 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

OutdoorPvPMgr * OutdoorPvPMgr::instance ( )
static

Definition at line 45 of file OutdoorPvPMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

OutdoorPvPMgr & OutdoorPvPMgr::operator= ( OutdoorPvPMgr &&  )
delete

◆ operator=() [2/2]

OutdoorPvPMgr & OutdoorPvPMgr::operator= ( OutdoorPvPMgr const &  )
delete

◆ Update()

void OutdoorPvPMgr::Update ( uint32  diff)

Definition at line 173 of file OutdoorPvPMgr.cpp.

Member Data Documentation

◆ m_OutdoorMapIds

OutdoorPvPScriptIds OutdoorPvPMgr::m_OutdoorMapIds = { 0, 530, 530, 530, 530, 1 }
private

Definition at line 103 of file OutdoorPvPMgr.h.

◆ m_OutdoorPvPByMap

std::unordered_map<Map*, std::vector<std::unique_ptr<OutdoorPvP> > > OutdoorPvPMgr::m_OutdoorPvPByMap
private

Definition at line 96 of file OutdoorPvPMgr.h.

◆ m_OutdoorPvPDatas

OutdoorPvPScriptIds OutdoorPvPMgr::m_OutdoorPvPDatas = {}
private

Definition at line 104 of file OutdoorPvPMgr.h.

◆ m_OutdoorPvPMap

OutdoorPvPMap OutdoorPvPMgr::m_OutdoorPvPMap
private

Definition at line 100 of file OutdoorPvPMgr.h.

◆ m_UpdateTimer

uint32 OutdoorPvPMgr::m_UpdateTimer
private

Definition at line 107 of file OutdoorPvPMgr.h.


The documentation for this class was generated from the following files: