Nicolas Winkler 8 лет назад
Родитель
Сommit
d4abb84120
2 измененных файлов с 37 добавлено и 0 удалено
  1. 4 0
      src/ChessGame.cpp
  2. 33 0
      src/ChessGame.h

+ 4 - 0
src/ChessGame.cpp

@@ -0,0 +1,4 @@
+#include "ChessGame.h"
+#include <string>
+
+using namespace chessy;

+ 33 - 0
src/ChessGame.h

@@ -0,0 +1,33 @@
+#ifndef CHESSY_CHESSGAME_H
+#define CHESSY_CHESSGAME_H
+
+#include "Board.h"
+
+namespace chessy
+{
+    class ChessGame;
+}
+
+
+class chessy::ChessGame
+{
+    Board board;
+
+    bool canCastleQueenSideWhite;
+    bool canCastleQueenSideBlack;
+    bool canCastleKingSideWhite;
+    bool canCastleKingSideBlack;
+
+    short reversibleHalfMoves;
+
+    char enPassantWhite;
+    char enPassantBlack;
+
+public:
+    ChessGame(void) = default;
+    ChessGame(const ChessGame&) = default;
+    ~ChessGame(void) = default;
+
+};
+
+#endif // CHESSY_CHESSGAME_H