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.hpp3
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);