Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
commitd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch)
tree35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/gameinterface.h
parent715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff)
initial client-to-server connection
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;
};
}