TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
achievement_bg_ic_mowed_down Class Reference

Public Member Functions

 achievement_bg_ic_mowed_down ()
 
bool OnCheck (Player *source, Unit *) override
 
- Public Member Functions inherited from ScriptObject
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 ()
 

Constructor & Destructor Documentation

achievement_bg_ic_mowed_down::achievement_bg_ic_mowed_down ( )
inline
101 : AchievementCriteriaScript("achievement_bg_ic_mowed_down") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

104  {
105  if (Creature* vehicle = source->GetVehicleCreatureBase())
106  {
107  if (vehicle->GetEntry() == NPC_KEEP_CANNON)
108  return true;
109  }
110 
111  return false;
112  }
Definition: Creature.h:467
Definition: BattlegroundIC.h:39
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:14346

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: