/* core/gameinterface.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include #include class GameInterface; #include "core/gameinterface.h" #include "core/player.h" namespace core { GameInterface *GameInterface::gameinterface_instance = 0; GameInterface::GameInterface(const char *game_name) { gameinterface_instance = this; connected = false; if (game_name) name.assign(game_name); else name.clear(); } GameInterface::~GameInterface() { gameinterface_instance = 0; } GameInterface *GameInterface::instance() { return gameinterface_instance; } } // namespace core