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

Public Member Functions

 achievement_yogg_saron_darkness (char const *name, uint32 count)
 
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

uint32 const _keepersCount
 

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

achievement_yogg_saron_darkness::achievement_yogg_saron_darkness ( char const *  name,
uint32  count 
)
inline
2893 _keepersCount(count)
2894 {
2895 }
Definition: AchievementCriteriaScript.h:24
uint32 const _keepersCount
Definition: boss_yoggsaron.cpp:2907

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

2898 {
2899 if (player->GetInstanceScript())
2901 return sara->GetAI()->GetData(DATA_GET_KEEPERS_COUNT) <= _keepersCount;
2902
2903 return false;
2904 }
@ DATA_GET_KEEPERS_COUNT
Definition: boss_yoggsaron.cpp:264
@ NPC_SARA
Definition: ulduar.h:123
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95

References _keepersCount, DATA_GET_KEEPERS_COUNT, ObjectAccessor::GetCreature(), InstanceScript::GetGuidData(), WorldObject::GetInstanceScript(), and NPC_SARA.

Member Data Documentation

◆ _keepersCount

uint32 const achievement_yogg_saron_darkness::_keepersCount
private

Referenced by OnCheck().