TrinityCore
MovementGenerator Class Referenceabstract

#include <MovementGenerator.h>

+ Inheritance diagram for MovementGenerator:

Public Member Functions

 MovementGenerator ()
 
 MovementGenerator (MovementGenerator const &)=delete
 
 MovementGenerator (MovementGenerator &&)=delete
 
MovementGeneratoroperator= (MovementGenerator const &)=delete
 
MovementGeneratoroperator= (MovementGenerator &&)=delete
 
virtual ~MovementGenerator ()
 
virtual void Initialize (Unit *owner)=0
 
virtual void Reset (Unit *owner)=0
 
virtual bool Update (Unit *owner, uint32 diff)=0
 
virtual void Deactivate (Unit *owner)=0
 
virtual void Finalize (Unit *owner, bool active, bool movementInform)=0
 
virtual MovementGeneratorType GetMovementGeneratorType () const =0
 
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
 

Public Attributes

uint8 Mode
 
uint8 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 

Detailed Description

Definition at line 48 of file MovementGenerator.h.

Constructor & Destructor Documentation

◆ MovementGenerator() [1/3]

MovementGenerator::MovementGenerator ( )
inlineexplicit

Definition at line 51 of file MovementGenerator.h.

◆ MovementGenerator() [2/3]

MovementGenerator::MovementGenerator ( MovementGenerator const &  )
delete

◆ MovementGenerator() [3/3]

MovementGenerator::MovementGenerator ( MovementGenerator &&  )
delete

◆ ~MovementGenerator()

MovementGenerator::~MovementGenerator ( )
virtual

Definition at line 28 of file MovementGenerator.cpp.

Member Function Documentation

◆ AddFlag()

void MovementGenerator::AddFlag ( uint16 const  flag)
inline

Definition at line 78 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Deactivate()

◆ Finalize()

◆ GetDebugInfo()

std::string MovementGenerator::GetDebugInfo ( ) const
virtual

Reimplemented in FlightPathMovementGenerator, and WaypointMovementGenerator< Creature >.

Definition at line 30 of file MovementGenerator.cpp.

+ Here is the caller graph for this function:

◆ GetMovementGeneratorType()

◆ GetResetPosition()

virtual bool MovementGenerator::GetResetPosition ( Unit ,
float &  ,
float &  ,
float &   
)
inlinevirtual

◆ HasFlag()

bool MovementGenerator::HasFlag ( uint16 const  flag) const
inline

Definition at line 79 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Initialize()

◆ operator=() [1/2]

MovementGenerator & MovementGenerator::operator= ( MovementGenerator &&  )
delete

◆ operator=() [2/2]

MovementGenerator & MovementGenerator::operator= ( MovementGenerator const &  )
delete

◆ Pause()

virtual void MovementGenerator::Pause ( uint32  )
inlinevirtual

◆ RemoveFlag()

void MovementGenerator::RemoveFlag ( uint16 const  flag)
inline

Definition at line 80 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Reset()

◆ Resume()

virtual void MovementGenerator::Resume ( uint32  )
inlinevirtual

◆ UnitSpeedChanged()

virtual void MovementGenerator::UnitSpeedChanged ( )
inlinevirtual

Reimplemented in ChaseMovementGenerator, ConfusedMovementGenerator< T >, FleeingMovementGenerator, FollowMovementGenerator, PointMovementGenerator, RandomMovementGenerator< T >, and WaypointMovementGenerator< Creature >.

Definition at line 70 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Update()

Member Data Documentation

◆ BaseUnitState

uint32 MovementGenerator::BaseUnitState

Definition at line 87 of file MovementGenerator.h.

◆ Flags

uint16 MovementGenerator::Flags

Definition at line 86 of file MovementGenerator.h.

◆ Mode

uint8 MovementGenerator::Mode

Definition at line 84 of file MovementGenerator.h.

◆ Priority

uint8 MovementGenerator::Priority

Definition at line 85 of file MovementGenerator.h.


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