From 73f7be6c0366fd4334e70d68f0376c64357edd80 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 2 Jan 2023 10:56:27 +0100 Subject: Add mat icon --- src/game_tab/left_panel/board/BoardCanvas.hpp | 10 ++++++++++ 1 file changed, 10 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 9a00262..5d7c76d 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -58,6 +58,15 @@ typedef struct AnimState { wxPoint transVect; } AnimState; +typedef struct GameState { + std::string white, black; + std::string board; + std::map captures; + bool is_black_turn; + bool mat_black; + bool mat_white; +} GameState; + class BoardCanvas : public wxPanel { // *t is theme for board+pieces and // *t_captures is theme for captured pieces (scale down version of t) @@ -78,6 +87,7 @@ class BoardCanvas : public wxPanel { // Current animation state AnimState adata; + GameState gs; public: BoardCanvas(wxFrame *parent); -- cgit v1.2.3