AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
at_dragonspire_hall Class Reference
Inheritance diagram for at_dragonspire_hall:
AreaTriggerScript ScriptObject

Public Member Functions

 at_dragonspire_hall ()
 
bool OnTrigger (Player *player, const AreaTrigger *) override
 
- Public Member Functions inherited from AreaTriggerScript
bool IsDatabaseBound () const override
 
virtual bool OnTrigger (Player *, AreaTrigger const *)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ at_dragonspire_hall()

at_dragonspire_hall::at_dragonspire_hall ( )
inline
722: AreaTriggerScript("at_dragonspire_hall") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

725 {
726 if (player && player->IsAlive())
727 {
728 if (InstanceScript* instance = player->GetInstanceScript())
729 {
730 instance->SetData(AREATRIGGER, AREATRIGGER_DRAGONSPIRE_HALL);
731 return true;
732 }
733 }
734
735 return false;
736 }
@ AREATRIGGER
Definition: blackrock_spire.h:102
@ AREATRIGGER_DRAGONSPIRE_HALL
Definition: blackrock_spire.h:103
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
bool IsAlive() const
Definition: Unit.h:1654
Definition: InstanceScript.h:142

References AREATRIGGER, AREATRIGGER_DRAGONSPIRE_HALL, WorldObject::GetInstanceScript(), and Unit::IsAlive().