/* 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 "core/gameinterface.h" #include #include namespace core { GameInterface *GameInterface::gameinterface_instance = 0; GameInterface::GameInterface() { if (gameinterface_instance) { std::cerr << "multiple singleton instances: core::GameInterface" << std::endl; exit(2); } gameinterface_instance = this; connected = false; } GameInterface::~GameInterface() { gameinterface_instance = 0; } GameInterface *GameInterface::instance() { return gameinterface_instance; } } // namespace core