From b9aa1085df08c4a8901ca0433de25a170b33e6d6 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 10 Jan 2023 16:01:26 +0100 Subject: Improve pawn promotion code --- src/game_tab/left_panel/board/BoardCanvas.hpp | 2 ++ 1 file changed, 2 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 bc850b7..efd917b 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -12,6 +12,7 @@ // Local events wxDECLARE_EVENT(PLAY_MOVE_EVENT, wxCommandEvent); +wxDECLARE_EVENT(PLAY_PROMOTE, wxCommandEvent); #define REFRESH_MOUSE_LOCATION() \ { \ @@ -74,6 +75,7 @@ typedef struct GameState { } Square; std::string white, black; std::string board; + std::string promotion; std::map captures; std::vector squares_hl; std::vector arrows; -- cgit v1.2.3