Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-16 14:31:02 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 14:31:02 +0000
commitd198b7b8d9ff713d891f35ab173d1f428f610e7d (patch)
tree6a1f76ee5788ee3dfac858e2c8233207637c01bc /src/core/core.cc
parentd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (diff)
code cleanup
Diffstat (limited to 'src/core/core.cc')
-rw-r--r--src/core/core.cc48
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);
-}
-
-
}