-
Notifications
You must be signed in to change notification settings - Fork 0
/
positionMap.h
39 lines (31 loc) · 1.46 KB
/
positionMap.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
#ifndef POSITIONMAP_H
#define POSITIONMAP_H
#include <string>
#include <vector>
#include <map>
const int ROWS = 56;
const int COLS = 90;
const std::map<int, std::vector<int>> MAP_COORD = {
{0, {82,50}}, {1, {74,50}}, {2, {66,50}}, {3, {58,50}}, {4, {50,50}},
{5, {42,50}}, {6, {34,50}}, {7, {26,50}}, {8, {18,50}}, {9, {10,50}},
{10, {1,50}}, {11, {1,45}}, {12, {1,40}}, {13, {1,35}}, {14, {1,30}},
{15, {1,25}}, {16, {1,20}}, {17, {1,15}}, {18, {1,10}}, {19, {1,5}},
{20, {1,0}}, {21, {9,0}}, {22, {17,0}}, {23, {25,0}}, {24, {35,0}},
{25, {42,0}}, {26, {49,0}}, {27, {57,0}}, {28, {65,0}}, {29, {73,0}},
{30, {81,0}}, {31, {81,5}}, {32, {81,10}}, {33, {81,15}}, {34, {81,20}},
{35, {81,25}}, {36, {81,30}}, {37, {81,35}}, {38, {81,40}}, {39, {81,45}}
};
// This is a global constant to keep track of position block in game map
// where index is the position of block (string type)
const std::vector<std::string> MAP_GAME =
{
"COLLECT OSAP", "AL", "SLC", "ML", "TUITION", "MKV", "ECH", "NEEDLES HALL", "PAS", "HH",
"DC Tims Line", "RCH", "PAC", "DWE", "CPH", "UWP", "LHI", "SLC", "BMH", "OPT",
"Goose Nesting", "EV1", "NEEDLES HALL", "EV2", "EV3", "V1", "PHYS", "B1", "CIF", "B2",
"GO TO TIMS", "EIT", "ESC", "SLC", "C2", "REV", "NEEDLES HALL", "MC", "COOP FEE", "DC",
};
const int MAP_GAME_SIZE = MAP_GAME.size();
int indexOfSquare(std::string nameSquare);
int colOfSquare(int indexOfSquare);
int rowOfSquare(int indexOfSquare);
#endif