diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 20:16:57 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 20:16:57 +0100 |
| commit | 44ea0a50a39d58cb9e1f167c2973e396b4d853aa (patch) | |
| tree | 14cae56496eb72816f6f3d8b2323e6abfa79f200 /src/ochess.hpp | |
| parent | 4c959fe12ed2f26cbfac9646d3488cb00676fb31 (diff) | |
Migrate to std::shared_ptr<Game>
Diffstat (limited to 'src/ochess.hpp')
| -rw-r--r-- | src/ochess.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ochess.hpp b/src/ochess.hpp index 6303e31..3b2769e 100644 --- a/src/ochess.hpp +++ b/src/ochess.hpp @@ -6,12 +6,12 @@ #endif #include "binres/binres.hpp" +#include "gui.h" +#include <memory> #include <wx/app.h> #include <wx/config.h> #include <wx/filefn.h> // Check file exists etc #include <wx/log.h> -#include "gui.h" -#include <memory> #define MAINWIN ((MainWindow *)wxGetApp().GetTopWindow()) @@ -46,6 +46,8 @@ wxDECLARE_APP(MyApp); ///@brief Abort ochess with a message void Abort(std::string msg); +class Game; + /** * @brief Attach informations to the application tabs * @@ -56,6 +58,6 @@ public: Type type; TabInfos(Type type_) : type(type_) {} virtual void ApplyPreferences() = 0; - virtual void *GetGame() = 0; + virtual std::shared_ptr<Game> GetGame() = 0; virtual void *GetBase() = 0; }; |
