From 41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 19 Feb 2008 17:37:01 +0000 Subject: client-to-server connection --- src/core/gameserver.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/gameserver.h') diff --git a/src/core/gameserver.h b/src/core/gameserver.h index 32a37c3..d4bd0eb 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -27,7 +27,7 @@ public: /*----- inspectors ------------------------------------------------ */ /// returns true if the game server can run a time frime - bool running(); + inline bool running() { return server_running; } /// returns true if the game server can not run a time frime inline bool error() { return !server_running; } @@ -50,7 +50,10 @@ public: void broadcast(std::string const & message, int ignoreplayer = -1); /// send a message to a single player - void send(Player const *player, std::string message); + void send(Player *player, std::string message); + + /// a player sends a command to the game server + void exec(Player *player, std::string const &cmdline); /*----- static ---------------------------------------------------- */ @@ -60,6 +63,7 @@ public: protected: /// abort runing void abort(); + private: bool server_running; Module *server_module; -- cgit v1.2.3