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

Public Member Functions

 SACDeactivateEvent (Creature *owner)
 
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

Creature_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ SACDeactivateEvent()

SACDeactivateEvent::SACDeactivateEvent ( Creature owner)
inline
1375: _owner(owner) {}
Creature * _owner
Definition: zone_dragonblight.cpp:1386

Member Function Documentation

◆ Execute()

bool SACDeactivateEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1378 {
1381 _owner->SetDisplayId(11686);
1382 return true;
1383 }
@ REACT_PASSIVE
Definition: Unit.h:548
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
void SetDisplayId(uint32 displayId, float displayScale=1.f) override
Definition: Creature.cpp:3518
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:94
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:713

References _owner, REACT_PASSIVE, Creature::SetDisplayId(), Creature::SetReactState(), Unit::SetUnitFlag(), and UNIT_FLAG_NOT_SELECTABLE.

Member Data Documentation

◆ _owner

Creature* SACDeactivateEvent::_owner
private

Referenced by Execute().