diff options
author | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
commit | 26b5e033ffde3d161382fc9addbfa99738379641 (patch) | |
tree | a344f369ca32945f787a02dee35c3dbe342bed7e /src/game/PointMovementGenerator.h | |
parent | f21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff) |
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
Diffstat (limited to 'src/game/PointMovementGenerator.h')
-rw-r--r-- | src/game/PointMovementGenerator.h | 10 |
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 |