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

Public Member Functions

 achievement_gen_eregos_void (char const *name, uint32 data)
 
bool OnCheck (Player *, Unit *target) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Private Attributes

uint32 _data
 

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_gen_eregos_void::achievement_gen_eregos_void ( char const name,
uint32  data 
)
inline
292 : AchievementCriteriaScript(name), _data(data) { }
uint32 _data
Definition: boss_eregos.cpp:300
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_gen_eregos_void::OnCheck ( Player ,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

295  {
296  return target && target->GetAI()->GetData(_data);
297  }
uint32 _data
Definition: boss_eregos.cpp:300
UnitAI * GetAI()
Definition: Unit.h:1331
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139

+ Here is the call graph for this function:

Member Data Documentation

uint32 achievement_gen_eregos_void::_data
private

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