diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-06 20:34:14 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-06 20:34:14 +0100 |
| commit | b64489be9edbf62a73e6b126bbadaf2c3d7fed9a (patch) | |
| tree | 3aa93ee850eaf6aec960178e2df20d8ca8d9261f /src/game_tab/left_panel/board/BoardCanvas.hpp | |
| parent | a9eb4e05691feae5a417991e185dff5b459702a8 (diff) | |
Add code to draw arrows on the board
Diffstat (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp')
| -rw-r--r-- | src/game_tab/left_panel/board/BoardCanvas.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
