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

Public Member Functions

 at_alizabal_intro ()
 
bool OnTrigger (Player *player, AreaTriggerEntry const *, 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_alizabal_intro::at_alizabal_intro ( )
inline
66 : AreaTriggerScript("at_alizabal_intro") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

69  {
70  if (InstanceScript* instance = player->GetInstanceScript())
71  if (Creature* alizabal = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_ALIZABAL)))
72  alizabal->AI()->DoAction(ACTION_INTRO);
73  return true;
74  }
Definition: Creature.h:467
Definition: boss_alizabal.cpp:47
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: InstanceScript.h:141
Definition: baradin_hold.h:34

+ Here is the call graph for this function:


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