From f754a93f9f13fa7f30386caba397b91e127aab2c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 13 Jan 2023 10:42:57 +0100 Subject: Debug MainWindow and add comments --- src/game_tab/HalfMove.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/game_tab/HalfMove.hpp') 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 /** - * @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 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: -- cgit v1.2.3