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

Public Member Functions

 achievement_flame_leviathan_garage (char const *name, uint32 entry1, uint32 entry2)
 
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 _entry1
 
uint32 const _entry2
 

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

achievement_flame_leviathan_garage::achievement_flame_leviathan_garage ( char const *  name,
uint32  entry1,
uint32  entry2 
)
inline
1992 _entry1(entry1), _entry2(entry2)
1993 {
1994 }
Definition: AchievementCriteriaScript.h:24
uint32 const _entry2
Definition: boss_flame_leviathan.cpp:2006
uint32 const _entry1
Definition: boss_flame_leviathan.cpp:2005

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1997 {
1998 if (Vehicle* vehicle = player->GetVehicle())
1999 if (vehicle->GetCreatureEntry() == _entry1 || vehicle->GetCreatureEntry() == _entry2)
2000 return true;
2001 return false;
2002 }
Vehicle * GetVehicle() const
Definition: Unit.h:1786
Definition: Vehicle.h:28

References Unit::GetVehicle().

Member Data Documentation

◆ _entry1

uint32 const achievement_flame_leviathan_garage::_entry1
private

◆ _entry2

uint32 const achievement_flame_leviathan_garage::_entry2
private