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
 
BfCapturePoint & operator= (BfCapturePoint const &)=delete
 
BfCapturePoint & operator= (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)
 
GameObject * GetCapturePointGo ()
 
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
 
Battlefield * m_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

◆ 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.

Referenced by Update().

◆ DelCapturePoint()

bool BfCapturePoint::DelCapturePoint ( )
protected

◆ 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.

Referenced by Battlefield::AddCapturePoint().

◆ GetCapturePointGo()

GameObject * BfCapturePoint::GetCapturePointGo ( )

Definition at line 965 of file Battlefield.cpp.

References Battlefield::GetGameObject(), m_Bf, and m_capturePointGUID.

◆ GetTeamId()

TeamId BfCapturePoint::GetTeamId ( ) const
inline

Definition at line 121 of file Battlefield.h.

◆ 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 1137 of file Battlefield.cpp.

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ SendChangePhase()

void BfCapturePoint::SendChangePhase ( )
virtual

◆ SendObjectiveComplete()

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

◆ SendUpdateWorldState()

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

Definition at line 1108 of file Battlefield.cpp.

References ObjectAccessor::FindPlayer(), m_activePlayers, and PVP_TEAMS_COUNT.

Referenced by SendChangePhase().

◆ SetCapturePointData()

◆ Update()

Member Data Documentation

◆ m_activePlayers

GuidSet BfCapturePoint::m_activePlayers[PVP_TEAMS_COUNT]
protected

◆ m_Bf

◆ m_capturePointEntry

uint32 BfCapturePoint::m_capturePointEntry
protected

Definition at line 151 of file Battlefield.h.

Referenced by BfCapturePoint(), and SetCapturePointData().

◆ m_capturePointGUID

ObjectGuid BfCapturePoint::m_capturePointGUID
protected

◆ m_maxSpeed

float BfCapturePoint::m_maxSpeed
protected

Definition at line 134 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 131 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 141 of file Battlefield.h.

Referenced by BfCapturePoint(), and Update().

◆ m_State

BattlefieldObjectiveStates BfCapturePoint::m_State
protected

Definition at line 142 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: