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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

177  {
178  if (Battleground* bg = source->GetBattleground())
179  return bg->CheckAchievementCriteriaMeet(BG_CRITERIA_CHECK_EVERYTHING_COUNTS, source, target);
180 
181  return false;
182  }
Definition: Battleground.h:49
Definition: Battleground.h:235

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