AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WintergraspCapturePoint Class Reference

#include "BattlefieldWG.h"

Inheritance diagram for WintergraspCapturePoint:
BfCapturePoint

Public Member Functions

 WintergraspCapturePoint (BattlefieldWG *battlefield, TeamId teamInControl)
 
void LinkToWorkshop (WGWorkshop *workshop)
 
void ChangeTeam (TeamId oldteam) override
 
TeamId GetTeam () const
 
- Public Member Functions inherited from BfCapturePoint
 BfCapturePoint (Battlefield *bf)
 
virtual ~BfCapturePoint ()
 
virtual void FillInitialWorldStates (WorldPacket &)
 
void SendUpdateWorldState (uint32 field, uint32 value)
 
void SendObjectiveComplete (uint32 id, ObjectGuid guid)
 
virtual bool HandlePlayerEnter (Player *player)
 
virtual GuidUnorderedSet::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 ()
 
GameObjectGetCapturePointGo (WorldObject *obj)
 
TeamId GetTeamId ()
 

Protected Attributes

WGWorkshopm_Workshop
 
- Protected Attributes inherited from BfCapturePoint
GuidUnorderedSet m_activePlayers [2]
 
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_capturePoint
 

Additional Inherited Members

- Protected Member Functions inherited from BfCapturePoint
bool DelCapturePoint ()
 

Detailed Description

Constructor & Destructor Documentation

◆ WintergraspCapturePoint()

WintergraspCapturePoint::WintergraspCapturePoint ( BattlefieldWG battlefield,
TeamId  teamInControl 
)
1191 : BfCapturePoint(battlefield)
1192{
1193 m_Bf = battlefield;
1194 m_team = teamInControl;
1195 m_Workshop = nullptr;
1196}
Definition: Battlefield.h:80
Battlefield * m_Bf
Definition: Battlefield.h:137
TeamId m_team
Definition: Battlefield.h:127
WGWorkshop * m_Workshop
Definition: BattlefieldWG.h:269

References BfCapturePoint::m_Bf, BfCapturePoint::m_team, and m_Workshop.

Member Function Documentation

◆ ChangeTeam()

void WintergraspCapturePoint::ChangeTeam ( TeamId  oldteam)
overridevirtual

Reimplemented from BfCapturePoint.

1199{
1202}
#define ASSERT
Definition: Errors.h:68
void GiveControlTo(TeamId team, bool init)
Definition: BattlefieldWG.h:1468

References ASSERT, WGWorkshop::GiveControlTo(), BfCapturePoint::m_team, and m_Workshop.

◆ GetTeam()

TeamId WintergraspCapturePoint::GetTeam ( ) const
inline
266{ return m_team; }

References BfCapturePoint::m_team.

◆ LinkToWorkshop()

void WintergraspCapturePoint::LinkToWorkshop ( WGWorkshop workshop)
inline
263{ m_Workshop = workshop; }

References m_Workshop.

Referenced by BattlefieldWG::OnGameObjectCreate().

Member Data Documentation

◆ m_Workshop

WGWorkshop* WintergraspCapturePoint::m_Workshop
protected