TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WintergraspCapturePoint Class Reference

#include <BattlefieldWG.h>

Public Member Functions

 WintergraspCapturePoint (BattlefieldWG *battlefield, TeamId teamInControl)
 
void LinkToWorkshop (WintergraspWorkshop *workshop)
 
void ChangeTeam (TeamId oldteam) override
 
TeamId GetTeam () const
 
- Public Member Functions inherited from BfCapturePoint
 BfCapturePoint (Battlefield *bf)
 
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 SendChangePhase ()
 
bool SetCapturePointData (GameObject *capturePoint)
 
GameObjectGetCapturePointGo ()
 
uint32 GetCapturePointEntry () const
 
TeamId GetTeamId () const
 

Protected Attributes

WintergraspWorkshopm_Workshop
 
- Protected Attributes inherited from BfCapturePoint
GuidSet m_activePlayers [BG_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
 

Additional Inherited Members

- Protected Member Functions inherited from BfCapturePoint
bool DelCapturePoint ()
 

Constructor & Destructor Documentation

WintergraspCapturePoint::WintergraspCapturePoint ( BattlefieldWG battlefield,
TeamId  teamInControl 
)
1035  : BfCapturePoint(battlefield)
1036 {
1037  m_Bf = battlefield;
1038  m_team = teamInControl;
1039  m_Workshop = nullptr;
1040 }
BfCapturePoint(Battlefield *bf)
Definition: Battlefield.cpp:863
TeamId m_team
Definition: Battlefield.h:130
Battlefield * m_Bf
Definition: Battlefield.h:140
WintergraspWorkshop * m_Workshop
Definition: BattlefieldWG.h:262

Member Function Documentation

void WintergraspCapturePoint::ChangeTeam ( TeamId  oldteam)
overridevirtual

Reimplemented from BfCapturePoint.

1043 {
1044  ASSERT(m_Workshop);
1046 }
void GiveControlTo(TeamId teamId, bool init=false)
Definition: BattlefieldWG.cpp:1451
TeamId m_team
Definition: Battlefield.h:130
#define ASSERT
Definition: Errors.h:55
WintergraspWorkshop * m_Workshop
Definition: BattlefieldWG.h:262

+ Here is the call graph for this function:

TeamId WintergraspCapturePoint::GetTeam ( ) const
inline
259 { return m_team; }
TeamId m_team
Definition: Battlefield.h:130
void WintergraspCapturePoint::LinkToWorkshop ( WintergraspWorkshop workshop)
inline
256 { m_Workshop = workshop; }
WintergraspWorkshop * m_Workshop
Definition: BattlefieldWG.h:262

+ Here is the caller graph for this function:

Member Data Documentation

WintergraspWorkshop* WintergraspCapturePoint::m_Workshop
protected

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