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

#include <Battlefield.h>

+ Inheritance diagram for BfCapturePoint:

Public Member Functions

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

Protected Member Functions

bool DelCapturePoint ()
 

Protected Attributes

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

Detailed Description

Definition at line 85 of file Battlefield.h.

Constructor & Destructor Documentation

◆ BfCapturePoint() [1/3]

BfCapturePoint::BfCapturePoint ( Battlefield bf)
explicit

Definition at line 849 of file Battlefield.cpp.

◆ BfCapturePoint() [2/3]

BfCapturePoint::BfCapturePoint ( BfCapturePoint const &  )
delete

◆ BfCapturePoint() [3/3]

BfCapturePoint::BfCapturePoint ( BfCapturePoint &&  )
delete

◆ ~BfCapturePoint()

BfCapturePoint::~BfCapturePoint ( )
virtualdefault

Member Function Documentation

◆ ChangeTeam()

virtual void BfCapturePoint::ChangeTeam ( TeamId  )
inlinevirtual

Reimplemented in WintergraspCapturePoint.

Definition at line 114 of file Battlefield.h.

+ Here is the caller graph for this function:

◆ DelCapturePoint()

bool BfCapturePoint::DelCapturePoint ( )
protected

Definition at line 951 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ FillInitialWorldStates()

virtual void BfCapturePoint::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates )
inlinevirtual

Definition at line 96 of file Battlefield.h.

◆ GetCapturePointEntry()

uint32 BfCapturePoint::GetCapturePointEntry ( ) const
inline

Definition at line 119 of file Battlefield.h.

+ Here is the caller graph for this function:

◆ GetCapturePointGo()

GameObject * BfCapturePoint::GetCapturePointGo ( )

Definition at line 946 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ GetTeamId()

TeamId BfCapturePoint::GetTeamId ( ) const
inline

Definition at line 121 of file Battlefield.h.

◆ HandlePlayerEnter()

bool BfCapturePoint::HandlePlayerEnter ( Player player)
virtual

Definition at line 864 of file Battlefield.cpp.

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

◆ HandlePlayerLeave()

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

Definition at line 879 of file Battlefield.cpp.

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

◆ IsInsideObjective()

bool BfCapturePoint::IsInsideObjective ( Player player) const

Definition at line 1118 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

BfCapturePoint & BfCapturePoint::operator= ( BfCapturePoint &&  )
delete

◆ operator=() [2/2]

BfCapturePoint & BfCapturePoint::operator= ( BfCapturePoint const &  )
delete

◆ SendChangePhase()

void BfCapturePoint::SendChangePhase ( )
virtual

Definition at line 894 of file Battlefield.cpp.

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

◆ SendObjectiveComplete()

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

Definition at line 1097 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ SendUpdateWorldState()

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

Definition at line 1089 of file Battlefield.cpp.

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

◆ SetCapturePointData()

bool BfCapturePoint::SetCapturePointData ( GameObject capturePoint)

Definition at line 910 of file Battlefield.cpp.

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

◆ Update()

bool BfCapturePoint::Update ( uint32  diff)
virtual

Definition at line 967 of file Battlefield.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_activePlayers

GuidSet BfCapturePoint::m_activePlayers[PVP_TEAMS_COUNT]
protected

Definition at line 127 of file Battlefield.h.

◆ m_Bf

Battlefield* BfCapturePoint::m_Bf
protected

Definition at line 148 of file Battlefield.h.

◆ m_capturePointEntry

uint32 BfCapturePoint::m_capturePointEntry
protected

Definition at line 151 of file Battlefield.h.

◆ m_capturePointGUID

ObjectGuid BfCapturePoint::m_capturePointGUID
protected

Definition at line 154 of file Battlefield.h.

◆ m_maxSpeed

float BfCapturePoint::m_maxSpeed
protected

Definition at line 134 of file Battlefield.h.

◆ m_maxValue

float BfCapturePoint::m_maxValue
protected

Definition at line 130 of file Battlefield.h.

◆ m_minValue

float BfCapturePoint::m_minValue
protected

Definition at line 131 of file Battlefield.h.

◆ m_neutralValuePct

uint32 BfCapturePoint::m_neutralValuePct
protected

Definition at line 145 of file Battlefield.h.

◆ m_OldState

BattlefieldObjectiveStates BfCapturePoint::m_OldState
protected

Definition at line 141 of file Battlefield.h.

◆ m_State

BattlefieldObjectiveStates BfCapturePoint::m_State
protected

Definition at line 142 of file Battlefield.h.

◆ m_team

TeamId BfCapturePoint::m_team
protected

Definition at line 138 of file Battlefield.h.

◆ m_value

float BfCapturePoint::m_value
protected

Definition at line 137 of file Battlefield.h.


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