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

Public Member Functions

 at_shattered_halls_execution ()
 
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_shattered_halls_execution()

at_shattered_halls_execution::at_shattered_halls_execution ( )
inline
189: AreaTriggerScript("at_shattered_halls_execution") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

192 {
193 if (InstanceScript* instanceScript = player->GetInstanceScript())
194 {
195 if (player->GetMap()->IsHeroic())
196 {
197 instanceScript->SetData(DATA_ENTERED_ROOM, DATA_ENTERED_ROOM);
198 }
199 }
200
201 return true;
202 }
@ DATA_ENTERED_ROOM
Definition: shattered_halls.h:33
Map * GetMap() const
Definition: Object.h:531
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142
bool IsHeroic() const
Definition: Map.h:452

References DATA_ENTERED_ROOM, WorldObject::GetInstanceScript(), WorldObject::GetMap(), and Map::IsHeroic().