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

#include <OutdoorPvPHP.h>

+ Inheritance diagram for OutdoorPvPHP:

Public Member Functions

 OutdoorPvPHP ()
 
bool SetupOutdoorPvP () override
 
void HandlePlayerEnterZone (Player *player, uint32 zone) override
 
void HandlePlayerLeaveZone (Player *player, uint32 zone) override
 
bool Update (uint32 diff) override
 
void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override
 
void SendRemoveWorldStates (Player *player) override
 
void HandleKillImpl (Player *player, Unit *killed) override
 
uint32 GetAllianceTowersControlled () const
 
void SetAllianceTowersControlled (uint32 count)
 
uint32 GetHordeTowersControlled () const
 
void SetHordeTowersControlled (uint32 count)
 
- Public Member Functions inherited from OutdoorPvP
 OutdoorPvP ()
 
virtual ~OutdoorPvP ()
 
void DeleteSpawns ()
 
virtual bool HandleAreaTrigger (Player *player, uint32 trigger)
 
virtual bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go)
 
virtual bool HandleOpenGo (Player *player, GameObject *go)
 
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 void HandleKill (Player *killer, Unit *killed)
 
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)
 

Private Attributes

uint32 m_AllianceTowersControlled
 
uint32 m_HordeTowersControlled
 

Additional Inherited Members

- Public Types inherited from OutdoorPvP
typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > OPvPCapturePointMap
 
typedef std::pair< ObjectGuid::LowType, GameObject * > GoScriptPair
 
typedef std::pair< ObjectGuid::LowType, Creature * > CreatureScriptPair
 
- Static Public Member Functions inherited from OutdoorPvP
static TeamId GetTeamIdByTeam (uint32 team)
 
- Protected Member Functions inherited from OutdoorPvP
void BroadcastPacket (WorldPacket &data) const
 
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 inherited from OutdoorPvP
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
 

Detailed Description

Definition at line 70 of file OutdoorPvPHP.h.

Constructor & Destructor Documentation

◆ OutdoorPvPHP()

OutdoorPvPHP::OutdoorPvPHP ( )

Definition at line 60 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ FillInitialWorldStates()

void OutdoorPvPHP::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates packet)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 150 of file OutdoorPvPHP.cpp.

◆ GetAllianceTowersControlled()

uint32 OutdoorPvPHP::GetAllianceTowersControlled ( ) const

Definition at line 302 of file OutdoorPvPHP.cpp.

◆ GetHordeTowersControlled()

uint32 OutdoorPvPHP::GetHordeTowersControlled ( ) const

Definition at line 312 of file OutdoorPvPHP.cpp.

◆ HandleKillImpl()

void OutdoorPvPHP::HandleKillImpl ( Player player,
Unit killed 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 291 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerEnterZone()

void OutdoorPvPHP::HandlePlayerEnterZone ( Player player,
uint32  zone 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 85 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerLeaveZone()

void OutdoorPvPHP::HandlePlayerLeaveZone ( Player player,
uint32  zone 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 101 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ SendRemoveWorldStates()

void OutdoorPvPHP::SendRemoveWorldStates ( Player player)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 135 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ SetAllianceTowersControlled()

void OutdoorPvPHP::SetAllianceTowersControlled ( uint32  count)

Definition at line 307 of file OutdoorPvPHP.cpp.

◆ SetHordeTowersControlled()

void OutdoorPvPHP::SetHordeTowersControlled ( uint32  count)

Definition at line 317 of file OutdoorPvPHP.cpp.

◆ SetupOutdoorPvP()

bool OutdoorPvPHP::SetupOutdoorPvP ( )
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 68 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ Update()

bool OutdoorPvPHP::Update ( uint32  diff)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 115 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_AllianceTowersControlled

uint32 OutdoorPvPHP::m_AllianceTowersControlled
private

Definition at line 91 of file OutdoorPvPHP.h.

◆ m_HordeTowersControlled

uint32 OutdoorPvPHP::m_HordeTowersControlled
private

Definition at line 92 of file OutdoorPvPHP.h.


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