diff options
| author | megamage <none@none> | 2009-08-29 17:14:47 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-29 17:14:47 -0500 |
| commit | 69c487abe51ac655b1f9cd4bc7388fb01e30fb0e (patch) | |
| tree | 41714f3abf1ecbd78f2fdc8c5f1adce57e06b7c7 /src/game/MotionMaster.h | |
| parent | 13eda038fd1c31565672191da20bac9cd392e60e (diff) | |
*Handle creature rotation using movement generator. Please tell me if this breaks any script.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MotionMaster.h')
| -rw-r--r-- | src/game/MotionMaster.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/MotionMaster.h b/src/game/MotionMaster.h index d23b6351955..197f0d07499 100644 --- a/src/game/MotionMaster.h +++ b/src/game/MotionMaster.h @@ -48,7 +48,8 @@ enum MovementGeneratorType ASSISTANCE_MOTION_TYPE= 11, // PointMovementGenerator.h (first part of flee for assistance) ASSISTANCE_DISTRACT_MOTION_TYPE = 12, // IdleMovementGenerator.h (second part of flee for assistance) TIMED_FLEEING_MOTION_TYPE = 13, // FleeingMovementGenerator.h (alt.second part of flee for assistance) - NULL_MOTION_TYPE = 14, + ROTATE_MOTION_TYPE = 14, + NULL_MOTION_TYPE = 15, }; enum MovementSlot @@ -66,6 +67,12 @@ enum MMCleanFlag MMCF_RESET = 2 // Flag if need top()->Reset() }; +enum RotateDirection +{ + ROTATE_DIRECTION_LEFT, + ROTATE_DIRECTION_RIGHT, +}; + // assume it is 25 yard per 0.6 second #define SPEED_CHARGE 42.0f @@ -152,6 +159,7 @@ class TRINITY_DLL_SPEC MotionMaster //: private std::stack<MovementGenerator *> void MoveTaxiFlight(uint32 path, uint32 pathnode); void MoveDistract(uint32 time); void MovePath(uint32 path_id, bool repeatable); + void MoveRotate(uint32 time, RotateDirection direction); MovementGeneratorType GetCurrentMovementGeneratorType() const; MovementGeneratorType GetMotionSlotType(int slot) const; |
