aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/board/BoardCanvas.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-09 13:13:03 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-09 13:13:03 +0100
commit445cc09d01f8e3beeb406e175b5a98d6be58ea9a (patch)
treeda4073002ad070cf6e10112f188da0d4a1daeee4 /src/game_tab/left_panel/board/BoardCanvas.hpp
parent741dc8a52eb0c1e8b70f5e06e7d43db939e64f21 (diff)
Debug BoardCanvas DragNDrop and highlight last played move
Diffstat (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp')
-rw-r--r--src/game_tab/left_panel/board/BoardCanvas.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game_tab/left_panel/board/BoardCanvas.hpp b/src/game_tab/left_panel/board/BoardCanvas.hpp
index f387c22..a764fee 100644
--- a/src/game_tab/left_panel/board/BoardCanvas.hpp
+++ b/src/game_tab/left_panel/board/BoardCanvas.hpp
@@ -78,12 +78,13 @@ class BoardCanvas : public wxPanel {
Theme *t, *t_captures;
wxColour color_arrows;
int arrows_offset;
- // Board to draw (char version)
- std::string board;
std::string white_player,black_player;
+ // Current highlighted squares and arrows:
+ std::vector<std::string> squares_hl;
+ std::vector<std::string> arrows;
// Various canvas state variables
- bool black_side, is_dragging, valid_drag, valid_arrow, is_black_turn;
+ bool black_side, is_dragging, valid_drag, arrow_drag, is_black_turn;
std::uint32_t boardX, boardY, square_width, piece_width, mouseX, mouseY, lastClickX,
lastClickY;
wxSize canvas_size;