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

Public Member Functions

 achievement_bg_control_all_nodes ()
 
bool OnCheck (Player *source, Unit *) 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_control_all_nodes::achievement_bg_control_all_nodes ( )
inline
42 : AchievementCriteriaScript("achievement_bg_control_all_nodes") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_bg_control_all_nodes::OnCheck ( Player source,
Unit  
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

45  {
46  if (Battleground* bg = source->GetBattleground())
47  return bg->IsAllNodesControlledByTeam(source->GetTeam());
48 
49  return false;
50  }
Definition: Battleground.h:235

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