aboutsummaryrefslogtreecommitdiff
path: root/src/game/PointMovementGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/PointMovementGenerator.h')
-rw-r--r--src/game/PointMovementGenerator.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/game/PointMovementGenerator.h b/src/game/PointMovementGenerator.h
index baeb8b26dbd..1c07d580600 100644
--- a/src/game/PointMovementGenerator.h
+++ b/src/game/PointMovementGenerator.h
@@ -17,15 +17,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
#ifndef TRINITY_POINTMOVEMENTGENERATOR_H
#define TRINITY_POINTMOVEMENTGENERATOR_H
-
#include "MovementGenerator.h"
#include "DestinationHolder.h"
#include "Traveller.h"
#include "FollowerReference.h"
-
template<class T>
class TRINITY_DLL_SPEC PointMovementGenerator
: public MovementGeneratorMedium< T, PointMovementGenerator<T> >
@@ -33,16 +30,12 @@ class TRINITY_DLL_SPEC PointMovementGenerator
public:
PointMovementGenerator(uint32 _id, float _x, float _y, float _z) : id(_id),
i_x(_x), i_y(_y), i_z(_z), i_nextMoveTime(0), arrived(false) {}
-
void Initialize(T &);
void Finalize(T &unit);
void Reset(T &unit){unit.StopMoving();}
bool Update(T &, const uint32 &diff);
-
void MovementInform(T &);
-
MovementGeneratorType GetMovementGeneratorType() { return POINT_MOTION_TYPE; }
-
bool GetDestination(float& x, float& y, float& z) const { x=i_x; y=i_y; z=i_z; return true; }
private:
uint32 id;
@@ -51,17 +44,14 @@ class TRINITY_DLL_SPEC PointMovementGenerator
DestinationHolder< Traveller<T> > i_destinationHolder;
bool arrived;
};
-
class MANGOS_DLL_SPEC AssistanceMovementGenerator
: public PointMovementGenerator<Creature>
{
public:
AssistanceMovementGenerator(float _x, float _y, float _z) :
PointMovementGenerator<Creature>(0, _x, _y, _z) {}
-
MovementGeneratorType GetMovementGeneratorType() { return ASSISTANCE_MOTION_TYPE; }
void Finalize(Unit &);
};
-
#endif