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

Public Member Functions

 at_sc_slabhide_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_slabhide_intro::at_sc_slabhide_intro ( )
inline
415 : AreaTriggerScript("at_sc_slabhide_intro") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

418  {
419  if (InstanceScript* instance = player->GetInstanceScript())
420  if (Creature* slabhide = instance->GetCreature(DATA_SLABHIDE))
421  slabhide->AI()->DoAction(ACTION_SLABHIDE_INTRO);
422  return true;
423  }
Definition: Creature.h:467
Definition: stonecore.h:50
Definition: stonecore.h:28
Definition: InstanceScript.h:141

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