diff options
Diffstat (limited to 'src/core/core.cc')
-rw-r--r-- | src/core/core.cc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/core/core.cc b/src/core/core.cc index b1083a8..b2327ee 100644 --- a/src/core/core.cc +++ b/src/core/core.cc @@ -4,55 +4,7 @@ the terms of the GNU General Public License version 2. */ -#include <iostream> -#include <sstream> - -#include "core/core.h" -#include "core/netclient.h" - - namespace core { -GameInterface *game() -{ - return GameInterface::instance(); -} - -Application *application() -{ - return Application::instance(); -} - - -void net_broadcast(std::ostringstream &osstream, int ignoreplayer) -{ - if (!application()->netserver) - return; - - application()->netserver->broadcast(osstream, ignoreplayer); -} - -void net_send(Player &player, std::ostringstream &osstream) -{ - if (!application()->netserver) - return; - - NetClient *client = application()->netserver->find_client(player); - if (client) - application()->netserver->send(client, osstream); -} - - -void net_send(Player &player, std::string message) -{ - if (!application()->netserver) - return; - - NetClient *client = application()->netserver->find_client(player); - if (client) - application()->netserver->send(client, message); -} - - } |