2006-09-01 15:35:43 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file network_gui.h GUIs related to networking. */
|
|
|
|
|
2006-09-01 15:35:43 +02:00
|
|
|
#ifndef NETWORK_GUI_H
|
|
|
|
#define NETWORK_GUI_H
|
|
|
|
|
2006-10-12 16:59:27 +02:00
|
|
|
#ifdef ENABLE_NETWORK
|
|
|
|
|
|
|
|
#include "network_data.h"
|
|
|
|
|
2006-09-01 15:35:43 +02:00
|
|
|
void ShowNetworkNeedPassword(NetworkPasswordType npt);
|
2007-01-10 19:56:51 +01:00
|
|
|
void ShowNetworkGiveMoneyWindow(PlayerID player); // PlayerID
|
2007-04-26 09:41:24 +02:00
|
|
|
void ShowNetworkChatQueryWindow(DestType type, int dest);
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowJoinStatusWindow();
|
|
|
|
void ShowNetworkGameWindow();
|
|
|
|
void ShowClientList();
|
2007-12-02 15:48:26 +01:00
|
|
|
void ShowNetworkCompanyPasswordWindow();
|
2006-10-12 16:59:27 +02:00
|
|
|
|
|
|
|
#else /* ENABLE_NETWORK */
|
|
|
|
/* Network function stubs when networking is disabled */
|
|
|
|
|
2007-04-26 09:41:24 +02:00
|
|
|
static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
|
2007-03-07 12:47:46 +01:00
|
|
|
static inline void ShowClientList() {}
|
|
|
|
static inline void ShowNetworkGameWindow() {}
|
2007-12-02 15:48:26 +01:00
|
|
|
static inline void ShowNetworkCompanyPasswordWindow() {}
|
2006-10-12 16:59:27 +02:00
|
|
|
|
|
|
|
#endif /* ENABLE_NETWORK */
|
2006-09-01 15:35:43 +02:00
|
|
|
|
2006-09-28 20:42:35 +02:00
|
|
|
#endif /* NETWORK_GUI_H */
|