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

Public Member Functions

 achievement_bg_ic_mowed_down ()
 
bool OnCheck (Player *source, 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
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_bg_ic_mowed_down()

achievement_bg_ic_mowed_down::achievement_bg_ic_mowed_down ( )
inline
100: AchievementCriteriaScript("achievement_bg_ic_mowed_down") { }
Definition: ScriptMgr.h:976

Member Function Documentation

◆ OnCheck()

bool achievement_bg_ic_mowed_down::OnCheck ( Player source,
Unit ,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

103 {
104 if (Creature* vehicle = source->GetVehicleCreatureBase())
105 return vehicle->GetEntry() == NPC_KEEP_CANNON;
106
107 return false;
108 }
@ NPC_KEEP_CANNON
Definition: BattlegroundIC.h:37
Definition: Creature.h:46
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:18915

References Unit::GetVehicleCreatureBase(), and NPC_KEEP_CANNON.