Implement pieces move animations

This commit is contained in:
Loic Guegan 2022-12-29 10:08:22 +01:00
parent 7187e6d6ee
commit 3efabf1c33
10 changed files with 160 additions and 53 deletions

View file

@ -12,14 +12,16 @@ class GameTabLeftPanel : public TabGameLeftPanel {
std::shared_ptr<Game> game;
BoardCanvas *board_canvas;
void NotifyEditor();
std::string last_absolute_move;
bool repeat;
public:
GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
void Notify(bool animate=false);
void Notify(bool animate=false,bool backward=false);
void OnPlay(wxCommandEvent &event);
void OnGotoMove(wxCommandEvent &event);
void OnPreviousMove(wxCommandEvent &event);
void OnNextMove(wxCommandEvent &event);
void PreviousMove(bool isKeyDown);
void NextMove(bool isKeyDown);
void OnZoomIn(wxCommandEvent &event);
void OnZoomOut(wxCommandEvent &event);
void OnSwap(wxCommandEvent &event);