-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.h
40 lines (31 loc) · 929 Bytes
/
enums.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
#ifndef ENUMS_H
#define ENUMS_H
#include <utility>
#include <list>
#include <string>
enum FieldsCoordinates{
A = 0,
B = 1, C = 2, D = 3, E = 4, F = 5, G = 6, H = 7
};
const std::list<FieldsCoordinates> allFC = {FieldsCoordinates::A, FieldsCoordinates::B, FieldsCoordinates::C, FieldsCoordinates::D,
FieldsCoordinates::E, FieldsCoordinates::F, FieldsCoordinates::G, FieldsCoordinates::H};
const std::string FCNames[8] = {"A ", "B ", "C ", "D ", "E ", "F ", "G ", "H "};
enum Color{
C_BLACK,
C_WHITE
};
enum Team{
T_BLACK,
T_WHITE
};
enum MovementErrorCode{
MEC_SUCCESS,
MEC_GAMEDONE,
MEC_EMPTYWHERE,
MEC_IMPOSSIBLE
};
typedef std::pair<FieldsCoordinates, int> Coords;
typedef std::pair<Coords, Coords> Movement;
const Coords WRONG_COORDS(FieldsCoordinates::A, -10);
const Movement WRONG_MOVEMENT(WRONG_COORDS, WRONG_COORDS);
#endif // ENUMS_H