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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
vector<vector<Tile>> make_map(int x, int y, string map) {

	vector<vector<Tile>> mv(x, vector<Tile>(y));
	int counter = 0;

	for(int i=0;i<x;i++) {
		for(int j=0;j<y;j++) {
			switch(map[counter]) {
			case 'X'://Wooden log
				mv[i][j].set_values('x','n',0,0);
				break;
			case 'O' ://empty
				mv[i][j].set_values('o','y',1,3);
				break;
			case 'V': //the void
				mv[i][j].set_values('v','n',2,4);
				break;
			case 'G'://grass (long)
				mv[i][j].set_values('g','y',1,1);
				break;
			case 'T'://tree
				mv[i][j].set_values('t','n',0,2);
				break;
			case 'S'://sign
				mv[i][j].set_values('s','n',0,3);
				break;
			case 'B'://blood
				mv[i][j].set_values('b','y',1,4);
				break;
			case 'D': //dirt
				mv[i][j].set_values('d','y',2,3);
				break;
			case 'W': //dirt
				mv[i][j].set_values('w','y',4,3);
				break;
			case 'F': //floor
				mv[i][j].set_values('f','y',1,2);
				break;
			case 'R': //left rug
				mv[i][j].set_values('r','y',5,3);
				break;
			case 'Y': //right rug
				mv[i][j].set_values('y','y',5,4);
				break;
			case '1'://left of roof
				mv[i][j].set_values('1','n',7,3);
				break;
			case '2'://roof center
				mv[i][j].set_values('2','n',7,4);
				break;
			case '3'://small window leftside on roof
				mv[i][j].set_values('3','n',7,5);
				break;
			case '4': //flowerpot window
				mv[i][j].set_values('4','n',7,6);
				break;
			case '5': //small window rightside on roof
				mv[i][j].set_values('5','n',7,7);
				break;
			case '6'://right of roof
				mv[i][j].set_values('6','n',7,8);
				break;
			case '7': //left wall
				mv[i][j].set_values('7','n',8,3);
				break;
			case '8': //wall
				mv[i][j].set_values('8','n',8,4);
				break;
			case '9': //rake
				mv[i][j].set_values('9','n',8,5);
				break;
			case '!': //door
				mv[i][j].set_values('!','y',8,6);
				break;
			case '@': //broom
				mv[i][j].set_values('@','n',8,7);
				break;
			case '#': //right wall
				mv[i][j].set_values('#','n',8,8);
				break;
			case '$': //left of shingles
				mv[i][j].set_values('$','n',6,3);
				break;
			case '%': //shingles
				mv[i][j].set_values('%','n',6,4);
				break;
			case '^': //right of shingles
				mv[i][j].set_values('^','n',6,5);
				break;

			}
			counter++;
		}
	}
	return mv;
}