Maze Solver_RWA2_GROUP21
This project is used to solve the maze using wall follower algorithm
|
Go to the documentation of this file. 1 #ifndef __SIMULATOR_H__
2 #define __SIMULATOR_H__
78 static void setWall(
int x,
int y,
char direction);
87 static void clearWall(
int x,
int y,
char direction);
98 static void setColor(
int x,
int y,
char color);
118 static void setText(
int x,
int y,
const std::string& text);
static void setText(int x, int y, const std::string &text)
Set the text in a cell at the given coordinates.
Definition: simulator.cpp:88
static void clearWall(int x, int y, char direction)
Remove a wall at the given coordinates.
Definition: simulator.cpp:72
static void turnLeft()
Turn the robot left.
Definition: simulator.cpp:62
static void setWall(int x, int y, char direction)
Set a wall at the given coordinates.
Definition: simulator.cpp:68
static void ackReset()
Moves the robot back to the starting position.
Definition: simulator.cpp:107
static bool wasReset()
Check wether or not the reset button has been pressed.
Definition: simulator.cpp:100
static bool wallFront()
Check if there is a wall in front of the robot.
Definition: simulator.cpp:19
static void moveForward(int distance=1)
Move the robot forward.
Definition: simulator.cpp:40
static void clearColor(int x, int y)
Clear the color of the cell at the given coordinates.
Definition: simulator.cpp:80
Definition: simulator.h:19
static int mazeHeight()
Compute the height of the maze.
Definition: simulator.cpp:12
static void clearAllColor()
Clear the color of all cells in the maze.
Definition: simulator.cpp:84
static void turnRight()
Turn the robot right.
Definition: simulator.cpp:56
static void clearAllText()
Clear the text in all cells of the maze.
Definition: simulator.cpp:96
Functions to control the robot and get information on the maze.
static int mazeWidth()
Compute the width of the maze.
Definition: simulator.cpp:5
static bool wallRight()
Check if there is a wall to the right of the robot.
Definition: simulator.cpp:26
static bool wallLeft()
Check if there is a wall to the left of the robot.
Definition: simulator.cpp:33
static void clearText(int x, int y)
Clear the text in a cell at the given coordinates.
Definition: simulator.cpp:92
static void setColor(int x, int y, char color)
Set the color of the cell at the given coordinates.
Definition: simulator.cpp:76