TrinityCore
ConfusedMovementGenerator< T > Class Template Reference

#include <ConfusedMovementGenerator.h>

+ Inheritance diagram for ConfusedMovementGenerator< T >:

Public Member Functions

 ConfusedMovementGenerator ()
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void DoInitialize (T *)
 
void DoReset (T *)
 
bool DoUpdate (T *, uint32)
 
void DoDeactivate (T *)
 
void DoFinalize (T *, bool, bool)
 
void UnitSpeedChanged () override
 
void DoFinalize (Player *owner, bool active, bool)
 
void DoFinalize (Creature *owner, bool active, bool)
 
- Public Member Functions inherited from MovementGeneratorMedium< T, ConfusedMovementGenerator< T > >
void Initialize (Unit *owner) override
 
void Reset (Unit *owner) override
 
bool Update (Unit *owner, uint32 diff) override
 
void Deactivate (Unit *owner) override
 
void Finalize (Unit *owner, bool active, bool movementInform) override
 
- Public Member Functions inherited from MovementGenerator
 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
 

Private Attributes

std::unique_ptr< PathGenerator_path
 
TimeTracker _timer
 
Position _reference
 

Additional Inherited Members

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

Detailed Description

template<class T>
class ConfusedMovementGenerator< T >

Definition at line 28 of file ConfusedMovementGenerator.h.

Constructor & Destructor Documentation

◆ ConfusedMovementGenerator()

template<class T >
template ConfusedMovementGenerator< T >::ConfusedMovementGenerator ( )
explicit

Definition at line 28 of file ConfusedMovementGenerator.cpp.

Member Function Documentation

◆ DoDeactivate()

template<class T >
template void ConfusedMovementGenerator< T >::DoDeactivate ( T *  )

Definition at line 131 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize() [1/3]

void ConfusedMovementGenerator< Creature >::DoFinalize ( Creature owner,
bool  active,
bool   
)

Definition at line 153 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize() [2/3]

void ConfusedMovementGenerator< Player >::DoFinalize ( Player owner,
bool  active,
bool   
)

Definition at line 141 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize() [3/3]

template<class T >
void ConfusedMovementGenerator< T >::DoFinalize ( T *  ,
bool  ,
bool   
)

Definition at line 138 of file ConfusedMovementGenerator.cpp.

◆ DoInitialize()

template<class T >
template void ConfusedMovementGenerator< T >::DoInitialize ( T *  )

Definition at line 43 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoReset()

template<class T >
template void ConfusedMovementGenerator< T >::DoReset ( T *  )

Definition at line 61 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoUpdate()

template<class T >
template bool ConfusedMovementGenerator< T >::DoUpdate ( T *  ,
uint32   
)

Definition at line 69 of file ConfusedMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

template<class T >
template MovementGeneratorType ConfusedMovementGenerator< T >::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Definition at line 37 of file ConfusedMovementGenerator.cpp.

◆ UnitSpeedChanged()

template<class T >
void ConfusedMovementGenerator< T >::UnitSpeedChanged ( )
inlineoverridevirtual

Reimplemented from MovementGenerator.

Definition at line 41 of file ConfusedMovementGenerator.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _path

template<class T >
std::unique_ptr<PathGenerator> ConfusedMovementGenerator< T >::_path
private

Definition at line 44 of file ConfusedMovementGenerator.h.

◆ _reference

template<class T >
Position ConfusedMovementGenerator< T >::_reference
private

Definition at line 46 of file ConfusedMovementGenerator.h.

◆ _timer

template<class T >
TimeTracker ConfusedMovementGenerator< T >::_timer
private

Definition at line 45 of file ConfusedMovementGenerator.h.


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