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

Public Member Functions

 achievement_three_car_garage_demolisher ()
 
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_three_car_garage_demolisher::achievement_three_car_garage_demolisher ( )
inline
1309 : AchievementCriteriaScript("achievement_three_car_garage_demolisher") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

1312  {
1313  if (Creature* vehicle = source->GetVehicleCreatureBase())
1314  {
1315  if (vehicle->GetEntry() == VEHICLE_DEMOLISHER)
1316  return true;
1317  }
1318 
1319  return false;
1320  }
Definition: Creature.h:467
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:14346
Definition: boss_flame_leviathan.cpp:138

+ Here is the call graph for this function:


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