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

#include <firelands.h>

Public Member Functions

 DelayedAttackStartEvent (Creature *owner)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 

Private Attributes

Creature_owner
 

Additional Inherited Members

- Public Attributes inherited from BasicEvent
bool to_Abort
 
uint64 m_addTime
 
uint64 m_execTime
 

Constructor & Destructor Documentation

DelayedAttackStartEvent::DelayedAttackStartEvent ( Creature owner)
inline
53 : _owner(owner) { }
Creature * _owner
Definition: firelands.h:62

Member Function Documentation

bool DelayedAttackStartEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

56  {
57  _owner->AI()->DoZoneInCombat(_owner, 200.0f);
58  return true;
59  }
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
Creature * _owner
Definition: firelands.h:62
CreatureAI * AI() const
Definition: Creature.h:525

+ Here is the call graph for this function:

Member Data Documentation

Creature* DelayedAttackStartEvent::_owner
private

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