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

Public Member Functions

 at_lady_deathwhisper_entrance ()
 
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_lady_deathwhisper_entrance()

at_lady_deathwhisper_entrance::at_lady_deathwhisper_entrance ( )
inline
1166: AreaTriggerScript("at_lady_deathwhisper_entrance") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

1169 {
1170 if (InstanceScript* instance = player->GetInstanceScript())
1171 if (instance->GetBossState(DATA_LADY_DEATHWHISPER) != DONE)
1172 if (!player->IsGameMaster())
1173 if (Creature* ladyDeathwhisper = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_LADY_DEATHWHISPER)))
1174 ladyDeathwhisper->AI()->DoAction(ACTION_START_INTRO);
1175 return true;
1176 }
@ ACTION_START_INTRO
Definition: boss_lady_deathwhisper.cpp:192
@ DATA_LADY_DEATHWHISPER
Definition: icecrown_citadel.h:87
@ DONE
Definition: InstanceScript.h:60
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_INTRO, DATA_LADY_DEATHWHISPER, DONE, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and Player::IsGameMaster().