Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
ab2149ec8This 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, bool stoppingWallExists, PositionController &mousePos) = 0;
void moveTo(Position pos, Direction destDir, bool stoppingWallExists, PositionController &mousePos)
{
return moveTo(pos.row, pos.col, destDir, stoppingWallExists, mousePos);
}
virtual void rotateTo(Direction destDir, PositionController &mousePos) = 0;
};
#endif /* MOVERINTERFACE_HPP_ */