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
436 {
439 }
@ BG_EY_PROGRESS_BAR_STATE_MIDDLE
Definition: BattlegroundEY.h:76
@ TEAM_NEUTRAL
Definition: SharedDefines.h:734
@ TEAM_ALLIANCE
Definition: SharedDefines.h:732
@ TEAM_HORDE
Definition: SharedDefines.h:733
int8 _barStatus
Definition: BattlegroundEY.h:442
TeamId _ownerTeamId
Definition: BattlegroundEY.h:441
int8 _playersCount[PVP_TEAMS_COUNT]
Definition: BattlegroundEY.h:444
uint32 _areaTrigger
Definition: BattlegroundEY.h:443

References TEAM_ALLIANCE, and TEAM_HORDE.

Member Function Documentation

◆ IsUncontrolled()

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

References TEAM_NEUTRAL.

◆ IsUnderControl() [1/2]

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

References TEAM_NEUTRAL.

◆ IsUnderControl() [2/2]

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