Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1fc1053c2This file is pinned to the selected release. Download the original to open it in your design tool.
/*
* MovingInterface.hpp
*
* Created on: Mar 5, 2017
* Author: vagrant
*/
#ifndef MOVERINTERFACE_HPP_
#define MOVERINTERFACE_HPP_
#include "Direction.hpp"
#include "PositionController.hpp"
class MoverInterface
{
protected:
public:
virtual void moveTo(int row, int col, Direction destDir, PositionController &mousePos) = 0;
void moveTo(Position pos, Direction destDir, PositionController &mousePos)
{
return moveTo(pos.row, pos.col, destDir, mousePos);
}
virtual void rotateTo(Direction destDir, PositionController &mousePos) = 0;
};
#endif /* MOVERINTERFACE_HPP_ */