TrinityCore
MotionMaster.h File Reference
#include "Common.h"
#include "Duration.h"
#include "ObjectGuid.h"
#include "Optional.h"
#include "MovementDefines.h"
#include "MovementGenerator.h"
#include "SharedDefines.h"
#include <deque>
#include <functional>
#include <set>
#include <unordered_map>
#include <vector>
+ Include dependency graph for MotionMaster.h:

Go to the source code of this file.

Classes

struct  MovementGeneratorDeleter
 
struct  MovementGeneratorComparator
 
struct  MovementGeneratorInformation
 
class  MotionMaster
 
class  MotionMaster::DelayedAction
 

Namespaces

namespace  Movement
 

Enumerations

enum  MotionMasterFlags : uint8 {
  MOTIONMASTER_FLAG_NONE = 0x0 , MOTIONMASTER_FLAG_UPDATE = 0x1 , MOTIONMASTER_FLAG_STATIC_INITIALIZATION_PENDING = 0x2 , MOTIONMASTER_FLAG_INITIALIZATION_PENDING = 0x4 ,
  MOTIONMASTER_FLAG_INITIALIZING = 0x8 , MOTIONMASTER_FLAG_DELAYED = MOTIONMASTER_FLAG_UPDATE | MOTIONMASTER_FLAG_INITIALIZATION_PENDING
}
 
enum  MotionMasterDelayedActionType : uint8 {
  MOTIONMASTER_DELAYED_CLEAR = 0 , MOTIONMASTER_DELAYED_CLEAR_SLOT , MOTIONMASTER_DELAYED_CLEAR_MODE , MOTIONMASTER_DELAYED_CLEAR_PRIORITY ,
  MOTIONMASTER_DELAYED_ADD , MOTIONMASTER_DELAYED_REMOVE , MOTIONMASTER_DELAYED_REMOVE_TYPE , MOTIONMASTER_DELAYED_INITIALIZE
}
 

Functions

static bool EmptyValidator ()
 

Enumeration Type Documentation

◆ MotionMasterDelayedActionType

Enumerator
MOTIONMASTER_DELAYED_CLEAR 
MOTIONMASTER_DELAYED_CLEAR_SLOT 
MOTIONMASTER_DELAYED_CLEAR_MODE 
MOTIONMASTER_DELAYED_CLEAR_PRIORITY 
MOTIONMASTER_DELAYED_ADD 
MOTIONMASTER_DELAYED_REMOVE 
MOTIONMASTER_DELAYED_REMOVE_TYPE 
MOTIONMASTER_DELAYED_INITIALIZE 

Definition at line 59 of file MotionMaster.h.

60{
69};
@ MOTIONMASTER_DELAYED_ADD
Definition: MotionMaster.h:65
@ MOTIONMASTER_DELAYED_REMOVE
Definition: MotionMaster.h:66
@ MOTIONMASTER_DELAYED_REMOVE_TYPE
Definition: MotionMaster.h:67
@ MOTIONMASTER_DELAYED_INITIALIZE
Definition: MotionMaster.h:68
@ MOTIONMASTER_DELAYED_CLEAR_PRIORITY
Definition: MotionMaster.h:64
@ MOTIONMASTER_DELAYED_CLEAR
Definition: MotionMaster.h:61
@ MOTIONMASTER_DELAYED_CLEAR_SLOT
Definition: MotionMaster.h:62
@ MOTIONMASTER_DELAYED_CLEAR_MODE
Definition: MotionMaster.h:63

◆ MotionMasterFlags

Enumerator
MOTIONMASTER_FLAG_NONE 
MOTIONMASTER_FLAG_UPDATE 
MOTIONMASTER_FLAG_STATIC_INITIALIZATION_PENDING 
MOTIONMASTER_FLAG_INITIALIZATION_PENDING 
MOTIONMASTER_FLAG_INITIALIZING 
MOTIONMASTER_FLAG_DELAYED 

Definition at line 48 of file MotionMaster.h.

49{
51 MOTIONMASTER_FLAG_UPDATE = 0x1, // Update in progress
52 MOTIONMASTER_FLAG_STATIC_INITIALIZATION_PENDING = 0x2, // Static movement (MOTION_SLOT_DEFAULT) hasn't been initialized
53 MOTIONMASTER_FLAG_INITIALIZATION_PENDING = 0x4, // MotionMaster is stalled until signaled
54 MOTIONMASTER_FLAG_INITIALIZING = 0x8, // MotionMaster is initializing
55
57};
@ MOTIONMASTER_FLAG_DELAYED
Definition: MotionMaster.h:56
@ MOTIONMASTER_FLAG_NONE
Definition: MotionMaster.h:50
@ MOTIONMASTER_FLAG_INITIALIZING
Definition: MotionMaster.h:54
@ MOTIONMASTER_FLAG_UPDATE
Definition: MotionMaster.h:51
@ MOTIONMASTER_FLAG_INITIALIZATION_PENDING
Definition: MotionMaster.h:53
@ MOTIONMASTER_FLAG_STATIC_INITIALIZATION_PENDING
Definition: MotionMaster.h:52

Function Documentation

◆ EmptyValidator()

static bool EmptyValidator ( )
static

Definition at line 91 of file MotionMaster.h.

92{
93 return true;
94}