Index: src/game/PointMovementGenerator.cpp =================================================================== --- src/game/PointMovementGenerator.cpp (revision 5627) +++ src/game/PointMovementGenerator.cpp (working copy) @@ -32,11 +32,6 @@ i_destinationHolder.SetDestination(traveller,x,y,z); } -void PointMovementGenerator::MovementInform(Creature &unit) -{ - unit.AI()->MovementInform(POINT_MOTION_TYPE, id); -} - template bool PointMovementGenerator::Update(T &unit, const uint32 &diff) { @@ -58,4 +53,38 @@ } return true; -} \ No newline at end of file +} + +template +void PointMovementGenerator::Reset(T &unit) +{ + unit.StopMoving(); +} + +template +void PointMovementGenerator::Finalize(T &unit) +{ +} + +template +void PointMovementGenerator::MovementInform(T &unit) +{ +} + +/*template <> +void PointMovementGenerator::MovementInform(Creature &unit) +{ + unit.AI()->MovementInform(POINT_MOTION_TYPE, id); +}*/ + +template void PointMovementGenerator::Initialize(Creature&); +template void PointMovementGenerator::Finalize(Creature&); +template bool PointMovementGenerator::Update(Creature&, const uint32 &diff); +template void PointMovementGenerator::Reset(Creature&); +template void PointMovementGenerator::MovementInform(Creature&); + +template void PointMovementGenerator::Initialize(Player&); +template void PointMovementGenerator::Finalize(Player&); +template bool PointMovementGenerator::Update(Player&, const uint32 &diff); +template void PointMovementGenerator::Reset(Player&); +template void PointMovementGenerator::MovementInform(Player&); Index: src/game/PointMovementGenerator.h =================================================================== --- src/game/PointMovementGenerator.h (revision 5627) +++ src/game/PointMovementGenerator.h (working copy) @@ -33,8 +33,8 @@ x(_x), y(_y), z(_z), i_nextMoveTime(0) {} void Initialize(T &); - void Finalize(T &) {} - void Reset(T &unit) { unit.StopMoving(); } + void Finalize(T &); + void Reset(T &unit); bool Update(T &, const uint32 &diff); void MovementInform(T &); @@ -47,9 +47,4 @@ uint32 id; DestinationHolder< Traveller > i_destinationHolder; }; - -//template<> -void MANGOS_DLL_SPEC PointMovementGenerator::Initialize(Creature &unit); -//template<> -bool MANGOS_DLL_SPEC PointMovementGenerator::Update(Creature &unit, const uint32 &diff); #endif