TrinityCore
achievement_respect_your_elders Class Reference

Public Member Functions

 achievement_respect_your_elders ()
 
bool OnCheck (Player *, Unit *target) override
 
- Public Member Functions inherited from AchievementCriteriaScript
 ~AchievementCriteriaScript ()
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (char const *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

◆ achievement_respect_your_elders()

achievement_respect_your_elders::achievement_respect_your_elders ( )
inline
265 : AchievementCriteriaScript("achievement_respect_your_elders") { }
AchievementCriteriaScript(char const *name)
Definition: ScriptMgr.cpp:2583

Member Function Documentation

◆ OnCheck()

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

Implements AchievementCriteriaScript.

268  {
269  return target && target->GetAI()->GetData(DATA_RESPECT_YOUR_ELDERS);
270  }
Definition: boss_elder_nadox.cpp:55
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:157
UnitAI * GetAI() const
Definition: Unit.h:778
+ Here is the call graph for this function:

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