From b64489be9edbf62a73e6b126bbadaf2c3d7fed9a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 6 Jan 2023 20:34:14 +0100 Subject: Add code to draw arrows on the board --- 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 f53bb8f..ddab72b 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -91,6 +91,9 @@ class BoardCanvas : public wxPanel { AnimState adata; GameState gs; + /// @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); + public: BoardCanvas(wxFrame *parent); BoardCanvas(wxFrame *parent,std::uint32_t square_width, bool frozen); -- cgit v1.2.3