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

Public Member Functions

 at_dragonspire_hall ()
 
bool OnTrigger (Player *player, const AreaTriggerEntry *, bool) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

at_dragonspire_hall::at_dragonspire_hall ( )
inline
523 : AreaTriggerScript("at_dragonspire_hall") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_dragonspire_hall::OnTrigger ( Player player,
const AreaTriggerEntry ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

526  {
527  if (player && player->IsAlive())
528  {
529  if (InstanceScript* instance = player->GetInstanceScript())
530  {
531  instance->SetData(AREATRIGGER, AREATRIGGER_DRAGONSPIRE_HALL);
532  return true;
533  }
534  }
535 
536  return false;
537  }
Definition: blackrock_spire.h:82
Definition: InstanceScript.h:141
Definition: blackrock_spire.h:83

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