-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoard.h
54 lines (44 loc) · 1016 Bytes
/
Board.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
//=================================
// include guard
#ifndef BOARD_H
#define BOARD_H
//=================================
// forward declared dependencies
class Space;
class Piece;
//=================================
// included dependencies
#include "Space.h"
#include "Piece.h"
#include <math.h>
class Board{
private:
Space** spaces;
int baseX;
int baseY;
public:
//constructors
Board();
Board(int x, int y);
//setters
void setPiece(Piece* newPiece, int loc);
void movePiece(int fromLoc, int toLoc);
void takePiece(int takeLoc);
//getters
bool getOccupied(int loc);
Piece* getPiece(int loc);
int getTeam(int loc);
int getDir(int loc);
int getX();
int getY();
int getTot();
int getForward(int s);
int getForward(int s, int a);
int getBackward(int s);
int getBackward(int s, int a);
int getLeft(int s);
int getLeft(int s, int a);
int getRight(int s);
int getRight(int s, int a);
};
#endif //BOARD_H