summaryrefslogtreecommitdiff
path: root/src/network/network_server.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-24 20:07:32 +0000
committerrubidium <rubidium@openttd.org>2010-10-24 20:07:32 +0000
commitf24c91c4876e44ff9bed04bc5065f7966406bb87 (patch)
treedfa72debbfa17c4913b0f29fb2ff60cd949ec026 /src/network/network_server.h
parent2cd67a51acc71b08e52c94fefa44fe665977396f (diff)
downloadopenttd-f24c91c4876e44ff9bed04bc5065f7966406bb87.tar.xz
(svn r21030) -Codechange: move ClientStatus into the network server socket class
Diffstat (limited to 'src/network/network_server.h')
-rw-r--r--src/network/network_server.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/network_server.h b/src/network/network_server.h
index c5bc049f1..7c5b175bf 100644
--- a/src/network/network_server.h
+++ b/src/network/network_server.h
@@ -50,6 +50,21 @@ protected:
NetworkRecvStatus SendNeedCompanyPassword();
public:
+ /** Status of a client */
+ enum ClientStatus {
+ STATUS_INACTIVE, ///< The client is not connected nor active.
+ STATUS_NEWGRFS_CHECK, ///< The client is checking NewGRFs.
+ STATUS_AUTH_GAME, ///< The client is authorizing with game (server) password.
+ STATUS_AUTH_COMPANY, ///< The client is authorizing with company password.
+ STATUS_AUTHORIZED, ///< The client is authorized.
+ STATUS_MAP_WAIT, ///< The client is waiting as someone else is downloading the map.
+ STATUS_MAP, ///< The client is downloading the map.
+ STATUS_DONE_MAP, ///< The client has downloaded the map.
+ STATUS_PRE_ACTIVE, ///< The client is catching up the delayed frames.
+ STATUS_ACTIVE, ///< The client is active within in the game.
+ STATUS_END ///< Must ALWAYS be on the end of this list!! (period).
+ };
+
byte lag_test; ///< Byte used for lag-testing the client
ClientStatus status; ///< Status of this client
CommandQueue outgoing_queue; ///< The command-queue awaiting delivery