AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BattlegroundEY::CapturePointInfo Struct Reference

Public Member Functions

 CapturePointInfo ()
 
bool IsUnderControl (TeamId teamId) const
 
bool IsUnderControl () const
 
bool IsUncontrolled () const
 

Public Attributes

TeamId _ownerTeamId
 
int8 _barStatus
 
uint32 _areaTrigger
 
int8 _playersCount [PVP_TEAMS_COUNT]
 
Playerplayer = nullptr
 

Detailed Description

Constructor & Destructor Documentation

◆ CapturePointInfo()

BattlegroundEY::CapturePointInfo::CapturePointInfo ( )
inline
409 {
412 }
@ BG_EY_PROGRESS_BAR_STATE_MIDDLE
Definition BattlegroundEY.h:49
@ TEAM_NEUTRAL
Definition SharedDefines.h:762
@ TEAM_ALLIANCE
Definition SharedDefines.h:760
@ TEAM_HORDE
Definition SharedDefines.h:761
int8 _barStatus
Definition BattlegroundEY.h:415
TeamId _ownerTeamId
Definition BattlegroundEY.h:414
int8 _playersCount[PVP_TEAMS_COUNT]
Definition BattlegroundEY.h:417
uint32 _areaTrigger
Definition BattlegroundEY.h:416

References TEAM_ALLIANCE, and TEAM_HORDE.

Member Function Documentation

◆ IsUncontrolled()

bool BattlegroundEY::CapturePointInfo::IsUncontrolled ( ) const
inline
422{ return _ownerTeamId == TEAM_NEUTRAL; }

References TEAM_NEUTRAL.

◆ IsUnderControl() [1/2]

bool BattlegroundEY::CapturePointInfo::IsUnderControl ( ) const
inline
421{ return _ownerTeamId != TEAM_NEUTRAL; }

References TEAM_NEUTRAL.

◆ IsUnderControl() [2/2]

bool BattlegroundEY::CapturePointInfo::IsUnderControl ( TeamId  teamId) const
inline
420{ return _ownerTeamId == teamId; }

Member Data Documentation

◆ _areaTrigger

uint32 BattlegroundEY::CapturePointInfo::_areaTrigger

◆ _barStatus

int8 BattlegroundEY::CapturePointInfo::_barStatus

◆ _ownerTeamId

TeamId BattlegroundEY::CapturePointInfo::_ownerTeamId

◆ _playersCount

int8 BattlegroundEY::CapturePointInfo::_playersCount[PVP_TEAMS_COUNT]

◆ player

Player* BattlegroundEY::CapturePointInfo::player = nullptr

The documentation for this struct was generated from the following file: