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
435 {
438 }
@ TEAM_NEUTRAL
Definition: SharedDefines.h:762
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ TEAM_HORDE
Definition: SharedDefines.h:761
@ BG_EY_PROGRESS_BAR_STATE_MIDDLE
Definition: BattlegroundEY.h:75
int8 _barStatus
Definition: BattlegroundEY.h:441
TeamId _ownerTeamId
Definition: BattlegroundEY.h:440
int8 _playersCount[PVP_TEAMS_COUNT]
Definition: BattlegroundEY.h:443
uint32 _areaTrigger
Definition: BattlegroundEY.h:442

References TEAM_ALLIANCE, and TEAM_HORDE.

Member Function Documentation

◆ IsUncontrolled()

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

References TEAM_NEUTRAL.

◆ IsUnderControl() [1/2]

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

References TEAM_NEUTRAL.

◆ IsUnderControl() [2/2]

bool BattlegroundEY::CapturePointInfo::IsUnderControl ( TeamId  teamId) const
inline
446{ 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