diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:01:26 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:01:26 +0100 |
| commit | b9aa1085df08c4a8901ca0433de25a170b33e6d6 (patch) | |
| tree | 72034a2ff87c3187529a0dc6ffdece212b6134a6 /src/game_tab/left_panel/board/BoardCanvas.hpp | |
| parent | 840e68807cfbb23fcc2718496d07a6d3ec5fc8ed (diff) | |
Improve pawn promotion code
Diffstat (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp')
| -rw-r--r-- | src/game_tab/left_panel/board/BoardCanvas.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<char, std::uint8_t> captures; std::vector<Square> squares_hl; std::vector<Arrow> arrows; |
