Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
OPvPCapturePointNA Class Reference

#include <OutdoorPvPNA.h>

Inheritance diagram for OPvPCapturePointNA:
Collaboration diagram for OPvPCapturePointNA:

Public Member Functions

void ChangeState () OVERRIDE
void FillInitialWorldStates (WorldStateBuilder &builder) OVERRIDE
uint32 GetAliveGuardsCount ()
uint32 GetControllingFaction () const
bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) OVERRIDE
int32 HandleOpenGo (Player *player, uint64 guid) OVERRIDE
bool HandlePlayerEnter (Player *player) OVERRIDE
void HandlePlayerLeave (Player *player) OVERRIDE
 OPvPCapturePointNA (OutdoorPvP *pvp)
void SendChangePhase () OVERRIDE
bool Update (uint32 diff) OVERRIDE
Public Member Functions inherited from OPvPCapturePoint
void AddCre (uint32 type, uint32 guid, uint32 entry=0)
void AddGO (uint32 type, uint32 guid, uint32 entry=0)
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
virtual void ChangeTeam (TeamId)
virtual void DeleteSpawns ()
virtual bool HandleDropFlag (Player *player, uint32 spellId)
virtual bool HandleGossipOption (Player *player, uint64 guid, uint32 gossipid)
bool IsInsideObjective (Player *player) const
 OPvPCapturePoint (OutdoorPvP *pvp)
void SendObjectiveComplete (uint32 id, uint64 guid)
void SendUpdateWorldState (uint32 field, uint32 value)
bool SetCapturePointData (uint32 entry, uint32 map, float x, float y, float z, float o=0, float rotation0=0, float rotation1=0, float rotation2=0, float rotation3=0)
virtual ~OPvPCapturePoint ()

Protected Member Functions

void DeSpawnGOs ()
void DeSpawnNPCs ()
void FactionTakeOver (uint32 team)
void SpawnGOsForTeam (uint32 team)
void SpawnNPCsForTeam (uint32 team)
void UpdateHalaaWorldState ()
void UpdateWyvernRoostWorldState (uint32 roost)
Protected Member Functions inherited from OPvPCapturePoint
bool AddCreature (uint32 type, uint32 entry, uint32 teamval, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay=0)
bool AddObject (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3)
bool DelCapturePoint ()
bool DelCreature (uint32 type)
bool DelObject (uint32 type)

Private Attributes

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

Additional Inherited Members

Public Attributes inherited from OPvPCapturePoint
GameObjectm_capturePoint
uint32 m_capturePointGUID
Protected Attributes inherited from OPvPCapturePoint
PlayerSet m_activePlayers [2]
std::map< uint32, uint64m_Creatures
std::map< uint64, uint32m_CreatureTypes
float m_maxSpeed
float m_maxValue
float m_minValue
uint32 m_neutralValuePct
std::map< uint32, uint64m_Objects
std::map< uint64, uint32m_ObjectTypes
ObjectiveStates m_OldState
OutdoorPvPm_PvP
ObjectiveStates m_State
TeamId m_team
float m_value

Detailed Description

Definition at line 241 of file OutdoorPvPNA.h.

Constructor & Destructor Documentation

◆ OPvPCapturePointNA()

Member Function Documentation

◆ ChangeState()

◆ DeSpawnGOs()

void OPvPCapturePointNA::DeSpawnGOs ( )
protected

Definition at line 114 of file OutdoorPvPNA.cpp.

References OPvPCapturePoint::DelObject(), and NA_CONTROL_GO_NUM.

Referenced by FactionTakeOver().

◆ DeSpawnNPCs()

void OPvPCapturePointNA::DeSpawnNPCs ( )
protected

Definition at line 84 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 66 of file OutdoorPvPNA.cpp.

References m_ControllingFaction.

◆ HandleCustomSpell()

◆ HandleOpenGo()

◆ HandlePlayerEnter()

◆ HandlePlayerLeave()

void OPvPCapturePointNA::HandlePlayerLeave ( Player * player)
virtual

◆ SendChangePhase()

◆ SpawnGOsForTeam()

◆ SpawnNPCsForTeam()

void OPvPCapturePointNA::SpawnNPCsForTeam ( uint32 team)
protected

◆ Update()

◆ UpdateHalaaWorldState()

void OPvPCapturePointNA::UpdateHalaaWorldState ( )
protected

◆ UpdateWyvernRoostWorldState()

Member Data Documentation

◆ m_capturable

bool OPvPCapturePointNA::m_capturable
private

Definition at line 271 of file OutdoorPvPNA.h.

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

◆ m_ControllingFaction

uint32 OPvPCapturePointNA::m_ControllingFaction
private

◆ m_GuardCheckTimer

uint32 OPvPCapturePointNA::m_GuardCheckTimer
private

Definition at line 280 of file OutdoorPvPNA.h.

Referenced by OPvPCapturePointNA(), and Update().

◆ m_GuardsAlive

uint32 OPvPCapturePointNA::m_GuardsAlive
private

◆ m_HalaaState

uint32 OPvPCapturePointNA::m_HalaaState
private

◆ m_RespawnTimer

uint32 OPvPCapturePointNA::m_RespawnTimer
private

Definition at line 279 of file OutdoorPvPNA.h.

Referenced by OPvPCapturePointNA(), and 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: