TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MovementGeneratorMedium< T, D > Class Template Reference

#include <MovementGenerator.h>

Public Member Functions

void Initialize (Unit *u) override
 
void Finalize (Unit *u) override
 
void Reset (Unit *u) override
 
bool Update (Unit *u, uint32 time_diff) override
 
- Public Member Functions inherited from MovementGenerator
virtual ~MovementGenerator ()
 
virtual MovementGeneratorType GetMovementGeneratorType () const =0
 
virtual void unitSpeedChanged ()
 
virtual bool GetResetPosition (Unit *, float &, float &, float &)
 

Member Function Documentation

template<class T, class D>
void MovementGeneratorMedium< T, D >::Finalize ( Unit u)
inlineoverridevirtual

Implements MovementGenerator.

61  {
62  //u->AssertIsType<T>();
63  (static_cast<D*>(this))->DoFinalize(static_cast<T*>(u));
64  }
template<class T, class D>
void MovementGeneratorMedium< T, D >::Initialize ( Unit u)
inlineoverridevirtual

Implements MovementGenerator.

55  {
56  //u->AssertIsType<T>();
57  (static_cast<D*>(this))->DoInitialize(static_cast<T*>(u));
58  }

+ Here is the caller graph for this function:

template<class T, class D>
void MovementGeneratorMedium< T, D >::Reset ( Unit u)
inlineoverridevirtual

Implements MovementGenerator.

67  {
68  //u->AssertIsType<T>();
69  (static_cast<D*>(this))->DoReset(static_cast<T*>(u));
70  }

+ Here is the caller graph for this function:

template<class T, class D>
bool MovementGeneratorMedium< T, D >::Update ( Unit u,
uint32  time_diff 
)
inlineoverridevirtual

Implements MovementGenerator.

73  {
74  //u->AssertIsType<T>();
75  return (static_cast<D*>(this))->DoUpdate(static_cast<T*>(u), time_diff);
76  }

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