AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "IdleMovementGenerator.h"
Public Member Functions | |
RotateMovementGenerator (uint32 time, RotateDirection direction) | |
void | Initialize (Unit *) override |
void | Finalize (Unit *) override |
void | Reset (Unit *owner) override |
bool | Update (Unit *, uint32) override |
MovementGeneratorType | GetMovementGeneratorType () override |
Public Member Functions inherited from MovementGenerator | |
virtual | ~MovementGenerator () |
virtual void | Initialize (Unit *)=0 |
virtual void | Finalize (Unit *)=0 |
virtual void | Reset (Unit *)=0 |
virtual bool | Update (Unit *, uint32 time_diff)=0 |
virtual MovementGeneratorType | GetMovementGeneratorType ()=0 |
virtual uint32 | GetSplineId () const |
virtual void | unitSpeedChanged () |
virtual void | Pause (uint32) |
virtual void | Resume (uint32) |
virtual bool | GetResetPosition (float &, float &, float &) |
Private Attributes | |
uint32 | m_duration |
uint32 | m_maxDuration |
RotateDirection | m_direction |
|
inlineexplicit |
|
overridevirtual |
Implements MovementGenerator.
References Creature::AI(), Unit::ClearUnitState(), Object::IsCreature(), CreatureAI::MovementInform(), ROTATE_MOTION_TYPE, Object::ToCreature(), and UNIT_STATE_ROTATING.
|
inlineoverridevirtual |
|
overridevirtual |
Implements MovementGenerator.
References Unit::AddUnitState(), Unit::AttackStop(), Unit::GetVictim(), Unit::IsStopped(), Unit::SetInFront(), Unit::StopMoving(), and UNIT_STATE_ROTATING.
Referenced by Reset().
|
inlineoverridevirtual |
Implements MovementGenerator.
References Initialize().
Implements MovementGenerator.
References Position::GetOrientation(), m_direction, m_duration, m_maxDuration, ROTATE_DIRECTION_LEFT, and Unit::SetFacingTo().
|
private |
Referenced by Update().