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

Public Member Functions

 at_sc_corborus_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_sc_corborus_intro::at_sc_corborus_intro ( )
inline
401 : AreaTriggerScript("at_sc_corborus_intro") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

404  {
405  if (InstanceScript* instance = player->GetInstanceScript())
406  if (Creature* corborus = instance->GetCreature(DATA_CORBORUS))
407  corborus->AI()->DoAction(ACTION_CORBORUS_INTRO);
408  return true;
409  }
Definition: Creature.h:467
Definition: InstanceScript.h:141
Definition: stonecore.h:27
Definition: stonecore.h:49

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