Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
committerStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
commit41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (patch)
treeabe7fa4544c22ba0cfa6375fd56f2e596f1bf626 /src/core/gameserver.h
parent7daaf66869b7b9f85f71b1aa5e9a1b4c40710f33 (diff)
client-to-server connection
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;