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

#include <OutdoorPvPNA.h>

+ Inheritance diagram for OPvPCapturePointNA:

Public Member Functions

 OPvPCapturePointNA (OutdoorPvP *pvp)
 
bool Update (uint32 diff) override
 
void ChangeState () override
 
void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override
 
bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) override
 
int32 HandleOpenGo (Player *player, GameObject *go) override
 
uint32 GetAliveGuardsCount ()
 
uint32 GetControllingFaction () const
 
void FactionTakeOver (uint32 team)
 
void DeSpawnNPCs ()
 
void DeSpawnGOs ()
 
void SpawnNPCsForTeam (uint32 team)
 
void SpawnGOsForTeam (uint32 team)
 
void UpdateWyvernRoostWorldState (uint32 roost)
 
void UpdateHalaaWorldState ()
 
- Public Member Functions inherited from OPvPCapturePoint
 OPvPCapturePoint (OutdoorPvP *pvp)
 
virtual ~OPvPCapturePoint ()
 
void SendUpdateWorldState (uint32 field, uint32 value)
 
void SendObjectiveComplete (uint32 id, ObjectGuid guid)
 
virtual bool HandlePlayerEnter (Player *player)
 
virtual void HandlePlayerLeave (Player *player)
 
bool IsInsideObjective (Player *player) const
 
virtual void ChangeTeam (TeamId)
 
virtual void SendChangePhase ()
 
virtual bool HandleGossipOption (Player *, Creature *, uint32)
 
virtual bool CanTalkTo (Player *, Creature *, GossipMenuItems const &)
 
virtual bool HandleDropFlag (Player *, uint32)
 
virtual void DeleteSpawns ()
 
void AddGO (uint32 type, ObjectGuid::LowType guid, uint32 entry=0)
 
void AddCre (uint32 type, ObjectGuid::LowType guid, uint32 entry=0)
 
bool SetCapturePointData (uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot)
 

Private Attributes

bool m_capturable
 
uint32 m_GuardsAlive
 
uint32 m_ControllingFaction
 
uint32 m_WyvernStateNorth
 
uint32 m_WyvernStateSouth
 
uint32 m_WyvernStateEast
 
uint32 m_WyvernStateWest
 
uint32 m_HalaaState
 
uint32 m_RespawnTimer
 
uint32 m_GuardCheckTimer
 

Additional Inherited Members

- Public Attributes inherited from OPvPCapturePoint
ObjectGuid::LowType m_capturePointSpawnId
 
GameObject * m_capturePoint
 
- Protected Member Functions inherited from OPvPCapturePoint
bool AddObject (uint32 type, uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot)
 
bool AddCreature (uint32 type, uint32 entry, uint32 map, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 spawntimedelay=0)
 
bool DelObject (uint32 type)
 
bool DelCreature (uint32 type)
 
bool DelCapturePoint ()
 
- Protected Attributes inherited from OPvPCapturePoint
GuidSet m_activePlayers [2]
 
float m_maxValue
 
float m_minValue
 
float m_maxSpeed
 
float m_value
 
TeamId m_team
 
ObjectiveStates m_OldState
 
ObjectiveStates m_State
 
uint32 m_neutralValuePct
 
OutdoorPvP * m_PvP
 
std::map< uint32, ObjectGuid::LowType > m_Objects
 
std::map< uint32, ObjectGuid::LowType > m_Creatures
 
std::map< ObjectGuid::LowType, uint32 > m_ObjectTypes
 
std::map< ObjectGuid::LowType, uint32 > m_CreatureTypes
 

Detailed Description

Definition at line 152 of file OutdoorPvPNA.h.

Constructor & Destructor Documentation

◆ OPvPCapturePointNA()

OPvPCapturePointNA::OPvPCapturePointNA ( OutdoorPvP *  pvp)

Definition at line 279 of file OutdoorPvPNA.cpp.

References OPvPCapturePoint::SetCapturePointData().

Member Function Documentation

◆ ChangeState()

◆ DeSpawnGOs()

void OPvPCapturePointNA::DeSpawnGOs ( )

Definition at line 226 of file OutdoorPvPNA.cpp.

References OPvPCapturePoint::DelObject(), and NA_CONTROL_GO_NUM.

Referenced by FactionTakeOver().

◆ DeSpawnNPCs()

void OPvPCapturePointNA::DeSpawnNPCs ( )

Definition at line 197 of file OutdoorPvPNA.cpp.

References OPvPCapturePoint::DelCreature(), and NA_CONTROL_NPC_NUM.

Referenced by FactionTakeOver().

◆ FactionTakeOver()

◆ FillInitialWorldStates()

◆ GetAliveGuardsCount()

◆ GetControllingFaction()

uint32 OPvPCapturePointNA::GetControllingFaction ( ) const

Definition at line 179 of file OutdoorPvPNA.cpp.

References m_ControllingFaction.

Referenced by OutdoorPvPNA::HandlePlayerEnterZone().

◆ HandleCustomSpell()

◆ HandleOpenGo()

◆ SpawnGOsForTeam()

void OPvPCapturePointNA::SpawnGOsForTeam ( uint32  team)

◆ SpawnNPCsForTeam()

void OPvPCapturePointNA::SpawnNPCsForTeam ( uint32  team)

◆ Update()

◆ UpdateHalaaWorldState()

◆ UpdateWyvernRoostWorldState()

Member Data Documentation

◆ m_capturable

bool OPvPCapturePointNA::m_capturable
private

Definition at line 174 of file OutdoorPvPNA.h.

Referenced by FactionTakeOver(), and Update().

◆ m_ControllingFaction

uint32 OPvPCapturePointNA::m_ControllingFaction
private

◆ m_GuardCheckTimer

uint32 OPvPCapturePointNA::m_GuardCheckTimer
private

Definition at line 183 of file OutdoorPvPNA.h.

Referenced by Update().

◆ m_GuardsAlive

uint32 OPvPCapturePointNA::m_GuardsAlive
private

Definition at line 175 of file OutdoorPvPNA.h.

Referenced by FactionTakeOver(), FillInitialWorldStates(), and Update().

◆ m_HalaaState

uint32 OPvPCapturePointNA::m_HalaaState
private

Definition at line 181 of file OutdoorPvPNA.h.

Referenced by ChangeState(), FillInitialWorldStates(), and UpdateHalaaWorldState().

◆ m_RespawnTimer

uint32 OPvPCapturePointNA::m_RespawnTimer
private

Definition at line 182 of file OutdoorPvPNA.h.

Referenced by Update().

◆ m_WyvernStateEast

uint32 OPvPCapturePointNA::m_WyvernStateEast
private

◆ m_WyvernStateNorth

uint32 OPvPCapturePointNA::m_WyvernStateNorth
private

◆ m_WyvernStateSouth

uint32 OPvPCapturePointNA::m_WyvernStateSouth
private

◆ m_WyvernStateWest

uint32 OPvPCapturePointNA::m_WyvernStateWest
private

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