diff options
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
| -rw-r--r-- | src/game_tab/HalfMove.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp index 9775c3e..0666f38 100644 --- a/src/game_tab/HalfMove.hpp +++ b/src/game_tab/HalfMove.hpp @@ -7,11 +7,7 @@ #include <vector> /** - * @brief Create your custom half move class - * - * The implementation of the class should give you - * an overview of how to keep your move sync with the one of CGEditor - * + * @brief This class extends CGEHalfMove (to be displayed in the game editor) */ class HalfMove : public cgeditor::CGEHalfMove { HalfMove *parent = nullptr; @@ -19,8 +15,10 @@ class HalfMove : public cgeditor::CGEHalfMove { chessarbiter::ChessArbiter arbiter; std::vector<HalfMove *> variations; std::string fen; + /// @brief Used in to retrieve captured pieces (see GetLineCaptures()) char capture; void BuildAndVerify(HalfMove *m, std::string fen); + /// @brief Store the source and destination square of the current move (mainly used for pieces animation) std::string src,dst; public: |
