From 1e03d1c245778a9bf769a2edee1d64f3a7dd5196 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 7 Jan 2023 15:15:13 +0100 Subject: Debug and improve arrows drawing --- src/game_tab/left_panel/board/BoardCanvas.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp') diff --git a/src/game_tab/left_panel/board/BoardCanvas.hpp b/src/game_tab/left_panel/board/BoardCanvas.hpp index ddab72b..946711f 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -64,6 +64,7 @@ typedef struct GameState { std::string board; std::map captures; std::vector squares_hl; + std::vector arrows; bool is_black_turn; bool mat_black; bool mat_white; @@ -93,6 +94,8 @@ class BoardCanvas : public wxPanel { /// @brief Draw an arrow from a source point to a destination point on DC void DrawArrow(wxDC &dc, int xsrc, int ysrc, int xdst, int ydst); + /// @brief Draw an arrow with a L shape (such as knight moves) + void DrawLArrow(wxDC &dc, int xsrc, int ysrc, int xdst, int ydst, bool flip=false); public: BoardCanvas(wxFrame *parent); -- cgit v1.2.3