TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
at_zumrah Class Reference

Public Member Functions

 at_zumrah ()
 
bool OnTrigger (Player *player, const AreaTriggerEntry *, bool) override
 
- Public Member Functions inherited from ScriptObject
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 ()
 

Constructor & Destructor Documentation

at_zumrah::at_zumrah ( )
inline
445 : AreaTriggerScript("at_zumrah") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_zumrah::OnTrigger ( Player player,
const AreaTriggerEntry ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

448  {
449  Creature* pZumrah = player->FindNearestCreature(ZUMRAH_ID, 30.0f);
450 
451  if (!pZumrah)
452  return false;
453 
455  return true;
456  }
Definition: zulfarrak.cpp:438
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
void setFaction(uint32 faction)
Definition: Unit.h:1467
Definition: zulfarrak.cpp:439

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: