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.
/*
* SimulMouse.hpp
*
* Created on: Mar 5, 2017
* Author: vagrant
*/
#ifndef SIMULMOUSE_HPP_
#define SIMULMOUSE_HPP_
#include "FinderInterface.hpp"
#include "MoverInterface.hpp"
#include "Maze.hpp"
#include "IOInterface.hpp"
#include <stdio.h>
class SimulMouse: public FinderInterface, public MoverInterface
{
private:
Maze maze;
public:
// Constructor
SimulMouse(char *mazeFile, IOInterface *fileIO, IOInterface *printIO);
SimulMouse(Maze::StringMaze *stringMaze, IOInterface *fileIO, IOInterface *printIO);
/* Overriding FinderInterface methods */
Wall examineWall(int row, int col, Direction wallDir, PositionController &mousePos) override;
/* Overriding MoverInterface methods */
void moveTo(int row, int col, Direction destDir, bool stoppingWallExists, PositionController &mousePos) override;
void rotateTo(Direction destDir, PositionController &mousePos) override;
};
#endif /* SIMULMOUSE_HPP_ */