-
Notifications
You must be signed in to change notification settings - Fork 0
/
token.h
69 lines (52 loc) · 1.08 KB
/
token.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "player.h"
#ifndef LASTMOVEDIRECTION
#define LASTMOVEDIRECTION
struct lastMoveDirection
{
int column,row;
};
#endif
#ifndef CHECKCAPTUREAW_H
#define CHECKCAPTUREAW_H
struct CheckcaptureAW
{
bool capture;
bool approach;
};
#endif
#ifndef POSITION_H
#define POSITION_H
struct position // TODO: upper case!
{
int column,row;
};
#endif
#ifndef GRID_H
#define GRID_H
struct Grid
{
CheckcaptureAW gridPosition[5][9];
};
#endif
#ifndef TOKEN_H
#define TOKEN_H
class Token
{
public:
void setTeam(Team);
Team getTeam(void);
void setLastMoveDirection(struct lastMoveDirection);
struct lastMoveDirection getLastMoveDirection(void);
char asChar(void); // TODO invoke this when printing the board. or is this needed overall?
static char asChar(enum Team); // TODO: private??
bool getGridBool(void);
void setFieldOfView(struct Grid);
struct Grid getFieldOfView(void);
private:
enum Team team;
struct lastMoveDirection lmd;
bool gridCapturingToken[5][9]; // TODO: abolish
struct Grid fieldOfView;
//bool gridBool; // TODO: needed? what for? ~ingo
};
#endif