Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef GREAT_H_
#define GREAT_H_
#include "FinderInterface.hpp"
#include "MoverInterface.hpp"
#include "Maze.hpp"
#include "IOInterface.hpp"
class RealMouse: public FinderInterface, public MoverInterface
{
public:
// Constructor
RealMouse();
/* Overriding FinderInterface methods */
Wall examineWall(int row, int col, Direction wallDir, PositionController &mousePos) override;
Wall examineWall(Position pos, Direction wallDir, PositionController &mousePos)
{
return examineWall(pos.row, pos.col, wallDir, mousePos);
}
/**
* @brief Do some preparations before get started.
*/
void getReady();
/* Overriding MoverInterface methods */
void moveTo(int row, int col, Direction destDir, bool stoppingWallExists, PositionController &mousePos) override;
void moveTo(Position pos, Direction destDir, bool stoppingWallExists, PositionController &mousePos)
{
return moveTo(pos.row, pos.col, destDir, stoppingWallExists, mousePos);
}
void rotateTo(Direction destDir, PositionController &mousePos) override;
};
#endif
ab2149ec8This file is pinned to the selected release. Download the original to open it in your design tool.