-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTile.h
58 lines (41 loc) · 1.48 KB
/
Tile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef TILE_H_INCLUDED
#define TILE_H_INCLUDED
#include "Directions.h"
#include "Point.h"
/*********************************
The Tile class will hold all the info the bot is gathering while it is mapping the maze. It will also be used by A* to
figure out the quickest way to the center. It will hold the following info:
-which sides have walls and which have paths
-what path the bot traveled since leaving the tile
-if the tile has been explored by the bot or not
**************************************/
class Tile
{
private:
//figure out which direction the walls are true if wall that direction false if not
Directions walls;
//where the bot has traveled since leaving the tile
Directions pathsTraveled;
bool explored;
Point Location;
public:
//constructor sets explored to false
Tile();
Directions getpathsTraveled(void);
void setpathsTraveled(Directions);
void setWalls(Directions wall);
Directions getWalls(void);
void setNorth(bool);
bool getNorth(void);
void setSouth(bool);
bool getSouth(void);
void setEast(bool);
bool getEast(void);
void setWest(bool);
bool getWest(void);
bool getExplored(void);
void setExplored(bool);
Point getLocation(void);
void setLocation(Point p);
};
#endif // TILE_H_INCLUDED