Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
OutdoorPvP Class Reference

#include <OutdoorPvP.h>

Inheritance diagram for OutdoorPvP:
Collaboration diagram for OutdoorPvP:

Public Types

typedef std::map< uint32, OPvPCapturePoint * > OPvPCapturePointMap

Public Member Functions

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

Protected Member Functions

void AddCapturePoint (OPvPCapturePoint *cp)
void BroadcastPacket (WorldPacket &data) const
OPvPCapturePointGetCapturePoint (uint32 lowguid) const
virtual void HandlePlayerEnterZone (Player *player, uint32 zone)
virtual void HandlePlayerLeaveZone (Player *player, uint32 zone)
virtual void HandlePlayerResurrects (Player *player, uint32 zone)
bool HasPlayer (Player const *player) const
void RegisterZone (uint32 zoneid)
virtual void SendRemoveWorldStates (Player *)
void TeamCastSpell (TeamId team, int32 spellId)

Protected Attributes

OPvPCapturePointMap m_capturePoints
PlayerSet m_players [2]
bool m_sendUpdate
uint32 m_TypeId

Friends

class OutdoorPvPMgr

Detailed Description

Definition at line 176 of file OutdoorPvP.h.

Member Typedef Documentation

◆ OPvPCapturePointMap

Definition at line 190 of file OutdoorPvP.h.

Constructor & Destructor Documentation

◆ OutdoorPvP()

OutdoorPvP::OutdoorPvP ( )

Definition at line 222 of file OutdoorPvP.cpp.

References m_sendUpdate, and m_TypeId.

◆ ~OutdoorPvP()

OutdoorPvP::~OutdoorPvP ( )
virtual

Definition at line 224 of file OutdoorPvP.cpp.

References DeleteSpawns().

Member Function Documentation

◆ AddCapturePoint()

◆ AwardKillBonus()

virtual void OutdoorPvP::AwardKillBonus ( Player * )
inlinevirtual

Definition at line 224 of file OutdoorPvP.h.

◆ BroadcastPacket()

void OutdoorPvP::BroadcastPacket ( WorldPacket & data) const
protected

Definition at line 548 of file OutdoorPvP.cpp.

References ObjectAccessor::FindPlayer(), and m_players.

◆ CanTalkTo()

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

Definition at line 500 of file OutdoorPvP.cpp.

References m_capturePoints.

◆ DeleteSpawns()

void OutdoorPvP::DeleteSpawns ( )

Definition at line 212 of file OutdoorPvP.cpp.

References m_capturePoints.

Referenced by ~OutdoorPvP().

◆ FillInitialWorldStates()

virtual void OutdoorPvP::FillInitialWorldStates ( WorldStateBuilder & )
inlinevirtual

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

Definition at line 192 of file OutdoorPvP.h.

Referenced by Player::SendInitWorldStates().

◆ GetCapturePoint()

OPvPCapturePoint * OutdoorPvP::GetCapturePoint ( uint32 lowguid) const
inlineprotected

Definition at line 261 of file OutdoorPvP.h.

References m_capturePoints.

Referenced by OnGameObjectCreate(), and OnGameObjectRemove().

◆ GetTypeId()

uint32 OutdoorPvP::GetTypeId ( ) const
inline

Definition at line 226 of file OutdoorPvP.h.

References m_TypeId.

Referenced by Player::SendInitWorldStates().

◆ HandleAreaTrigger()

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

Reimplemented in OutdoorPvPSI.

Definition at line 543 of file OutdoorPvP.cpp.

◆ HandleCustomSpell()

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

Reimplemented in OutdoorPvPSI.

Definition at line 466 of file OutdoorPvP.cpp.

References m_capturePoints.

◆ HandleDropFlag()

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

Reimplemented in OutdoorPvPSI.

Definition at line 509 of file OutdoorPvP.cpp.

References m_capturePoints.

◆ HandleGossipOption()

bool OutdoorPvP::HandleGossipOption ( Player * player,
uint64 guid,
uint32 gossipid )
virtual

Definition at line 491 of file OutdoorPvP.cpp.

References m_capturePoints.

◆ HandleKill()

◆ HandleKillImpl()

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

Reimplemented in OutdoorPvPHP, OutdoorPvPNA, and OutdoorPvPZM.

Definition at line 218 of file OutdoorPvP.h.

Referenced by HandleKill().

◆ HandleOpenGo()

bool OutdoorPvP::HandleOpenGo ( Player * player,
uint64 guid )
virtual

Definition at line 482 of file OutdoorPvP.cpp.

References m_capturePoints.

◆ HandlePlayerEnterZone()

◆ HandlePlayerLeaveZone()

◆ HandlePlayerResurrects()

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

Definition at line 246 of file OutdoorPvP.cpp.

◆ HasPlayer()

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

Definition at line 562 of file OutdoorPvP.cpp.

References Object::GetGUID(), Player::GetTeamId(), and m_players.

◆ IsInsideObjective()

bool OutdoorPvP::IsInsideObjective ( Player * player) const

Definition at line 451 of file OutdoorPvP.cpp.

References m_capturePoints.

Referenced by HandleKill().

◆ OnCreatureCreate()

void OutdoorPvP::OnCreatureCreate ( Creature * )
inlinevirtual

Reimplemented from ZoneScript.

Definition at line 208 of file OutdoorPvP.h.

◆ OnGameObjectCreate()

void OutdoorPvP::OnGameObjectCreate ( GameObject * go)
virtual

◆ OnGameObjectRemove()

void OutdoorPvP::OnGameObjectRemove ( GameObject * go)
virtual

◆ RegisterZone()

◆ SendRemoveWorldStates()

virtual void OutdoorPvP::SendRemoveWorldStates ( Player * )
inlineprotectedvirtual

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

Definition at line 247 of file OutdoorPvP.h.

Referenced by HandlePlayerLeaveZone().

◆ SendUpdateWorldState()

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

◆ SetupOutdoorPvP()

virtual bool OutdoorPvP::SetupOutdoorPvP ( )
inlinevirtual

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

Definition at line 204 of file OutdoorPvP.h.

Referenced by OutdoorPvPMgr::InitOutdoorPvP().

◆ TeamApplyBuff()

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

◆ TeamCastSpell()

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

◆ Update()

bool OutdoorPvP::Update ( uint32 diff)
virtual

◆ OutdoorPvPMgr

friend class OutdoorPvPMgr
friend

Definition at line 178 of file OutdoorPvP.h.

References OutdoorPvPMgr.

Referenced by OutdoorPvPMgr.

Member Data Documentation

◆ m_capturePoints

◆ m_players

PlayerSet OutdoorPvP::m_players[2]
protected

◆ m_sendUpdate

bool OutdoorPvP::m_sendUpdate
protected

Definition at line 244 of file OutdoorPvP.h.

Referenced by OutdoorPvP(), and SendUpdateWorldState().

◆ m_TypeId


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