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

#include <Battlefield.h>

Inheritance diagram for BfCapturePoint:
Collaboration diagram for BfCapturePoint:

Public Member Functions

 BfCapturePoint (Battlefield *bf)
virtual void ChangeTeam (TeamId)
virtual void FillInitialWorldStates (WorldStateBuilder &)
uint32 GetCapturePointEntry () const
GameObjectGetCapturePointGo ()
TeamId GetTeamId () const
virtual bool HandlePlayerEnter (Player *player)
virtual GuidSet::iterator HandlePlayerLeave (Player *player)
bool IsInsideObjective (Player *player) const
virtual void SendChangePhase ()
void SendObjectiveComplete (uint32 id, uint64 guid)
void SendUpdateWorldState (uint32 field, uint32 value)
bool SetCapturePointData (GameObject *capturePoint)
virtual bool Update (uint32 diff)
virtual ~BfCapturePoint ()

Protected Member Functions

bool DelCapturePoint ()

Protected Attributes

GuidSet m_activePlayers [2]
Battlefieldm_Bf
uint32 m_capturePointEntry
uint64 m_capturePointGUID
float m_maxSpeed
float m_maxValue
float m_minValue
uint32 m_neutralValuePct
BattlefieldObjectiveStates m_OldState
BattlefieldObjectiveStates m_State
TeamId m_team
float m_value

Detailed Description

Definition at line 66 of file Battlefield.h.

Constructor & Destructor Documentation

◆ BfCapturePoint()

◆ ~BfCapturePoint()

virtual BfCapturePoint::~BfCapturePoint ( )
inlinevirtual

Definition at line 73 of file Battlefield.h.

Member Function Documentation

◆ ChangeTeam()

virtual void BfCapturePoint::ChangeTeam ( TeamId )
inlinevirtual

Reimplemented in WintergraspCapturePoint.

Definition at line 93 of file Battlefield.h.

Referenced by Update().

◆ DelCapturePoint()

bool BfCapturePoint::DelCapturePoint ( )
protected

Definition at line 911 of file Battlefield.cpp.

References m_Bf, and m_capturePointGUID.

◆ FillInitialWorldStates()

virtual void BfCapturePoint::FillInitialWorldStates ( WorldStateBuilder & )
inlinevirtual

Definition at line 75 of file Battlefield.h.

◆ GetCapturePointEntry()

uint32 BfCapturePoint::GetCapturePointEntry ( ) const
inline

Definition at line 98 of file Battlefield.h.

References m_capturePointEntry.

Referenced by Battlefield::AddCapturePoint().

◆ GetCapturePointGo()

GameObject * BfCapturePoint::GetCapturePointGo ( )

Definition at line 906 of file Battlefield.cpp.

References m_Bf, and m_capturePointGUID.

◆ GetTeamId()

TeamId BfCapturePoint::GetTeamId ( ) const
inline

Definition at line 100 of file Battlefield.h.

References m_team.

◆ HandlePlayerEnter()

bool BfCapturePoint::HandlePlayerEnter ( Player * player)
virtual

◆ HandlePlayerLeave()

GuidSet::iterator BfCapturePoint::HandlePlayerLeave ( Player * player)
virtual

◆ IsInsideObjective()

bool BfCapturePoint::IsInsideObjective ( Player * player) const

Definition at line 1078 of file Battlefield.cpp.

References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.

◆ SendChangePhase()

void BfCapturePoint::SendChangePhase ( )
virtual

Definition at line 854 of file Battlefield.cpp.

References m_Bf, m_capturePointGUID, m_maxValue, m_neutralValuePct, m_value, and SendUpdateWorldState().

Referenced by Update().

◆ SendObjectiveComplete()

void BfCapturePoint::SendObjectiveComplete ( uint32 id,
uint64 guid )

Definition at line 1057 of file Battlefield.cpp.

References ALLIANCE, HORDE, m_activePlayers, m_State, and sObjectAccessor.

◆ SendUpdateWorldState()

void BfCapturePoint::SendUpdateWorldState ( uint32 field,
uint32 value )

Definition at line 1049 of file Battlefield.cpp.

References m_activePlayers, and sObjectAccessor.

Referenced by SendChangePhase().

◆ SetCapturePointData()

◆ Update()

Member Data Documentation

◆ m_activePlayers

GuidSet BfCapturePoint::m_activePlayers[2]
protected

◆ m_Bf

◆ m_capturePointEntry

uint32 BfCapturePoint::m_capturePointEntry
protected

Definition at line 129 of file Battlefield.h.

Referenced by BfCapturePoint(), GetCapturePointEntry(), and SetCapturePointData().

◆ m_capturePointGUID

uint64 BfCapturePoint::m_capturePointGUID
protected

◆ m_maxSpeed

float BfCapturePoint::m_maxSpeed
protected

Definition at line 112 of file Battlefield.h.

Referenced by BfCapturePoint(), SetCapturePointData(), and Update().

◆ m_maxValue

float BfCapturePoint::m_maxValue
protected

◆ m_minValue

float BfCapturePoint::m_minValue
protected

Definition at line 109 of file Battlefield.h.

Referenced by BfCapturePoint(), SetCapturePointData(), and Update().

◆ m_neutralValuePct

uint32 BfCapturePoint::m_neutralValuePct
protected

◆ m_OldState

BattlefieldObjectiveStates BfCapturePoint::m_OldState
protected

Definition at line 119 of file Battlefield.h.

Referenced by BfCapturePoint(), and Update().

◆ m_State

BattlefieldObjectiveStates BfCapturePoint::m_State
protected

Definition at line 120 of file Battlefield.h.

Referenced by BfCapturePoint(), SendObjectiveComplete(), SetCapturePointData(), and Update().

◆ m_team

◆ m_value

float BfCapturePoint::m_value
protected

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