From d198b7b8d9ff713d891f35ab173d1f428f610e7d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 14:31:02 +0000 Subject: code cleanup --- src/core/core.cc | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'src/core/core.cc') 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 -#include - -#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); -} - - } -- cgit v1.2.3