aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-03-01 15:58:02 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-03-01 15:58:02 +0100
commitcb4f5ada5c91629e96f1daecaf85dc92bee5359d (patch)
treeed25b0652a44596f72d034ad9cbb2b7331e3fac9 /src/game_tab/HalfMove.hpp
parent9cba705e6631216bfcb8c95940bcf097a7888da2 (diff)
Move PGN export to the right place
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
-rw-r--r--src/game_tab/HalfMove.hpp5
1 files changed, 3 insertions, 2 deletions
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<HalfMove *> 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<HalfMove *> GetVariations();
+
std::map<char, std::uint8_t> 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