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

Public Member Functions

 at_rp_nethekurse ()
 
bool _OnTrigger (Player *player, AreaTrigger const *) 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_rp_nethekurse()

at_rp_nethekurse::at_rp_nethekurse ( )
inline
337: OnlyOnceAreaTriggerScript("at_rp_nethekurse") { }
Definition: AreaTriggerScript.h:36

Member Function Documentation

◆ _OnTrigger()

bool at_rp_nethekurse::_OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Implements OnlyOnceAreaTriggerScript.

340 {
341 if (InstanceScript* instance = player->GetInstanceScript())
342 {
343 if (instance->GetBossState(DATA_NETHEKURSE) != DONE && instance->GetBossState(DATA_NETHEKURSE) != IN_PROGRESS)
344 {
345 if (Creature* nethekurse = instance->GetCreature(DATA_NETHEKURSE))
346 {
347 nethekurse->AI()->DoAction(ACTION_START_INTRO);
348 }
349 }
350 }
351 return false;
352 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ DONE
Definition: InstanceScript.h:60
@ ACTION_START_INTRO
Definition: boss_nethekurse.cpp:77
@ DATA_NETHEKURSE
Definition: shattered_halls.h:27
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References ACTION_START_INTRO, DATA_NETHEKURSE, DONE, WorldObject::GetInstanceScript(), and IN_PROGRESS.