All pastes #984099 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-13 22:43 UTC
rendered paste body
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<Creature>::MovementInform(Creature &unit)
-{
-    unit.AI()->MovementInform(POINT_MOTION_TYPE, id);
-}
-
 template<class T>
 bool PointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
 {
@@ -58,4 +53,38 @@
     }
 
     return true;
-}
\ No newline at end of file
+}
+
+template<class T>
+void PointMovementGenerator<T>::Reset(T &unit)
+{ 
+    unit.StopMoving(); 
+}
+
+template<class T>
+void PointMovementGenerator<T>::Finalize(T &unit)
+{
+}
+
+template <class T>
+void PointMovementGenerator<T>::MovementInform(T &unit)
+{
+}
+
+/*template <>
+void PointMovementGenerator<Creature>::MovementInform(Creature &unit)
+{
+    unit.AI()->MovementInform(POINT_MOTION_TYPE, id);
+}*/
+
+template void PointMovementGenerator<Creature>::Initialize(Creature&);
+template void PointMovementGenerator<Creature>::Finalize(Creature&);
+template bool PointMovementGenerator<Creature>::Update(Creature&, const uint32 &diff);
+template void PointMovementGenerator<Creature>::Reset(Creature&);
+template void PointMovementGenerator<Creature>::MovementInform(Creature&);
+
+template void PointMovementGenerator<Player>::Initialize(Player&);
+template void PointMovementGenerator<Player>::Finalize(Player&);
+template bool PointMovementGenerator<Player>::Update(Player&, const uint32 &diff);
+template void PointMovementGenerator<Player>::Reset(Player&);
+template void PointMovementGenerator<Player>::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<T> > i_destinationHolder;
 };
-
-//template<> 
-void MANGOS_DLL_SPEC PointMovementGenerator<Creature>::Initialize(Creature &unit);
-//template<> 
-bool MANGOS_DLL_SPEC PointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff);
 #endif