diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-07 15:15:13 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-07 15:15:13 +0100 |
| commit | 1e03d1c245778a9bf769a2edee1d64f3a7dd5196 (patch) | |
| tree | d124b15c950fa3fa9d760925d8f904d5d4d86378 /src/game_tab/left_panel/board/BoardCanvas.hpp | |
| parent | b64489be9edbf62a73e6b126bbadaf2c3d7fed9a (diff) | |
Debug and improve arrows drawing
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 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<char, std::uint8_t> captures; std::vector<std::string> squares_hl; + std::vector<std::string> 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); |
