Skip to content

Commit 0b889f9

Browse files
author
Thumperrr
committed
Fixed includes, and made get accessors const.
1 parent 12adae7 commit 0b889f9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/board/Board.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
// Trying to avoid c++11 at this point. Does everyone here have it?
66

77

8-
#include "board\logger.h"
8+
#include "logger.h"
99

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"
1818

1919
// For loading new_game.txt
2020
#include <fstream>
@@ -71,12 +71,12 @@ namespace chesspp
7171
// Given screen coordinates, set the currentPiece to the proper piece
7272
// Note that this uses magic number 80 to know how large the screen is
7373
void setCurrent(int screenX, int screenY);
74-
Piece* getCurrent(void);
74+
Piece* getCurrent(void) const;
7575

7676
// Set the selected piece to the parameter
7777
// At this point, toSelect is always currentPiece
7878
void setSelected(Piece* toSelect);
79-
Piece* getSelected(void);
79+
Piece* getSelected(void) const;
8080

8181
// Move a piece from one place to another
8282
// The parameters should be changed to two Positions

0 commit comments

Comments
 (0)