소스 검색

added more classes

Nicolas Winkler 8 년 전
부모
커밋
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