-
Notifications
You must be signed in to change notification settings - Fork 0
/
Map.h
44 lines (34 loc) · 986 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
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED
class Map
{
public:
static const int row = 10;
static const int column = 10;
Map()
{
}
char mapGame[row][column] = {{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*',},
{'*','*','*','*','*','*','*','*','*','*'}
};
void printMap()
{
for(int i = 0; i < row; i++ )
{
for(int j = 0; j < column; j++)
{
std::cout<<mapGame[i][j]<<" ";
}
std::cout<<"\n\n\n";
}
}
};
#endif // MAP_H_INCLUDED