-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMap.h
32 lines (26 loc) · 1019 Bytes
/
Map.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
#ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED
#include "Tile.h"
#include "Point.h"
#define MAP_SIZE 16
/***********************************************
The map class will creat the initial array and also be in charge of managing the array of Tile cells
It will be able to pass back a pointer to any cell so that it can be directly manipulate by the bot during mapping.
*********************************************/
class Map
{
private:
void createMap();
Tile MapArray[MAP_SIZE][MAP_SIZE];
Tile *tileptr;
//this may not be needed as we have the pointer access
Directions CellInfo;
public:
Map();
Tile* getTilePtr(Point p);
Tile* getTilePtr(short x, short y);
//this may not be needed as we have the pointer access
Directions getCellInfo(short x, short y);
void setCellInfo(Directions cellinfo, short x, short y);
};
#endif // MAP_H_INCLUDED