TrinityCore
OutdoorPvPHP Class Reference

#include <OutdoorPvPHP.h>

+ Inheritance diagram for OutdoorPvPHP:

Public Member Functions

 OutdoorPvPHP (Map *map)
 
bool SetupOutdoorPvP () override
 
void OnGameObjectCreate (GameObject *go) override
 
void HandlePlayerEnterZone (Player *player, uint32 zone) override
 
void HandlePlayerLeaveZone (Player *player, uint32 zone) override
 
void Update (uint32 diff) 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 (Map *map)
 
 OutdoorPvP (OutdoorPvP const &right)=delete
 
 OutdoorPvP (OutdoorPvP &&right)=delete
 
OutdoorPvPoperator= (OutdoorPvP const &right)=delete
 
OutdoorPvPoperator= (OutdoorPvP &&right)=delete
 
virtual ~OutdoorPvP ()
 
virtual bool HandleAreaTrigger (Player *, uint32, bool)
 
virtual bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go)
 
virtual bool HandleOpenGo (Player *player, GameObject *go)
 
virtual bool SetupOutdoorPvP ()
 
void OnCreatureCreate (Creature *) override
 
int32 GetWorldState (int32 worldStateId) const
 
void SetWorldState (int32 worldStateId, int32 value)
 
virtual void Update (uint32 diff)
 
virtual void HandleKill (Player *killer, Unit *killed)
 
virtual void HandleKillImpl (Player *, Unit *)
 
virtual void AwardKillBonus (Player *)
 
uint32 GetTypeId () const
 
virtual bool HandleDropFlag (Player *player, uint32 spellId)
 
void TeamApplyBuff (TeamId team, uint32 spellId, uint32 spellId2=0)
 
void SendDefenseMessage (uint32 zoneId, uint32 id)
 
MapGetMap () const
 
void ProcessEvent (WorldObject *target, uint32 eventId, WorldObject *invoker) override
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
 ZoneScript (ZoneScript const &right)
 
 ZoneScript (ZoneScript &&right) noexcept
 
ZoneScriptoperator= (ZoneScript const &right)
 
ZoneScriptoperator= (ZoneScript &&right) noexcept
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnCreatureCreate (Creature *)
 
virtual void OnCreatureRemove (Creature *)
 
virtual void OnGameObjectCreate (GameObject *)
 
virtual void OnGameObjectRemove (GameObject *)
 
virtual void OnAreaTriggerCreate (AreaTrigger *areaTrigger)
 
virtual void OnAreaTriggerRemove (AreaTrigger *areaTrigger)
 
virtual void OnUnitDeath (Unit *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 TriggerGameEvent (uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr)
 
virtual void ProcessEvent (WorldObject *, uint32, WorldObject *)
 
virtual void DoAction (uint32 actionId, WorldObject *source=nullptr, WorldObject *target=nullptr)
 
virtual void OnFlagStateChange (GameObject *flagInBase, FlagState oldValue, FlagState newValue, Player *player)
 
virtual bool CanCaptureFlag (AreaTrigger *areaTrigger, Player *player)
 
virtual void OnCaptureFlag (AreaTrigger *areaTrigger, Player *player)
 

Private Member Functions

HPControlZoneHandlerGetControlZoneTowerNorthHandler ()
 
HPControlZoneHandlerGetControlZoneTowerSouthHandler ()
 
HPControlZoneHandlerGetControlZoneTowerWestHandler ()
 

Private Attributes

uint32 m_AllianceTowersControlled
 
uint32 m_HordeTowersControlled
 
GuidUnorderedSet _controlZoneGUIDs
 

Additional Inherited Members

- Public Types inherited from OutdoorPvP
typedef std::map< ObjectGuid::LowType, std::unique_ptr< OPvPCapturePoint > > OPvPCapturePointMap
 
typedef std::unordered_map< uint32, std::unique_ptr< OutdoorPvPControlZoneHandler > > ControlZoneHandlerMap
 
- Static Public Member Functions inherited from OutdoorPvP
static TeamId GetTeamIdByTeam (uint32 team)
 
- Protected Member Functions inherited from OutdoorPvP
virtual void SendRemoveWorldStates (Player *)
 
void BroadcastPacket (WorldPacket const *data) const
 
virtual void HandlePlayerEnterZone (Player *player, uint32 zone)
 
virtual void HandlePlayerLeaveZone (Player *player, uint32 zone)
 
virtual void HandlePlayerResurrects (Player *player, uint32 zone)
 
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)
 
- Protected Attributes inherited from OutdoorPvP
OPvPCapturePointMap m_capturePoints
 
ControlZoneHandlerMap ControlZoneHandlers
 
GuidSet m_players [2]
 
uint32 m_TypeId
 
Mapm_map
 

Detailed Description

Definition at line 146 of file OutdoorPvPHP.h.

Constructor & Destructor Documentation

◆ OutdoorPvPHP()

OutdoorPvPHP::OutdoorPvPHP ( Map map)

Definition at line 29 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ GetAllianceTowersControlled()

uint32 OutdoorPvPHP::GetAllianceTowersControlled ( ) const

Definition at line 203 of file OutdoorPvPHP.cpp.

◆ GetControlZoneTowerNorthHandler()

HPControlZoneHandler & OutdoorPvPHP::GetControlZoneTowerNorthHandler ( )
inlineprivate

Definition at line 173 of file OutdoorPvPHP.h.

+ Here is the caller graph for this function:

◆ GetControlZoneTowerSouthHandler()

HPControlZoneHandler & OutdoorPvPHP::GetControlZoneTowerSouthHandler ( )
inlineprivate

Definition at line 174 of file OutdoorPvPHP.h.

+ Here is the caller graph for this function:

◆ GetControlZoneTowerWestHandler()

HPControlZoneHandler & OutdoorPvPHP::GetControlZoneTowerWestHandler ( )
inlineprivate

Definition at line 175 of file OutdoorPvPHP.h.

+ Here is the caller graph for this function:

◆ GetHordeTowersControlled()

uint32 OutdoorPvPHP::GetHordeTowersControlled ( ) const

Definition at line 213 of file OutdoorPvPHP.cpp.

◆ HandleKillImpl()

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

Reimplemented from OutdoorPvP.

Definition at line 172 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 104 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 120 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void OutdoorPvPHP::OnGameObjectCreate ( GameObject go)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 81 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 150 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ SetAllianceTowersControlled()

void OutdoorPvPHP::SetAllianceTowersControlled ( uint32  count)

Definition at line 208 of file OutdoorPvPHP.cpp.

+ Here is the caller graph for this function:

◆ SetHordeTowersControlled()

void OutdoorPvPHP::SetHordeTowersControlled ( uint32  count)

Definition at line 218 of file OutdoorPvPHP.cpp.

+ Here is the caller graph for this function:

◆ SetupOutdoorPvP()

bool OutdoorPvPHP::SetupOutdoorPvP ( )
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 69 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

◆ Update()

void OutdoorPvPHP::Update ( uint32  diff)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 134 of file OutdoorPvPHP.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _controlZoneGUIDs

GuidUnorderedSet OutdoorPvPHP::_controlZoneGUIDs
private

Definition at line 171 of file OutdoorPvPHP.h.

◆ m_AllianceTowersControlled

uint32 OutdoorPvPHP::m_AllianceTowersControlled
private

Definition at line 168 of file OutdoorPvPHP.h.

◆ m_HordeTowersControlled

uint32 OutdoorPvPHP::m_HordeTowersControlled
private

Definition at line 169 of file OutdoorPvPHP.h.


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