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

Public Member Functions

 achievement_watch_him_die ()
 
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 ()
 

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_watch_him_die()

achievement_watch_him_die::achievement_watch_him_die ( )
inline
235 : AchievementCriteriaScript("achievement_watch_him_die")
236 {
237 }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

240 {
241 if (!target)
242 return false;
243
244 return target->GetAI()->GetData(target->GetEntry());
245 }
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
uint32 GetEntry() const
Definition: Object.h:115
UnitAI * GetAI()
Definition: Unit.h:658

References Unit::GetAI(), UnitAI::GetData(), and Object::GetEntry().