aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-13 10:42:57 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-13 10:42:57 +0100
commitf754a93f9f13fa7f30386caba397b91e127aab2c (patch)
tree9b3cd0a464d40657a9ed252f7065403669c8b9de /src/game_tab/HalfMove.hpp
parent7009469e96505ab7c2445e7dea43d6c6d2fcbd08 (diff)
Debug MainWindow and add comments
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
-rw-r--r--src/game_tab/HalfMove.hpp8
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: