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

Public Member Functions

 OrcMoveEvent (Creature *me)
 
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_me
 

Detailed Description

Constructor & Destructor Documentation

◆ OrcMoveEvent()

OrcMoveEvent::OrcMoveEvent ( Creature me)
inline
61: _me(me) {}
Creature * _me
Definition: boss_the_beast.cpp:72

Member Function Documentation

◆ Execute()

bool OrcMoveEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

64 {
67 _me->GetMotionMaster()->MovePoint(1, movePos);
68 return true;
69 }
@ REACT_PASSIVE
Definition: Unit.h:548
Position const OrcsRunawayPosition
Definition: boss_the_beast.cpp:56
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:97
void GetRandomPoint(const Position &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
Definition: Object.cpp:1502
Definition: Position.h:28
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211

References _me, Unit::GetMotionMaster(), WorldObject::GetRandomPoint(), MotionMaster::MovePoint(), OrcsRunawayPosition, REACT_PASSIVE, and Creature::SetReactState().

Member Data Documentation

◆ _me

Creature* OrcMoveEvent::_me
private

Referenced by Execute().