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

Public Member Functions

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

◆ NpcRunToHome()

NpcRunToHome::NpcRunToHome ( Creature owner)
inline
55: _owner(owner) { }
Creature & _owner
Definition: the_black_morass.cpp:64

Member Function Documentation

◆ Execute()

bool NpcRunToHome::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

58 {
60 return true;
61 }
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
void MoveTargetedHome(bool walk=false)
The unit will return this initial position (owner for pets and summoned creatures)....
Definition: MotionMaster.cpp:259

References _owner, Unit::GetMotionMaster(), and MotionMaster::MoveTargetedHome().

Member Data Documentation

◆ _owner

Creature& NpcRunToHome::_owner
private

Referenced by Execute().