OChess v0.0.2
Programmer's Manual
LiveEngineDialog Class Reference

Dialog to control the current running engine on the game tab. More...

#include <LiveEngineDialog.hpp>

Inheritance diagram for LiveEngineDialog:
DialogLiveEngine

Public Member Functions

 LiveEngineDialog (wxWindow *parent, std::uint32_t engine_id)
 
void SetFEN (std::string fen)
 Used setup a new position to evaluate. More...
 
void StopEngine ()
 
void StartEngine ()
 
- Public Member Functions inherited from DialogLiveEngine
 DialogLiveEngine (wxWindow *parent, wxWindowID id=ID_LIVE_ENGINE_DIALOG, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
 

Private Member Functions

void OnTimerTick (wxTimerEvent &event)
 Called to fetch last evaluation from the engine subprocess (stockfish, fritz etc.) More...
 
void OnClose (wxCloseEvent &e)
 
void InitEngine ()
 Create the engine sub process using the uciadapter library.
 
void TogglePauseEngine (wxCommandEvent &event)
 Pause/Resume evaluation.
 

Private Attributes

uciadapter::UCI * engine
 
std::string engine_name
 
std::string confGroup
 
std::string optmultipv
 
wxTimer timer
 
std::uint32_t interval
 The following time interval definitely need to be configure in the user settings (set to 1s for now)
 

Additional Inherited Members

- Protected Attributes inherited from DialogLiveEngine
wxStaticText * current_engine_label
 
wxStaticText * current_engine
 
wxButton * engine_stop_button
 
wxStaticText * multipv_label
 
wxSpinCtrl * multipv
 
wxStaticText * threads_label
 
wxStaticText * threads
 
wxStaticText * m_staticText13
 
wxSpinCtrl * depth
 
wxListCtrl * lines_list
 

Detailed Description

Dialog to control the current running engine on the game tab.

Member Function Documentation

◆ OnTimerTick()

void LiveEngineDialog::OnTimerTick ( wxTimerEvent &  event)
private

Called to fetch last evaluation from the engine subprocess (stockfish, fritz etc.)

Parameters
event

◆ SetFEN()

void LiveEngineDialog::SetFEN ( std::string  fen)

Used setup a new position to evaluate.

Parameters
fenposition to evaluate

The documentation for this class was generated from the following files: