OChess v0.0.2
Programmer's Manual
GameTabLeftPanel.hpp
1#pragma once
2
3#include "../Game.hpp"
4#include "board/BoardCanvas.hpp"
5#include "ochess.hpp"
6#include "base_tab/gamebase/GameBase.hpp"
7#include "game_tab/right_panel/LiveEngineDialog.hpp"
8
9// Foreign events
10wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
11
17 std::shared_ptr<Game> game;
18 BoardCanvas *board_canvas;
19 bool repeat;
20 HalfMove *last_move;
21 std::vector<GameState::Arrow> engine_arrows;
22 std::string promote_on;
23 std::string promotion_move;
24 float eval_cp;
25 bool is_engine_on;
26
27public:
28 GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
29 void Notify(bool skip_animation=false);
30 void OnPlay(wxCommandEvent &event);
31 void OnGotoMove(wxCommandEvent &event);
32 void OnRefreshBoard(wxCommandEvent &event);
33 void ApplyPreferences();
34 void SetSaveToolEnable(bool state){game_toolbar->EnableTool(0,state);};
35 void SetEngineEvaluation(EngineEvaluation eval);
36 void SetLiveEngineState(bool isOn);
37};
This class draws the chess board (squares, pieces, arrows and every other board related components).
Definition: BoardCanvas.hpp:113
Panel that contains the BoardCanvas and the bottom control buttons.
Definition: GameTabLeftPanel.hpp:16
This class extends CGEHalfMove (to be displayed in the game editor)
Definition: HalfMove.hpp:13
Class TabGameLeftPanel.
Definition: gui.h:284
Contains the current engine evaluation (sorted vector of best lines + position score in cp)
Definition: LiveEngineDialog.hpp:11