TrinityCore
Loading...
Searching...
No Matches
MovementGenerator Class Referenceabstract

#include <MovementGenerator.h>

+ Inheritance diagram for MovementGenerator:

Public Member Functions

 MovementGenerator ()
 
virtual ~MovementGenerator ()
 
virtual bool Initialize (Unit *)=0
 
virtual bool Reset (Unit *)=0
 
virtual bool Update (Unit *, uint32 diff)=0
 
virtual void Deactivate (Unit *)=0
 
virtual void Finalize (Unit *, bool, bool)=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 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 

Detailed Description

Definition at line 48 of file MovementGenerator.h.

Constructor & Destructor Documentation

◆ MovementGenerator()

MovementGenerator::MovementGenerator ( )
inline

Definition at line 51 of file MovementGenerator.h.

◆ ~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 74 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 call graph for this function:
+ 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 75 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Initialize()

◆ Pause()

virtual void MovementGenerator::Pause ( uint32  )
inlinevirtual

◆ RemoveFlag()

void MovementGenerator::RemoveFlag ( uint16 const  flag)
inline

Definition at line 76 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< T >, FleeingMovementGenerator< Creature >, FollowMovementGenerator, PointMovementGenerator< T >, PointMovementGenerator< Creature >, RandomMovementGenerator< T >, and WaypointMovementGenerator< Creature >.

Definition at line 66 of file MovementGenerator.h.

+ Here is the caller graph for this function:

◆ Update()

Member Data Documentation

◆ BaseUnitState

uint32 MovementGenerator::BaseUnitState

Definition at line 82 of file MovementGenerator.h.

◆ Flags

uint16 MovementGenerator::Flags

Definition at line 81 of file MovementGenerator.h.

◆ Priority

uint8 MovementGenerator::Priority

Definition at line 80 of file MovementGenerator.h.


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