aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
-rw-r--r--src/game_tab/HalfMove.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp
index 3d5177e..9775c3e 100644
--- a/src/game_tab/HalfMove.hpp
+++ b/src/game_tab/HalfMove.hpp
@@ -21,11 +21,9 @@ class HalfMove : public cgeditor::CGEHalfMove {
std::string fen;
char capture;
void BuildAndVerify(HalfMove *m, std::string fen);
- std::string move_absolute;
+ std::string src,dst;
public:
-
-
HalfMove(HalfMove *m);
HalfMove(std::string move_absolute,std::string move_san);
HalfMove(std::string move_absolute,std::string move_san, std::string fen);
@@ -46,6 +44,8 @@ public:
/// @brief Check if current half move is within a variation
bool IsVariation();
/// @brief Get the root of a variation
+ bool HasParent(HalfMove*m);
+ bool HasChild(HalfMove*m);
HalfMove *GetRoot();
/// @brief Get parent of the current move
HalfMove *GetParent();
@@ -60,7 +60,8 @@ public:
void SetFen(std::string fen);
void SetCapture(char c);
bool IsABlackMove();
- std::string GetAbsoluteMove(){return move_absolute;};
+ void GetAbsoluteMove(std::string &src,std::string &dst);
+ void SetAbsoluteMove(const std::string &move_absolute);
/**
* @brief Build current move