TrinityCore
Loading...
Searching...
No Matches
OutdoorPvP Class Reference

#include <OutdoorPvP.h>

+ Inheritance diagram for OutdoorPvP:

Public Types

typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > OPvPCapturePointMap
 
typedef std::pair< ObjectGuid::LowType, GameObject * > GoScriptPair
 
typedef std::pair< ObjectGuid::LowType, Creature * > CreatureScriptPair
 

Public Member Functions

 OutdoorPvP ()
 
virtual ~OutdoorPvP ()
 
void DeleteSpawns ()
 
virtual void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &)
 
virtual bool HandleAreaTrigger (Player *player, uint32 trigger)
 
virtual bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go)
 
virtual bool HandleOpenGo (Player *player, GameObject *go)
 
virtual bool SetupOutdoorPvP ()
 
void OnGameObjectCreate (GameObject *go) override
 
void OnGameObjectRemove (GameObject *go) override
 
void OnCreatureCreate (Creature *) override
 
void OnCreatureRemove (Creature *) override
 
void SendUpdateWorldState (uint32 field, uint32 value)
 
virtual bool Update (uint32 diff)
 
virtual void HandleKill (Player *killer, Unit *killed)
 
virtual void HandleKillImpl (Player *, Unit *)
 
bool IsInsideObjective (Player *player) const
 
virtual void AwardKillBonus (Player *)
 
uint32 GetTypeId () const
 
virtual bool HandleDropFlag (Player *player, uint32 spellId)
 
virtual bool HandleGossipOption (Player *player, Creature *creature, uint32 gossipid)
 
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
 
void TeamApplyBuff (TeamId team, uint32 spellId, uint32 spellId2=0)
 
void SendDefenseMessage (uint32 zoneId, uint32 id)
 
MapGetMap () const
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnUnitDeath (Unit *)
 
virtual ObjectGuid GetGuidData (uint32) const
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void ProcessEvent (WorldObject *, uint32)
 

Static Public Member Functions

static TeamId GetTeamIdByTeam (uint32 team)
 

Protected Member Functions

virtual void SendRemoveWorldStates (Player *)
 
void BroadcastPacket (WorldPacket &data) const
 
virtual void HandlePlayerEnterZone (Player *player, uint32 zone)
 
virtual void HandlePlayerLeaveZone (Player *player, uint32 zone)
 
virtual void HandlePlayerResurrects (Player *player, uint32 zone)
 
void AddCapturePoint (OPvPCapturePoint *cp)
 
OPvPCapturePointGetCapturePoint (ObjectGuid::LowType guid) const
 
void RegisterZone (uint32 zoneid)
 
bool HasPlayer (Player const *player) const
 
void TeamCastSpell (TeamId team, int32 spellId)
 
template<class Worker >
void BroadcastWorker (Worker &_worker, uint32 zoneId)
 
void SetMapFromZone (uint32 zone)
 

Protected Attributes

OPvPCapturePointMap m_capturePoints
 
GuidSet m_players [2]
 
uint32 m_TypeId
 
bool m_sendUpdate
 
std::map< ObjectGuid::LowType, GameObject * > m_GoScriptStore
 
std::map< ObjectGuid::LowType, Creature * > m_CreatureScriptStore
 
Mapm_map
 

Friends

class OutdoorPvPMgr
 

Detailed Description

Definition at line 185 of file OutdoorPvP.h.

Member Typedef Documentation

◆ CreatureScriptPair

Definition at line 202 of file OutdoorPvP.h.

◆ GoScriptPair

Definition at line 201 of file OutdoorPvP.h.

◆ OPvPCapturePointMap

Definition at line 200 of file OutdoorPvP.h.

Constructor & Destructor Documentation

◆ OutdoorPvP()

OutdoorPvP::OutdoorPvP ( )

Definition at line 241 of file OutdoorPvP.cpp.

◆ ~OutdoorPvP()

OutdoorPvP::~OutdoorPvP ( )
virtual

Definition at line 243 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ AddCapturePoint()

void OutdoorPvP::AddCapturePoint ( OPvPCapturePoint cp)
inlineprotected

Definition at line 287 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ AwardKillBonus()

virtual void OutdoorPvP::AwardKillBonus ( Player )
inlinevirtual

Definition at line 237 of file OutdoorPvP.h.

◆ BroadcastPacket()

void OutdoorPvP::BroadcastPacket ( WorldPacket data) const
protected

Definition at line 566 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ BroadcastWorker()

template<class Worker >
void OutdoorPvP::BroadcastWorker ( Worker &  _worker,
uint32  zoneId 
)
protected

Definition at line 649 of file OutdoorPvP.cpp.

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

◆ CanTalkTo()

bool OutdoorPvP::CanTalkTo ( Player player,
Creature c,
GossipMenuItems const &  gso 
)
virtual

Definition at line 519 of file OutdoorPvP.cpp.

◆ DeleteSpawns()

void OutdoorPvP::DeleteSpawns ( )

Definition at line 216 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

◆ FillInitialWorldStates()

virtual void OutdoorPvP::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates )
inlinevirtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 204 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ GetCapturePoint()

OPvPCapturePoint * OutdoorPvP::GetCapturePoint ( ObjectGuid::LowType  guid) const
inlineprotected

Definition at line 292 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ GetMap()

Map * OutdoorPvP::GetMap ( ) const
inline

Definition at line 264 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ GetTeamIdByTeam()

static TeamId OutdoorPvP::GetTeamIdByTeam ( uint32  team)
inlinestatic

Definition at line 249 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ GetTypeId()

uint32 OutdoorPvP::GetTypeId ( ) const
inline

Definition at line 239 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ HandleAreaTrigger()

bool OutdoorPvP::HandleAreaTrigger ( Player player,
uint32  trigger 
)
virtual

Reimplemented in OutdoorPvPSI.

Definition at line 561 of file OutdoorPvP.cpp.

◆ HandleCustomSpell()

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

Reimplemented in OutdoorPvPSI.

Definition at line 485 of file OutdoorPvP.cpp.

◆ HandleDropFlag()

bool OutdoorPvP::HandleDropFlag ( Player player,
uint32  spellId 
)
virtual

Reimplemented in OutdoorPvPSI.

Definition at line 528 of file OutdoorPvP.cpp.

◆ HandleGossipOption()

bool OutdoorPvP::HandleGossipOption ( Player player,
Creature creature,
uint32  gossipid 
)
virtual

Definition at line 510 of file OutdoorPvP.cpp.

◆ HandleKill()

void OutdoorPvP::HandleKill ( Player killer,
Unit killed 
)
virtual

Definition at line 441 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ HandleKillImpl()

virtual void OutdoorPvP::HandleKillImpl ( Player ,
Unit  
)
inlinevirtual

Reimplemented in OutdoorPvPHP, OutdoorPvPNA, and OutdoorPvPZM.

Definition at line 231 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ HandleOpenGo()

bool OutdoorPvP::HandleOpenGo ( Player player,
GameObject go 
)
virtual

Definition at line 501 of file OutdoorPvP.cpp.

◆ HandlePlayerEnterZone()

void OutdoorPvP::HandlePlayerEnterZone ( Player player,
uint32  zone 
)
protectedvirtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 248 of file OutdoorPvP.cpp.

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

◆ HandlePlayerLeaveZone()

void OutdoorPvP::HandlePlayerLeaveZone ( Player player,
uint32  zone 
)
protectedvirtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 253 of file OutdoorPvP.cpp.

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

◆ HandlePlayerResurrects()

void OutdoorPvP::HandlePlayerResurrects ( Player player,
uint32  zone 
)
protectedvirtual

Definition at line 265 of file OutdoorPvP.cpp.

◆ HasPlayer()

bool OutdoorPvP::HasPlayer ( Player const *  player) const
protected

Definition at line 580 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ IsInsideObjective()

bool OutdoorPvP::IsInsideObjective ( Player player) const

Definition at line 470 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

◆ OnCreatureCreate()

void OutdoorPvP::OnCreatureCreate ( Creature creature)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 630 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ OnCreatureRemove()

void OutdoorPvP::OnCreatureRemove ( Creature creature)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 636 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void OutdoorPvP::OnGameObjectCreate ( GameObject go)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 608 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectRemove()

void OutdoorPvP::OnGameObjectRemove ( GameObject go)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 619 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ RegisterZone()

void OutdoorPvP::RegisterZone ( uint32  zoneid)
protected

Definition at line 575 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

◆ SendDefenseMessage()

void OutdoorPvP::SendDefenseMessage ( uint32  zoneId,
uint32  id 
)

Definition at line 641 of file OutdoorPvP.cpp.

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

◆ SendRemoveWorldStates()

virtual void OutdoorPvP::SendRemoveWorldStates ( Player )
inlineprotectedvirtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 278 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ SendUpdateWorldState()

void OutdoorPvP::SendUpdateWorldState ( uint32  field,
uint32  value 
)

Definition at line 400 of file OutdoorPvP.cpp.

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

◆ SetMapFromZone()

void OutdoorPvP::SetMapFromZone ( uint32  zone)
protected

Definition at line 658 of file OutdoorPvP.cpp.

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

◆ SetupOutdoorPvP()

virtual bool OutdoorPvP::SetupOutdoorPvP ( )
inlinevirtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 216 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ TeamApplyBuff()

void OutdoorPvP::TeamApplyBuff ( TeamId  team,
uint32  spellId,
uint32  spellId2 = 0 
)

Definition at line 602 of file OutdoorPvP.cpp.

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

◆ TeamCastSpell()

void OutdoorPvP::TeamCastSpell ( TeamId  team,
int32  spellId 
)
protected

Definition at line 586 of file OutdoorPvP.cpp.

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

◆ Update()

bool OutdoorPvP::Update ( uint32  diff)
virtual

Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.

Definition at line 267 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ OutdoorPvPMgr

friend class OutdoorPvPMgr
friend

Definition at line 187 of file OutdoorPvP.h.

Member Data Documentation

◆ m_capturePoints

OPvPCapturePointMap OutdoorPvP::m_capturePoints
protected

Definition at line 269 of file OutdoorPvP.h.

◆ m_CreatureScriptStore

std::map<ObjectGuid::LowType, Creature*> OutdoorPvP::m_CreatureScriptStore
protected

Definition at line 312 of file OutdoorPvP.h.

◆ m_GoScriptStore

std::map<ObjectGuid::LowType, GameObject*> OutdoorPvP::m_GoScriptStore
protected

Definition at line 311 of file OutdoorPvP.h.

◆ m_map

Map* OutdoorPvP::m_map
protected

Definition at line 314 of file OutdoorPvP.h.

◆ m_players

GuidSet OutdoorPvP::m_players[2]
protected

Definition at line 271 of file OutdoorPvP.h.

◆ m_sendUpdate

bool OutdoorPvP::m_sendUpdate
protected

Definition at line 275 of file OutdoorPvP.h.

◆ m_TypeId

uint32 OutdoorPvP::m_TypeId
protected

Definition at line 273 of file OutdoorPvP.h.


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