From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/core/gameinterface.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/core/gameinterface.h') 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; }; } -- cgit v1.2.3