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

Public Member Functions

 achievement_bg_sa_defense_of_ancients ()
 
bool OnCheck (Player *source, Unit *target) override
 
- Public Member Functions inherited from ScriptObject
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 ()
 

Constructor & Destructor Documentation

achievement_bg_sa_defense_of_ancients::achievement_bg_sa_defense_of_ancients ( )
inline
202 : AchievementCriteriaScript("achievement_bg_sa_defense_of_ancients") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_bg_sa_defense_of_ancients::OnCheck ( Player source,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

205  {
206  if (Battleground* bg = source->GetBattleground())
207  return bg->CheckAchievementCriteriaMeet(BG_CRITERIA_CHECK_DEFENSE_OF_THE_ANCIENTS, source, target);
208 
209  return false;
210  }
Definition: Battleground.h:51
Definition: Battleground.h:235

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