Migrate to std::shared_ptr<Game>

This commit is contained in:
Loic Guegan 2022-02-28 20:16:57 +01:00
parent 4c959fe12e
commit 44ea0a50a3
16 changed files with 44 additions and 49 deletions

View file

@ -9,12 +9,12 @@ wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
class GameTabLeftPanel : public TabGameLeftPanel {
Game *game;
std::shared_ptr<Game> game;
BoardCanvas *board_canvas;
void NotifyEditor();
public:
GameTabLeftPanel(wxFrame *parent, Game *game);
GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
void Notify();
void OnPlay(wxCommandEvent &event);
void OnGotoMove(wxCommandEvent &event);