aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-29 10:08:22 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-29 10:08:22 +0100
commit3efabf1c331bef94d27e2818ab734a02dc401dfe (patch)
tree78f5e01f697934387f2c85cdc804a73ac08d2ef3 /src/game_tab/HalfMove.cpp
parent7187e6d6ee8d2cec38cd9580e315a00d0c763e99 (diff)
Implement pieces move animations
Diffstat (limited to 'src/game_tab/HalfMove.cpp')
-rw-r--r--src/game_tab/HalfMove.cpp10
1 files changed, 6 insertions, 4 deletions
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() {