summaryrefslogtreecommitdiff
path: root/src/network/network_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-22 18:40:57 +0000
committerrubidium <rubidium@openttd.org>2008-12-22 18:40:57 +0000
commitabc903d62539333ea5039ed152de07f174617a84 (patch)
tree68a45cb9d1b5a0a6ab29d8cdecc736cd6dbae7ea /src/network/network_gui.h
parente6e32bad4d160c67f1c589edd25af423529845c2 (diff)
downloadopenttd-abc903d62539333ea5039ed152de07f174617a84.tar.xz
(svn r14712) -Codechange: split server and client side w.r.t. the storage of network related company information.
Diffstat (limited to 'src/network/network_gui.h')
-rw-r--r--src/network/network_gui.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/network_gui.h b/src/network/network_gui.h
index d0a5b4996..ee73cd0b9 100644
--- a/src/network/network_gui.h
+++ b/src/network/network_gui.h
@@ -18,6 +18,21 @@ void ShowNetworkGameWindow();
void ShowClientList();
void ShowNetworkCompanyPasswordWindow(Window *parent);
+
+/** Company information stored at the client side */
+struct NetworkCompanyInfo : NetworkCompanyStats {
+ char company_name[NETWORK_COMPANY_NAME_LENGTH]; ///< Company name
+ Year inaugurated_year; ///< What year the company started in
+ Money company_value; ///< The company value
+ Money money; ///< The amount of money the company has
+ Money income; ///< How much did the company earned last year
+ uint16 performance; ///< What was his performance last month?
+ bool use_password; ///< Is there a password
+ char clients[NETWORK_CLIENTS_LENGTH]; ///< The clients that control this company (Name1, name2, ..)
+};
+
+NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
+
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */