AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DelayedWindstoneSummonEvent Class Reference
Inheritance diagram for DelayedWindstoneSummonEvent:
BasicEvent

Public Member Functions

 DelayedWindstoneSummonEvent (TempSummon *summon, ObjectGuid playerGUID)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool Execute (uint64, uint32)
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

TempSummon_summon
 
ObjectGuid _playerGUID
 

Detailed Description

Constructor & Destructor Documentation

◆ DelayedWindstoneSummonEvent()

DelayedWindstoneSummonEvent::DelayedWindstoneSummonEvent ( TempSummon summon,
ObjectGuid  playerGUID 
)
inline
1010: _summon(summon), _playerGUID(playerGUID) { }
ObjectGuid _playerGUID
Definition: zone_silithus.cpp:1024
TempSummon * _summon
Definition: zone_silithus.cpp:1023

Member Function Documentation

◆ Execute()

bool DelayedWindstoneSummonEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1013 {
1015 {
1016 _summon->AI()->AttackStart(player);
1017 }
1018
1019 return true;
1020 }
Player * FindPlayer(ObjectGuid const guid)
Definition: ObjectAccessor.cpp:245
virtual void AttackStart(Unit *)
Definition: UnitAI.cpp:27
CreatureAI * AI() const
Definition: Creature.h:140
Definition: Player.h:1081

References ObjectAccessor::FindPlayer().

Member Data Documentation

◆ _playerGUID

ObjectGuid DelayedWindstoneSummonEvent::_playerGUID
private

◆ _summon

TempSummon* DelayedWindstoneSummonEvent::_summon
private