TrinityCore
OutdoorPvPNA Class Reference

#include <OutdoorPvPNA.h>

+ Inheritance diagram for OutdoorPvPNA:

Public Member Functions

 OutdoorPvPNA (Map *map)
 
void OnGameObjectCreate (GameObject *go) override
 
bool SetupOutdoorPvP () 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
 
void SendMapWorldStates (int32 neutral, int32 progressHorde, int32 progressAlliance, int32 capturedHorde, int32 captureAlliance)
 
OPvPCapturePointNAGetCapturePoint () const
 
- 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 Attributes

OPvPCapturePointNAm_obj
 

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 179 of file OutdoorPvPNA.h.

Constructor & Destructor Documentation

◆ OutdoorPvPNA()

OutdoorPvPNA::OutdoorPvPNA ( Map map)

Definition at line 39 of file OutdoorPvPNA.cpp.

Member Function Documentation

◆ GetCapturePoint()

OPvPCapturePointNA * OutdoorPvPNA::GetCapturePoint ( ) const
inline

Definition at line 193 of file OutdoorPvPNA.h.

+ Here is the caller graph for this function:

◆ HandleKillImpl()

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

Reimplemented from OutdoorPvP.

Definition at line 58 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerEnterZone()

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

Reimplemented from OutdoorPvP.

Definition at line 228 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerLeaveZone()

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

Reimplemented from OutdoorPvP.

Definition at line 236 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void OutdoorPvPNA::OnGameObjectCreate ( GameObject go)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 46 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ SendMapWorldStates()

void OutdoorPvPNA::SendMapWorldStates ( int32  neutral,
int32  progressHorde,
int32  progressAlliance,
int32  capturedHorde,
int32  captureAlliance 
)

Definition at line 146 of file OutdoorPvPNA.cpp.

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

◆ SendRemoveWorldStates()

void OutdoorPvPNA::SendRemoveWorldStates ( Player player)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 243 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ SetupOutdoorPvP()

bool OutdoorPvPNA::SetupOutdoorPvP ( )
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 216 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ Update()

void OutdoorPvPNA::Update ( uint32  diff)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 277 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_obj

OPvPCapturePointNA* OutdoorPvPNA::m_obj
private

Definition at line 195 of file OutdoorPvPNA.h.


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