diff options
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); } |