Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h
index 1fbae03..4b18a9e 100644
--- a/src/core/gameinterface.h
+++ b/src/core/gameinterface.h
@@ -18,9 +18,9 @@ namespace core
class GameInterface
{
public:
- /// create a new game singleton
- GameInterface();
- /// destroy the game singleton
+ /// create a new game
+ GameInterface(const char *game_name = 0);
+ /// destroy the game
virtual ~GameInterface();
/// a pointer to the current game instance
@@ -48,8 +48,10 @@ public:
/// is called when a player disconnects
virtual void player_disconnect(Player &player) = 0;
-private:
static GameInterface *gameinterface_instance;
+
+ /// the name of the game
+ std::string name;
};
}