AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
achievement_bg_av_perfection Class Reference
Inheritance diagram for achievement_bg_av_perfection:
AchievementCriteriaScript ScriptObject

Public Member Functions

 achievement_bg_av_perfection ()
 
bool OnCheck (Player *source, Unit *, uint32) override
 
- Public Member Functions inherited from AchievementCriteriaScript
bool IsDatabaseBound () const override
 
virtual bool OnCheck (Player *, Unit *, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_bg_av_perfection()

achievement_bg_av_perfection::achievement_bg_av_perfection ( )
inline
175: AchievementCriteriaScript("achievement_bg_av_perfection") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

bool achievement_bg_av_perfection::OnCheck ( Player source,
Unit ,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

178 {
179 Battleground* bg = source->GetBattleground();
181 }
@ BATTLEGROUND_AV
Definition: SharedDefines.h:3481
Definition: Battleground.h:298
BattlegroundAV * ToBattlegroundAV()
Definition: Battleground.h:574
BattlegroundTypeId GetBgTypeID(bool GetRandom=false) const
Definition: Battleground.h:324
bool IsAllTowersControlledAndCaptainAlive(TeamId teamId) const
Definition: BattlegroundAV.cpp:1588
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2072
Battleground * GetBattleground(bool create=false) const
Definition: Player.cpp:12117

References BATTLEGROUND_AV, Player::GetBattleground(), Battleground::GetBgTypeID(), Player::GetTeamId(), BattlegroundAV::IsAllTowersControlledAndCaptainAlive(), and Battleground::ToBattlegroundAV().