diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 13:44:27 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 13:44:27 +0100 |
| commit | bf485fa577a76731f9eac97de3b0a647cd492e49 (patch) | |
| tree | 731d9ec91070406124044e75b4b27949e5d230c0 /src/game_tab/right_panel/LiveEngineDialog.hpp | |
| parent | 7178f18ab88bcc93bfbf2019adf53d2f60d8fa20 (diff) | |
Refactoring game tab
Diffstat (limited to 'src/game_tab/right_panel/LiveEngineDialog.hpp')
| -rw-r--r-- | src/game_tab/right_panel/LiveEngineDialog.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/game_tab/right_panel/LiveEngineDialog.hpp b/src/game_tab/right_panel/LiveEngineDialog.hpp new file mode 100644 index 0000000..999002f --- /dev/null +++ b/src/game_tab/right_panel/LiveEngineDialog.hpp @@ -0,0 +1,20 @@ +#include "UCI.hpp" +#include "ochess.hpp" +#include <wx/timer.h> + +class LiveEngineDialog : public DialogLiveEngine { + uciadapter::UCI *engine; + std::string engine_name; + wxTimer timer; + std::uint32_t interval; + +public: + LiveEngineDialog(wxWindow *parent, std::string engine_name); + void InitEngine(); + void TogglePauseEngine(wxCommandEvent &event); + void OnTimerTick(wxTimerEvent &event); + void SetFEN(std::string fen); + void StopEngine(); + void StartEngine(); + void OnClose(wxCloseEvent &e); +};
\ No newline at end of file |
