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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1329  {
1330  if (Creature* vehicle = source->GetVehicleCreatureBase())
1331  {
1332  if (vehicle->GetEntry() == VEHICLE_CHOPPER)
1333  return true;
1334  }
1335 
1336  return false;
1337  }
Definition: Creature.h:467
Definition: boss_flame_leviathan.cpp:137
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: