Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: fed38d310e
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.715 kB
#ifndef MOVETOANIMATOR2D_H
#define MOVETOANIMATOR2D_H
#include "animator2d.h"
#include <irrlicht/vector2d.h>
class MoveToAnimator2D: public Animator2D
{
public:
explicit MoveToAnimator2D(Animator2D::AnimationType type,
irr::core::vector2d<irr::s32> startPosition,
irr::core::vector2d<irr::s32> moveToPosition,
irr::s32 animationSpeed);
~MoveToAnimator2D();
virtual void runAnimation(GraphicBlock* graphicBlock);
virtual bool animationFinished();
private:
bool mFinished;
irr::core::vector2d<irr::s32> mSpeedVector;
irr::core::vector2d<irr::s32> mEndPostion;
};
#endif // MOVETOANIMATOR2D_H
Jump to Line
Something went wrong with that request. Please try again.