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

Public Member Functions

 achievement_all_you_can_eat ()
 
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_all_you_can_eat()

achievement_all_you_can_eat::achievement_all_you_can_eat ( )
inline
1171: AchievementCriteriaScript("achievement_all_you_can_eat") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1174 {
1175 if (!target || target->GetEntry() != NPC_SINDRAGOSA)
1176 return false;
1177 return target->GetAI()->GetData(DATA_MYSTIC_BUFFET_STACK) <= 5;
1178 }
@ NPC_SINDRAGOSA
Definition: pit_of_saron.h:72
@ DATA_MYSTIC_BUFFET_STACK
Definition: boss_sindragosa.cpp:146
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
uint32 GetEntry() const
Definition: Object.h:112
UnitAI * GetAI()
Definition: Unit.h:658

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