AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
achievement_freya_knock_on_wood Class Reference
Inheritance diagram for achievement_freya_knock_on_wood:
AchievementCriteriaScript ScriptObject

Public Member Functions

 achievement_freya_knock_on_wood (char const *name, uint32 count)
 
bool OnCheck (Player *, Unit *target, uint32) override
 
- Public Member Functions inherited from AchievementCriteriaScript
bool IsDatabaseBound () const override
 
virtual bool OnCheck (Player *, Unit *, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Private Attributes

uint32 const _elderCount
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_freya_knock_on_wood()

achievement_freya_knock_on_wood::achievement_freya_knock_on_wood ( char const *  name,
uint32  count 
)
inline
1286 _elderCount(count)
1287 {
1288 }
Definition: AchievementCriteriaScript.h:24
uint32 const _elderCount
Definition: boss_freya.cpp:1296

Member Function Documentation

◆ OnCheck()

bool achievement_freya_knock_on_wood::OnCheck ( Player ,
Unit target,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

1291 {
1292 return target && _elderCount <= target->GetAI()->GetData(DATA_GET_ELDER_COUNT);
1293 }
@ DATA_GET_ELDER_COUNT
Definition: boss_freya.cpp:240
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
UnitAI * GetAI()
Definition: Unit.h:658

References _elderCount, DATA_GET_ELDER_COUNT, Unit::GetAI(), and UnitAI::GetData().

Member Data Documentation

◆ _elderCount

uint32 const achievement_freya_knock_on_wood::_elderCount
private

Referenced by OnCheck().