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

Public Member Functions

 achievement_intense_cold ()
 
bool OnCheck (Player *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_intense_cold()

achievement_intense_cold::achievement_intense_cold ( )
inline
188: AchievementCriteriaScript("achievement_intense_cold") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

bool achievement_intense_cold::OnCheck ( Player player,
Unit target,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

191 {
192 if (!target)
193 return false;
194
195 return target->GetAI()->GetData(player->GetGUID().GetCounter());
196 }
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
LowType GetCounter() const
Definition: ObjectGuid.h:145
UnitAI * GetAI()
Definition: Unit.h:658

References Unit::GetAI(), ObjectGuid::GetCounter(), UnitAI::GetData(), and Object::GetGUID().