From 3efabf1c331bef94d27e2818ab734a02dc401dfe Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 29 Dec 2022 10:08:22 +0100 Subject: Implement pieces move animations --- src/game_tab/HalfMove.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/game_tab/HalfMove.cpp') diff --git a/src/game_tab/HalfMove.cpp b/src/game_tab/HalfMove.cpp index 7e18869..3ff627f 100644 --- a/src/game_tab/HalfMove.cpp +++ b/src/game_tab/HalfMove.cpp @@ -1,12 +1,14 @@ #include "HalfMove.hpp" -HalfMove::HalfMove(std::string move) : capture(' ') { - this->move = move; +HalfMove::HalfMove(std::string move_absolute,std::string move_san) : capture(' ') { + this->move_absolute=move_absolute; + this->move = move_san; fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; } -HalfMove::HalfMove(std::string move, std::string fen) : fen(fen), capture(' ') { - this->move = move; +HalfMove::HalfMove(std::string move_absolute, std::string move_san, std::string fen) : fen(fen), capture(' ') { + this->move_absolute=move_absolute; + this->move = move_san; } HalfMove::~HalfMove() { -- cgit v1.2.3