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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1346  {
1347  if (Creature* vehicle = source->GetVehicleCreatureBase())
1348  {
1349  if (vehicle->GetEntry() == VEHICLE_SIEGE)
1350  return true;
1351  }
1352 
1353  return false;
1354  }
Definition: boss_flame_leviathan.cpp:136
Definition: Creature.h:467
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: