aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/board/BoardCanvas.hpp
diff options
context:
space:
mode:
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;