AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MotionMaster.cpp File Reference

Go to the source code of this file.

Functions

MovementGeneratorGetIdleMovementGenerator ()
 
bool isStatic (MovementGenerator *movement)
 

Function Documentation

◆ GetIdleMovementGenerator()

MovementGenerator * GetIdleMovementGenerator ( )
inline
37{
38 return sMovementGeneratorRegistry->GetRegistryItem(IDLE_MOTION_TYPE)->Create();
39}
@ IDLE_MOTION_TYPE
Definition: MotionMaster.h:39
#define sMovementGeneratorRegistry
Definition: MovementGenerator.h:105

References IDLE_MOTION_TYPE, and sMovementGeneratorRegistry.

Referenced by isStatic(), and MotionMaster::MoveIdle().

◆ isStatic()

bool isStatic ( MovementGenerator movement)
inline
69{
70 return (movement == GetIdleMovementGenerator());
71}
MovementGenerator * GetIdleMovementGenerator()
Definition: MotionMaster.cpp:36

References GetIdleMovementGenerator().

Referenced by BattlegroundAV::AddAVCreature(), MotionMaster::DelayedDelete(), MotionMaster::DirectDelete(), MotionMaster::MoveIdle(), and MotionMaster::~MotionMaster().