-
Notifications
You must be signed in to change notification settings - Fork 0
/
Piece.h
40 lines (35 loc) · 783 Bytes
/
Piece.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
//=================================
// include guard
#ifndef PIECE_H
#define PIECE_H
//=================================
// forward declared dependencies
//=================================
// included dependencies
class Piece
{
private:
int teamNum; //numeric identifier of the team
int teamDir; //direction the team moves forward
bool alive;
public:
//constructors
Piece();
Piece(int tn, int td);
//destructor
~Piece();
//setters
void setAlive(bool al);
void setTeam(int tn);
void setDirection(int td);
void setTeamDir(int tn, int td);
//getters
bool getAlive();
int getTeam();
int getDirection();
bool getMoveValid(int start, int end, int boardX, int takeTeam);
//methods
bool flipAlive();
int flipDirection();
};
#endif //PIECE_H