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 *player, Creature *guid, uint32 gossipid)
 
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
 
virtual bool HandleDropFlag (Player *player, uint32 spellId)
 
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
 
GameObjectm_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
 
OutdoorPvPm_PvP
 
std::map< uint32, ObjectGuid::LowTypem_Objects
 
std::map< uint32, ObjectGuid::LowTypem_Creatures
 
std::map< ObjectGuid::LowType, uint32m_ObjectTypes
 
std::map< ObjectGuid::LowType, uint32m_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.

+ Here is the call graph for this function:

Member Function Documentation

◆ ChangeState()

void OPvPCapturePointNA::ChangeState ( )
overridevirtual

Implements OPvPCapturePoint.

Definition at line 632 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ DeSpawnGOs()

void OPvPCapturePointNA::DeSpawnGOs ( )

Definition at line 226 of file OutdoorPvPNA.cpp.

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

◆ DeSpawnNPCs()

void OPvPCapturePointNA::DeSpawnNPCs ( )

Definition at line 197 of file OutdoorPvPNA.cpp.

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

◆ FactionTakeOver()

void OPvPCapturePointNA::FactionTakeOver ( uint32  team)

Definition at line 234 of file OutdoorPvPNA.cpp.

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

◆ FillInitialWorldStates()

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

Reimplemented from OPvPCapturePoint.

Definition at line 319 of file OutdoorPvPNA.cpp.

+ Here is the caller graph for this function:

◆ GetAliveGuardsCount()

uint32 OPvPCapturePointNA::GetAliveGuardsCount ( )

Definition at line 143 of file OutdoorPvPNA.cpp.

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

◆ GetControllingFaction()

uint32 OPvPCapturePointNA::GetControllingFaction ( ) const

Definition at line 179 of file OutdoorPvPNA.cpp.

+ Here is the caller graph for this function:

◆ HandleCustomSpell()

bool OPvPCapturePointNA::HandleCustomSpell ( Player player,
uint32  spellId,
GameObject go 
)
overridevirtual

Reimplemented from OPvPCapturePoint.

Definition at line 396 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ HandleOpenGo()

int32 OPvPCapturePointNA::HandleOpenGo ( Player player,
GameObject go 
)
overridevirtual

Reimplemented from OPvPCapturePoint.

Definition at line 471 of file OutdoorPvPNA.cpp.

+ Here is the call graph for this function:

◆ SpawnGOsForTeam()

void OPvPCapturePointNA::SpawnGOsForTeam ( uint32  team)

Definition at line 203 of file OutdoorPvPNA.cpp.

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

◆ SpawnNPCsForTeam()

void OPvPCapturePointNA::SpawnNPCsForTeam ( uint32  team)

Definition at line 184 of file OutdoorPvPNA.cpp.

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

◆ Update()

bool OPvPCapturePointNA::Update ( uint32  diff)
overridevirtual

Reimplemented from OPvPCapturePoint.

Definition at line 593 of file OutdoorPvPNA.cpp.

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

◆ UpdateHalaaWorldState()

void OPvPCapturePointNA::UpdateHalaaWorldState ( )

Definition at line 673 of file OutdoorPvPNA.cpp.

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

◆ UpdateWyvernRoostWorldState()

void OPvPCapturePointNA::UpdateWyvernRoostWorldState ( uint32  roost)

Definition at line 682 of file OutdoorPvPNA.cpp.

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

Member Data Documentation

◆ m_capturable

bool OPvPCapturePointNA::m_capturable
private

Definition at line 174 of file OutdoorPvPNA.h.

◆ m_ControllingFaction

uint32 OPvPCapturePointNA::m_ControllingFaction
private

Definition at line 176 of file OutdoorPvPNA.h.

◆ m_GuardCheckTimer

uint32 OPvPCapturePointNA::m_GuardCheckTimer
private

Definition at line 183 of file OutdoorPvPNA.h.

◆ m_GuardsAlive

uint32 OPvPCapturePointNA::m_GuardsAlive
private

Definition at line 175 of file OutdoorPvPNA.h.

◆ m_HalaaState

uint32 OPvPCapturePointNA::m_HalaaState
private

Definition at line 181 of file OutdoorPvPNA.h.

◆ m_RespawnTimer

uint32 OPvPCapturePointNA::m_RespawnTimer
private

Definition at line 182 of file OutdoorPvPNA.h.

◆ m_WyvernStateEast

uint32 OPvPCapturePointNA::m_WyvernStateEast
private

Definition at line 179 of file OutdoorPvPNA.h.

◆ m_WyvernStateNorth

uint32 OPvPCapturePointNA::m_WyvernStateNorth
private

Definition at line 177 of file OutdoorPvPNA.h.

◆ m_WyvernStateSouth

uint32 OPvPCapturePointNA::m_WyvernStateSouth
private

Definition at line 178 of file OutdoorPvPNA.h.

◆ m_WyvernStateWest

uint32 OPvPCapturePointNA::m_WyvernStateWest
private

Definition at line 180 of file OutdoorPvPNA.h.


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