Add engine evaluation bar

This commit is contained in:
Loic Guegan 2023-01-11 10:46:14 +01:00
parent 5fac6bf7af
commit 9091232b60
8 changed files with 47 additions and 37 deletions

View file

@ -4,6 +4,7 @@
#include "board/BoardCanvas.hpp"
#include "ochess.hpp"
#include "base_tab/gamebase/GameBase.hpp"
#include "game_tab/right_panel/LiveEngineDialog.hpp"
// Foreign events
wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
@ -16,6 +17,7 @@ class GameTabLeftPanel : public TabGameLeftPanel {
std::vector<GameState::Arrow> engine_arrows;
std::string promote_on;
std::string promotion_move;
float eval_cp;
public:
GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
@ -25,5 +27,5 @@ public:
void OnRefreshBoard(wxCommandEvent &event);
void ApplyPreferences();
void SetSaveToolEnable(bool state){game_toolbar->EnableTool(0,state);};
void SetEngineArrows(std::vector<std::string> arrows);
void SetEngineEvaluation(EngineEvaluation eval);
};