aboutsummaryrefslogtreecommitdiff
path: root/src/ochess.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ochess.hpp')
-rw-r--r--src/ochess.hpp8
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;
};