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

Public Member Functions

 achievement_yogg_saron_he_waits_dreaming (char const *name, uint8 illusion)
 
bool OnCheck (Player *player, Unit *, 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

uint8 const _requiredIllusion
 

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

achievement_yogg_saron_he_waits_dreaming::achievement_yogg_saron_he_waits_dreaming ( char const *  name,
uint8  illusion 
)
inline
2914 _requiredIllusion(illusion)
2915 {
2916 }
Definition: AchievementCriteriaScript.h:24
uint8 const _requiredIllusion
Definition: boss_yoggsaron.cpp:2928

Member Function Documentation

◆ OnCheck()

bool achievement_yogg_saron_he_waits_dreaming::OnCheck ( Player player,
Unit ,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

2919 {
2920 if (player->GetInstanceScript())
2922 return sara->GetAI()->GetData(DATA_GET_CURRENT_ILLUSION) == _requiredIllusion;
2923
2924 return false;
2925 }
@ NPC_BRAIN_OF_YOGG_SARON
Definition: ulduar.h:125
@ DATA_GET_CURRENT_ILLUSION
Definition: boss_yoggsaron.cpp:265
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:98

References _requiredIllusion, DATA_GET_CURRENT_ILLUSION, ObjectAccessor::GetCreature(), InstanceScript::GetGuidData(), WorldObject::GetInstanceScript(), and NPC_BRAIN_OF_YOGG_SARON.

Member Data Documentation

◆ _requiredIllusion

uint8 const achievement_yogg_saron_he_waits_dreaming::_requiredIllusion
private

Referenced by OnCheck().