File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 5
5
// Trying to avoid c++11 at this point. Does everyone here have it?
6
6
7
7
8
- #include " board\ logger.h"
8
+ #include " logger.h"
9
9
10
- #include " board\ Position.h"
11
- #include " board\ Piece.h"
12
- #include " board\ Pawn.h"
13
- #include " board\ Rook.h"
14
- #include " board\ Bishop.h"
15
- #include " board\ Knight.h"
16
- #include " board\ Queen.h"
17
- #include " board\ King.h"
10
+ #include " Position.h"
11
+ #include " Piece.h"
12
+ #include " Pawn.h"
13
+ #include " Rook.h"
14
+ #include " Bishop.h"
15
+ #include " Knight.h"
16
+ #include " Queen.h"
17
+ #include " King.h"
18
18
19
19
// For loading new_game.txt
20
20
#include < fstream>
@@ -71,12 +71,12 @@ namespace chesspp
71
71
// Given screen coordinates, set the currentPiece to the proper piece
72
72
// Note that this uses magic number 80 to know how large the screen is
73
73
void setCurrent (int screenX, int screenY);
74
- Piece* getCurrent (void );
74
+ Piece* getCurrent (void ) const ;
75
75
76
76
// Set the selected piece to the parameter
77
77
// At this point, toSelect is always currentPiece
78
78
void setSelected (Piece* toSelect);
79
- Piece* getSelected (void );
79
+ Piece* getSelected (void ) const ;
80
80
81
81
// Move a piece from one place to another
82
82
// The parameters should be changed to two Positions
You can’t perform that action at this time.
0 commit comments