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

Public Member Functions

 achievement_tilted ()
 
bool OnCheck (Player *player, 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_tilted::achievement_tilted ( )
inline
226 : AchievementCriteriaScript("achievement_tilted") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_tilted::OnCheck ( Player player,
Unit  
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

229  {
230  if (!player)
231  return false;
232 
233  bool checkArea = player->GetAreaId() == AREA_ARGENT_TOURNAMENT_FIELDS ||
234  player->GetAreaId() == AREA_RING_OF_ASPIRANTS ||
235  player->GetAreaId() == AREA_RING_OF_ARGENT_VALIANTS ||
236  player->GetAreaId() == AREA_RING_OF_ALLIANCE_VALIANTS ||
237  player->GetAreaId() == AREA_RING_OF_HORDE_VALIANTS ||
238  player->GetAreaId() == AREA_RING_OF_CHAMPIONS;
239 
240  return checkArea && player->duel && player->duel->isMounted;
241  }
Definition: achievement_scripts.cpp:219
Definition: achievement_scripts.cpp:220
Definition: achievement_scripts.cpp:217
Definition: achievement_scripts.cpp:215
Definition: achievement_scripts.cpp:218
Definition: achievement_scripts.cpp:216

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