diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
commit | d6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch) | |
tree | 35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/core.h | |
parent | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff) |
initial client-to-server connection
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 11 |
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); } |