TrinityCore
Loading...
Searching...
No Matches
RotateMovementGenerator Class Reference

#include <IdleMovementGenerator.h>

+ Inheritance diagram for RotateMovementGenerator:

Public Member Functions

 RotateMovementGenerator (uint32 id, uint32 time, RotateDirection direction)
 
bool Initialize (Unit *) override
 
bool Reset (Unit *) override
 
bool Update (Unit *, uint32) override
 
void Deactivate (Unit *) override
 
void Finalize (Unit *, bool, bool) override
 
MovementGeneratorType GetMovementGeneratorType () const override
 
- Public Member Functions inherited from MovementGenerator
 MovementGenerator ()
 
virtual ~MovementGenerator ()
 
virtual void UnitSpeedChanged ()
 
virtual void Pause (uint32)
 
virtual void Resume (uint32)
 
virtual bool GetResetPosition (Unit *, float &, float &, float &)
 
void AddFlag (uint16 const flag)
 
bool HasFlag (uint16 const flag) const
 
void RemoveFlag (uint16 const flag)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

uint32 _id
 
uint32 _duration
 
uint32 _maxDuration
 
RotateDirection _direction
 

Additional Inherited Members

- Public Attributes inherited from MovementGenerator
uint8 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 

Detailed Description

Definition at line 39 of file IdleMovementGenerator.h.

Constructor & Destructor Documentation

◆ RotateMovementGenerator()

RotateMovementGenerator::RotateMovementGenerator ( uint32  id,
uint32  time,
RotateDirection  direction 
)
explicit

Definition at line 66 of file IdleMovementGenerator.cpp.

Member Function Documentation

◆ Deactivate()

void RotateMovementGenerator::Deactivate ( Unit )
overridevirtual

Implements MovementGenerator.

Definition at line 122 of file IdleMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ Finalize()

void RotateMovementGenerator::Finalize ( Unit owner,
bool  ,
bool  movementInform 
)
overridevirtual

Implements MovementGenerator.

Definition at line 127 of file IdleMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

MovementGeneratorType RotateMovementGenerator::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Definition at line 135 of file IdleMovementGenerator.cpp.

◆ Initialize()

bool RotateMovementGenerator::Initialize ( Unit )
overridevirtual

Implements MovementGenerator.

Definition at line 73 of file IdleMovementGenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset()

bool RotateMovementGenerator::Reset ( Unit owner)
overridevirtual

Implements MovementGenerator.

Definition at line 89 of file IdleMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ Update()

bool RotateMovementGenerator::Update ( Unit owner,
uint32  diff 
)
overridevirtual

Implements MovementGenerator.

Definition at line 96 of file IdleMovementGenerator.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _direction

RotateDirection RotateMovementGenerator::_direction
private

Definition at line 53 of file IdleMovementGenerator.h.

◆ _duration

uint32 RotateMovementGenerator::_duration
private

Definition at line 52 of file IdleMovementGenerator.h.

◆ _id

uint32 RotateMovementGenerator::_id
private

Definition at line 52 of file IdleMovementGenerator.h.

◆ _maxDuration

uint32 RotateMovementGenerator::_maxDuration
private

Definition at line 52 of file IdleMovementGenerator.h.


The documentation for this class was generated from the following files: