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

Public Member Functions

 HideNpcEvent (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

◆ HideNpcEvent()

HideNpcEvent::HideNpcEvent ( Creature owner)
inline
74: _owner(owner) { }
Creature & _owner
Definition: boss_anubarak_trial.cpp:83

Member Function Documentation

◆ Execute()

bool HideNpcEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

77 {
78 _owner.SetVisible(false);
79 return true;
80 }
void SetVisible(bool x)
Definition: Unit.cpp:14189

References _owner, and Unit::SetVisible().

Member Data Documentation

◆ _owner

Creature& HideNpcEvent::_owner
private

Referenced by Execute().