aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/LiveEngineDialog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/right_panel/LiveEngineDialog.hpp')
-rw-r--r--src/game_tab/right_panel/LiveEngineDialog.hpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/game_tab/right_panel/LiveEngineDialog.hpp b/src/game_tab/right_panel/LiveEngineDialog.hpp
index 8975ed2..d0c6c51 100644
--- a/src/game_tab/right_panel/LiveEngineDialog.hpp
+++ b/src/game_tab/right_panel/LiveEngineDialog.hpp
@@ -26,15 +26,29 @@ class LiveEngineDialog : public DialogLiveEngine {
wxTimer timer;
/// @brief The following time interval definitely need to be configure in the user settings (set to 1s for now)
std::uint32_t interval;
-
+ /**
+ * @brief Called to fetch last evaluation from the engine subprocess (stockfish, fritz etc.)
+ *
+ * @param event
+ */
+ void OnTimerTick(wxTimerEvent &event);
+ void OnClose(wxCloseEvent &e);
+ /**
+ * @brief Create the engine sub process using the uciadapter library
+ *
+ */
+ void InitEngine();
+ /// @brief Pause/Resume evaluation
+ void TogglePauseEngine(wxCommandEvent &event);
public:
LiveEngineDialog(wxWindow *parent, std::uint32_t engine_id);
~LiveEngineDialog();
- void InitEngine();
- void TogglePauseEngine(wxCommandEvent &event);
- void OnTimerTick(wxTimerEvent &event);
+ /**
+ * @brief Used setup a new position to evaluate
+ *
+ * @param fen position to evaluate
+ */
void SetFEN(std::string fen);
void StopEngine();
void StartEngine();
- void OnClose(wxCloseEvent &e);
}; \ No newline at end of file