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

Public Member Functions

 AreaTrigger_at_coilfang_waterfall ()
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AreaTrigger_at_coilfang_waterfall()

AreaTrigger_at_coilfang_waterfall::AreaTrigger_at_coilfang_waterfall ( )
inline
79 : AreaTriggerScript("at_coilfang_waterfall")
80 {
81 }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

84 {
86 if (go->getLootState() == GO_READY)
87 go->UseDoorOrButton();
88
89 return false;
90 }
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition: ScriptedCreature.cpp:813
@ GO_READY
Definition: GameObject.h:113
@ GO_COILFANG_WATERFALL
Definition: areatrigger_scripts.cpp:72
Definition: GameObject.h:122

References GetClosestGameObjectWithEntry(), GO_COILFANG_WATERFALL, and GO_READY.