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

Public Member Functions

 achievement_bg_sa_artillery ()
 
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
 
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_bg_sa_artillery()

achievement_bg_sa_artillery::achievement_bg_sa_artillery ( )
inline
113: AchievementCriteriaScript("achievement_bg_sa_artillery") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

116 {
117 if (Creature* vehicle = source->GetVehicleCreatureBase())
118 return vehicle->GetEntry() == NPC_ANTI_PERSONNAL_CANNON;
119
120 return false;
121 }
@ NPC_ANTI_PERSONNAL_CANNON
Definition: BattlegroundSA.h:76
Definition: Creature.h:43
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:18747

References Unit::GetVehicleCreatureBase(), and NPC_ANTI_PERSONNAL_CANNON.