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

Public Member Functions

 achievement_all_you_can_eat ()
 
bool OnCheck (Player *, 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_all_you_can_eat::achievement_all_you_can_eat ( )
inline
1613 : AchievementCriteriaScript("achievement_all_you_can_eat") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

1616  {
1617  if (!target)
1618  return false;
1619  return target->GetAI()->GetData(DATA_MYSTIC_BUFFET_STACK) <= 5;
1620  }
UnitAI * GetAI()
Definition: Unit.h:1331
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139
Definition: boss_sindragosa.cpp:132

+ Here is the call graph for this function:


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