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

Public Member Functions

 achievement_resilient_victory ()
 
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_resilient_victory::achievement_resilient_victory ( )
inline
28 : AchievementCriteriaScript("achievement_resilient_victory") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

31  {
32  if (Battleground* bg = source->GetBattleground())
33  return bg->CheckAchievementCriteriaMeet(BG_CRITERIA_CHECK_RESILIENT_VICTORY, source, target);
34 
35  return false;
36  }
Definition: Battleground.h:235
Definition: Battleground.h:47

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