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 12:22:33 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
commitd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch)
tree35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/core.h
parent715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff)
initial client-to-server connection
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/core.h b/src/core/core.h
index a3c5f0d..0fc7e8d 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -25,11 +25,14 @@ GameInterface *game();
/// pointer to the current ApplicationInterface
Application *application();
-/// true if the core is connected to a game module
-bool connected();
+/// broadcast a network message to all connected clients
+void net_broadcast(std::ostringstream &osstream, int ignoreplayer=-1);
-/// return the time the core has been running, in seconds
-float time();
+/// send a network message to a player
+void net_send(Player &player, std::ostringstream &osstream);
+
+/// send a network message to a player
+void net_send(Player &player, std::string message);
}