TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MotionMaster.h File Reference
#include "Common.h"
#include <vector>
#include "SharedDefines.h"
#include "Object.h"
+ Include dependency graph for MotionMaster.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MotionMaster
 

Macros

#define VISUAL_WAYPOINT   1
 
#define SPEED_CHARGE   42.0f
 

Enumerations

enum  MovementGeneratorType {
  IDLE_MOTION_TYPE = 0, RANDOM_MOTION_TYPE = 1, WAYPOINT_MOTION_TYPE = 2, MAX_DB_MOTION_TYPE = 3,
  ANIMAL_RANDOM_MOTION_TYPE = MAX_DB_MOTION_TYPE, CONFUSED_MOTION_TYPE = 4, CHASE_MOTION_TYPE = 5, HOME_MOTION_TYPE = 6,
  FLIGHT_MOTION_TYPE = 7, POINT_MOTION_TYPE = 8, FLEEING_MOTION_TYPE = 9, DISTRACT_MOTION_TYPE = 10,
  ASSISTANCE_MOTION_TYPE = 11, ASSISTANCE_DISTRACT_MOTION_TYPE = 12, TIMED_FLEEING_MOTION_TYPE = 13, FOLLOW_MOTION_TYPE = 14,
  ROTATE_MOTION_TYPE = 15, EFFECT_MOTION_TYPE = 16, NULL_MOTION_TYPE = 17
}
 
enum  MovementSlot { MOTION_SLOT_IDLE, MOTION_SLOT_ACTIVE, MOTION_SLOT_CONTROLLED, MAX_MOTION_SLOT }
 
enum  MMCleanFlag { MMCF_NONE = 0, MMCF_UPDATE = 1, MMCF_RESET = 2 }
 
enum  RotateDirection { ROTATE_DIRECTION_LEFT, ROTATE_DIRECTION_RIGHT }
 

Macro Definition Documentation

#define SPEED_CHARGE   42.0f
#define VISUAL_WAYPOINT   1

Enumeration Type Documentation

Enumerator
MMCF_NONE 
MMCF_UPDATE 
MMCF_RESET 
67 {
68  MMCF_NONE = 0,
69  MMCF_UPDATE = 1, // Clear or Expire called from update
70  MMCF_RESET = 2 // Flag if need top()->Reset()
71 };
Definition: MotionMaster.h:68
Definition: MotionMaster.h:69
Definition: MotionMaster.h:70
Enumerator
IDLE_MOTION_TYPE 
RANDOM_MOTION_TYPE 
WAYPOINT_MOTION_TYPE 
MAX_DB_MOTION_TYPE 
ANIMAL_RANDOM_MOTION_TYPE 
CONFUSED_MOTION_TYPE 
CHASE_MOTION_TYPE 
HOME_MOTION_TYPE 
FLIGHT_MOTION_TYPE 
POINT_MOTION_TYPE 
FLEEING_MOTION_TYPE 
DISTRACT_MOTION_TYPE 
ASSISTANCE_MOTION_TYPE 
ASSISTANCE_DISTRACT_MOTION_TYPE 
TIMED_FLEEING_MOTION_TYPE 
FOLLOW_MOTION_TYPE 
ROTATE_MOTION_TYPE 
EFFECT_MOTION_TYPE 
NULL_MOTION_TYPE 
36 {
37  IDLE_MOTION_TYPE = 0, // IdleMovementGenerator.h
38  RANDOM_MOTION_TYPE = 1, // RandomMovementGenerator.h
39  WAYPOINT_MOTION_TYPE = 2, // WaypointMovementGenerator.h
40  MAX_DB_MOTION_TYPE = 3, // *** this and below motion types can't be set in DB.
41  ANIMAL_RANDOM_MOTION_TYPE = MAX_DB_MOTION_TYPE, // AnimalRandomMovementGenerator.h
42  CONFUSED_MOTION_TYPE = 4, // ConfusedMovementGenerator.h
43  CHASE_MOTION_TYPE = 5, // TargetedMovementGenerator.h
44  HOME_MOTION_TYPE = 6, // HomeMovementGenerator.h
45  FLIGHT_MOTION_TYPE = 7, // WaypointMovementGenerator.h
46  POINT_MOTION_TYPE = 8, // PointMovementGenerator.h
47  FLEEING_MOTION_TYPE = 9, // FleeingMovementGenerator.h
48  DISTRACT_MOTION_TYPE = 10, // IdleMovementGenerator.h
49  ASSISTANCE_MOTION_TYPE= 11, // PointMovementGenerator.h (first part of flee for assistance)
50  ASSISTANCE_DISTRACT_MOTION_TYPE = 12, // IdleMovementGenerator.h (second part of flee for assistance)
51  TIMED_FLEEING_MOTION_TYPE = 13, // FleeingMovementGenerator.h (alt.second part of flee for assistance)
52  FOLLOW_MOTION_TYPE = 14,
53  ROTATE_MOTION_TYPE = 15,
54  EFFECT_MOTION_TYPE = 16,
55  NULL_MOTION_TYPE = 17
56 };
Definition: MotionMaster.h:37
Definition: MotionMaster.h:53
Definition: MotionMaster.h:49
Definition: MotionMaster.h:44
Definition: MotionMaster.h:45
Definition: MotionMaster.h:38
Definition: MotionMaster.h:40
Definition: MotionMaster.h:47
Definition: MotionMaster.h:48
Definition: MotionMaster.h:51
Definition: MotionMaster.h:54
Definition: MotionMaster.h:55
Definition: MotionMaster.h:50
Definition: MotionMaster.h:41
Definition: MotionMaster.h:42
Definition: MotionMaster.h:43
Definition: MotionMaster.h:39
Definition: MotionMaster.h:46
Definition: MotionMaster.h:52
Enumerator
MOTION_SLOT_IDLE 
MOTION_SLOT_ACTIVE 
MOTION_SLOT_CONTROLLED 
MAX_MOTION_SLOT 
59 {
64 };
Definition: MotionMaster.h:62
Definition: MotionMaster.h:60
Definition: MotionMaster.h:61
Definition: MotionMaster.h:63
Enumerator
ROTATE_DIRECTION_LEFT 
ROTATE_DIRECTION_RIGHT 
74 {
77 };
Definition: MotionMaster.h:76
Definition: MotionMaster.h:75