TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
IdleMovementGenerator Class Reference

#include <IdleMovementGenerator.h>

Public Member Functions

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

Member Function Documentation

void IdleMovementGenerator::Finalize ( Unit )
inlineoverridevirtual

Implements MovementGenerator.

29 { }
MovementGeneratorType IdleMovementGenerator::GetMovementGeneratorType ( ) const
inlineoverridevirtual

Implements MovementGenerator.

32 { return IDLE_MOTION_TYPE; }
Definition: MotionMaster.h:37
void IdleMovementGenerator::Initialize ( Unit owner)
overridevirtual

Implements MovementGenerator.

29 {
30  Reset(owner);
31 }
void Reset(Unit *) override
Definition: IdleMovementGenerator.cpp:33

+ Here is the call graph for this function:

void IdleMovementGenerator::Reset ( Unit owner)
overridevirtual

Implements MovementGenerator.

34 {
35  if (!owner->IsStopped())
36  owner->StopMoving();
37 }
bool IsStopped() const
Definition: Unit.h:2104
void StopMoving()
-------—End of Pet responses methods-------—
Definition: Unit.cpp:12743

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool IdleMovementGenerator::Update ( Unit ,
uint32   
)
inlineoverridevirtual

Implements MovementGenerator.

31 { return true; }

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