OregonCore  revision be9e804-git
Your Favourite TBC server
MotionMaster.h File Reference
#include "Common.h"
#include <vector>
#include "SharedDefines.h"
#include "Object.h"

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, ROTATE_MOTION_TYPE = 14,
  FOLLOW_MOTION_TYPE = 15, EFFECT_MOTION_TYPE = 16, NULL_MOTION_TYPE = 17, TARGETED_MOTION_TYPE = (CHASE_MOTION_TYPE | FOLLOW_MOTION_TYPE)
}
 
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

Definition at line 80 of file MotionMaster.h.

Referenced by SpellMgr::LoadSpellCustomAttr(), and MotionMaster::MovePoint().

#define VISUAL_WAYPOINT   1

Enumeration Type Documentation

Enumerator
MMCF_NONE 
MMCF_UPDATE 
MMCF_RESET 

Definition at line 66 of file MotionMaster.h.

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 };
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 
ROTATE_MOTION_TYPE 
FOLLOW_MOTION_TYPE 
EFFECT_MOTION_TYPE 
NULL_MOTION_TYPE 
TARGETED_MOTION_TYPE 

Definition at line 33 of file MotionMaster.h.

34 {
35  IDLE_MOTION_TYPE = 0, // IdleMovementGenerator.h
36  RANDOM_MOTION_TYPE = 1, // RandomMovementGenerator.h
37  WAYPOINT_MOTION_TYPE = 2, // WaypointMovementGenerator.h
38  MAX_DB_MOTION_TYPE = 3, // *** this and below motion types can't be set in DB.
39  ANIMAL_RANDOM_MOTION_TYPE = MAX_DB_MOTION_TYPE, // AnimalRandomMovementGenerator.h
40 
41  CONFUSED_MOTION_TYPE = 4, // ConfusedMovementGenerator.h
42  CHASE_MOTION_TYPE = 5, // TargetedMovementGenerator.h
43  HOME_MOTION_TYPE = 6, // HomeMovementGenerator.h
44  FLIGHT_MOTION_TYPE = 7, // WaypointMovementGenerator.h
45  POINT_MOTION_TYPE = 8, // PointMovementGenerator.h
46  FLEEING_MOTION_TYPE = 9, // FleeingMovementGenerator.h
47  DISTRACT_MOTION_TYPE = 10, // IdleMovementGenerator.h
48  ASSISTANCE_MOTION_TYPE = 11, // PointMovementGenerator.h (first part of flee for assistance)
49  ASSISTANCE_DISTRACT_MOTION_TYPE = 12, // IdleMovementGenerator.h (second part of flee for assistance)
50  TIMED_FLEEING_MOTION_TYPE = 13, // FleeingMovementGenerator.h (alt.second part of flee for assistance)
51  ROTATE_MOTION_TYPE = 14,
52  FOLLOW_MOTION_TYPE = 15, // TargetedMovementGenerator.h
53  EFFECT_MOTION_TYPE = 16,
54  NULL_MOTION_TYPE = 17,
56 };
Enumerator
MOTION_SLOT_IDLE 
MOTION_SLOT_ACTIVE 
MOTION_SLOT_CONTROLLED 
MAX_MOTION_SLOT 

Definition at line 58 of file MotionMaster.h.

Enumerator
ROTATE_DIRECTION_LEFT 
ROTATE_DIRECTION_RIGHT 

Definition at line 73 of file MotionMaster.h.