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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

2483  {
2484  // Only melee disks can be used
2485  if (Unit* disk = source->GetVehicleBase())
2486  if (disk->GetEntry() == NPC_HOVER_DISK_MELEE)
2487  return true;
2488 
2489  return false;
2490  }
Unit * GetVehicleBase() const
Definition: Unit.cpp:14341
Definition: eye_of_eternity.h:50
Definition: Unit.h:1305

+ Here is the call graph for this function:


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