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

Public Member Functions

 at_underbog_ghazan ()
 
bool _OnTrigger (Player *player, const AreaTrigger *) override
 
- Public Member Functions inherited from OnlyOnceAreaTriggerScript
bool OnTrigger (Player *, AreaTrigger const *) 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 OnlyOnceAreaTriggerScript
virtual bool _OnTrigger (Player *, AreaTrigger const *)=0
 
void ResetAreaTriggerDone (InstanceScript *, uint32)
 
void ResetAreaTriggerDone (Player const *, AreaTrigger const *)
 
- 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_underbog_ghazan()

at_underbog_ghazan::at_underbog_ghazan ( )
inline
140: OnlyOnceAreaTriggerScript("at_underbog_ghazan") {}
Definition: AreaTriggerScript.h:36

Member Function Documentation

◆ _OnTrigger()

bool at_underbog_ghazan::_OnTrigger ( Player player,
const AreaTrigger  
)
inlineoverridevirtual

Implements OnlyOnceAreaTriggerScript.

143 {
144 if (InstanceScript* instance = player->GetInstanceScript())
145 {
146 if (Creature* ghazan = instance->GetCreature(DATA_GHAZAN))
147 {
148 ghazan->AI()->DoAction(ACTION_MOVE_TO_PLATFORM);
149 return true;
150 }
151 }
152
153 return false;
154 }
@ ACTION_MOVE_TO_PLATFORM
Definition: boss_ghazan.cpp:32
@ DATA_GHAZAN
Definition: the_underbog.h:28
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References ACTION_MOVE_TO_PLATFORM, DATA_GHAZAN, and WorldObject::GetInstanceScript().