From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/core/core.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/core/core.h') 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); } -- cgit v1.2.3