From cb4f5ada5c91629e96f1daecaf85dc92bee5359d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 1 Mar 2022 15:58:02 +0100 Subject: Move PGN export to the right place --- src/game_tab/HalfMove.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game_tab/HalfMove.hpp') diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp index 51b38a0..6ea0c5a 100644 --- a/src/game_tab/HalfMove.hpp +++ b/src/game_tab/HalfMove.hpp @@ -20,7 +20,6 @@ class HalfMove : public cgeditor::CGEHalfMove { std::vector variations; std::string fen; char capture; - std::string GetPGN(bool needDots); void BuildAndVerify(HalfMove *m, std::string fen); public: @@ -47,6 +46,8 @@ public: /// @brief Get parent of the current move HalfMove *GetParent(); HalfMove *GetMainline(); + std::vector GetVariations(); + std::map GetLineCaptures(); /// @brief Set parent of the current move @@ -54,7 +55,7 @@ public: std::string GetFen(); void SetFen(std::string fen); void SetCapture(char c); - std::string GetPGN(); + bool IsABlackMove(); /** * @brief Build current move -- cgit v1.2.3