Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameserver.h')
-rw-r--r--src/core/gameserver.h8
1 files changed, 6 insertions, 2 deletions
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;