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

Public Member Functions

 at_icc_gauntlet_event ()
 
bool OnTrigger (Player *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 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_icc_gauntlet_event()

at_icc_gauntlet_event::at_icc_gauntlet_event ( )
inline
3601: AreaTriggerScript("at_icc_gauntlet_event") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_icc_gauntlet_event::OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

3604 {
3605 if (InstanceScript* instance = player->GetInstanceScript())
3606 if (instance->GetBossState(DATA_SINDRAGOSA_GAUNTLET) == NOT_STARTED && !player->IsGameMaster())
3607 if (Creature* gauntlet = ObjectAccessor::GetCreature(*player, instance->GetGuidData(NPC_SINDRAGOSA_GAUNTLET)))
3608 gauntlet->AI()->DoAction(ACTION_START_GAUNTLET);
3609 return true;
3610 }
@ ACTION_START_GAUNTLET
Definition: icecrown_citadel.cpp:266
@ NPC_SINDRAGOSA_GAUNTLET
Definition: icecrown_citadel.h:335
@ DATA_SINDRAGOSA_GAUNTLET
Definition: icecrown_citadel.h:99
@ NOT_STARTED
Definition: InstanceScript.h:57
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
bool IsGameMaster() const
Definition: Player.h:1175
Definition: InstanceScript.h:142

References ACTION_START_GAUNTLET, DATA_SINDRAGOSA_GAUNTLET, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), Player::IsGameMaster(), NOT_STARTED, and NPC_SINDRAGOSA_GAUNTLET.