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.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp
index 08a190b..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);
@@ -62,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