diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
commit | d6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch) | |
tree | 35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/gameinterface.h | |
parent | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff) |
initial client-to-server connection
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 10 |
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; }; } |