1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header

This commit is contained in:
rubidium
2010-01-15 16:41:15 +00:00
parent f380a7239d
commit 82fc28f77f
295 changed files with 308 additions and 351 deletions

View File

@@ -15,6 +15,7 @@
#include "../../stdafx.h"
#include "../../debug.h"
#include "os_abstraction.h"
#include "packet.h"

View File

@@ -14,7 +14,6 @@
#ifndef NETWORK_CORE_H
#define NETWORK_CORE_H
#include "os_abstraction.h"
#include "../../newgrf_config.h"
#ifdef ENABLE_NETWORK

View File

@@ -14,6 +14,8 @@
#ifndef NETWORK_CORE_HOST_H
#define NETWORK_CORE_HOST_H
#include "address.h"
void NetworkFindBroadcastIPs(NetworkAddressList *broadcast);
#endif /* NETWORK_CORE_HOST_H */

View File

@@ -14,9 +14,7 @@
#ifndef NETWORK_CORE_TCP_H
#define NETWORK_CORE_TCP_H
#include "os_abstraction.h"
#include "address.h"
#include "core.h"
#include "packet.h"
#ifdef ENABLE_NETWORK

View File

@@ -15,6 +15,7 @@
#include "../../stdafx.h"
#include "../network.h"
#include "../network_internal.h"
#include "../../core/pool_func.hpp"

View File

@@ -16,7 +16,7 @@
#include "os_abstraction.h"
#include "tcp.h"
#include "packet.h"
#include "../network_type.h"
#include "../../core/pool_type.hpp"
#ifdef ENABLE_NETWORK

View File

@@ -15,6 +15,7 @@
#include "../../stdafx.h"
#include "../../date_func.h"
#include "../../debug.h"
#include "udp.h"
/**

View File

@@ -71,12 +71,9 @@
#ifndef NETWORK_CORE_UDP_H
#define NETWORK_CORE_UDP_H
#include "os_abstraction.h"
#include "address.h"
#include "core.h"
#include "game.h"
#include "packet.h"
#include "../../debug.h"
#ifdef ENABLE_NETWORK

View File

@@ -16,12 +16,12 @@
#include "../strings_func.h"
#include "../command_func.h"
#include "../date_func.h"
#include "network_internal.h"
#include "network_client.h"
#include "network_server.h"
#include "network_content.h"
#include "network_udp.h"
#include "network_gamelist.h"
#include "network_base.h"
#include "core/udp.h"
#include "core/host.h"
#include "network_gui.h"

View File

@@ -12,7 +12,6 @@
#ifndef NETWORK_H
#define NETWORK_H
#include "../company_type.h"
#ifdef ENABLE_NETWORK

View File

@@ -15,7 +15,9 @@
#ifdef ENABLE_NETWORK
#include "network_type.h"
#include "core/address.h"
#include "../core/pool_type.hpp"
#include "../company_type.h"
typedef Pool<NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS> NetworkClientInfoPool;
extern NetworkClientInfoPool _networkclientinfo_pool;

View File

@@ -24,8 +24,10 @@
#include "../querystring_gui.h"
#include "../town.h"
#include "../window_func.h"
#include "network_internal.h"
#include "../core/geometry_func.hpp"
#include "network.h"
#include "network_client.h"
#include "network_base.h"
#include "table/strings.h"

View File

@@ -26,6 +26,8 @@
#include "../company_base.h"
#include "../company_gui.h"
#include "../rev.h"
#include "network.h"
#include "network_base.h"
#include "table/strings.h"

View File

@@ -14,6 +14,8 @@
#ifdef ENABLE_NETWORK
#include "network_internal.h"
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_GAME_INFO);
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_COMMAND)(const CommandPacket *cp);

View File

@@ -13,13 +13,13 @@
#include "../stdafx.h"
#include "../debug.h"
#include "network_internal.h"
#include "network_client.h"
#include "network.h"
#include "../command_func.h"
#include "../company_func.h"
/** Table with all the callbacks we'll use for conversion*/
static const CommandCallback * const _callback_table[] = {
static CommandCallback * const _callback_table[] = {
/* 0x00 */ NULL,
/* 0x01 */ CcBuildPrimaryVehicle,
/* 0x02 */ CcBuildAirport,

View File

@@ -13,7 +13,6 @@
#define NETWORK_CONTENT_H
#include "core/tcp_content.h"
#include "../core/smallvec_type.hpp"
#if defined(ENABLE_NETWORK)

View File

@@ -19,6 +19,7 @@
#include "../base_media_base.h"
#include "../sortlist_type.h"
#include "../querystring_gui.h"
#include "../core/geometry_func.hpp"
#include "network_content.h"
#include "table/strings.h"

View File

@@ -16,8 +16,8 @@
#include "network_type.h"
#include "../console_type.h"
#include "../gfx_type.h"
#include "../core/smallvec_type.hpp"
#include "../openttd.h"
#include "../company_type.h"
#ifdef ENABLE_NETWORK

View File

@@ -14,10 +14,11 @@
#include "../strings_func.h"
#include "../date_func.h"
#include "../fios.h"
#include "network_internal.h"
#include "network_client.h"
#include "network_gui.h"
#include "network_gamelist.h"
#include "network.h"
#include "network_base.h"
#include "../gui.h"
#include "network_udp.h"
#include "../window_func.h"
@@ -27,6 +28,7 @@
#include "../sortlist_type.h"
#include "../company_base.h"
#include "../company_func.h"
#include "../core/geometry_func.hpp"
#include "table/strings.h"
#include "../table/sprites.h"

View File

@@ -12,6 +12,8 @@
#ifndef NETWORK_GUI_H
#define NETWORK_GUI_H
#include "../company_type.h"
#include "../economy_type.h"
#include "../window_type.h"
#include "network_type.h"

View File

@@ -12,13 +12,7 @@
#ifndef NETWORK_INTERNAL_H
#define NETWORK_INTERNAL_H
#include "network.h"
#include "network_func.h"
#include "network_base.h"
#include "core/os_abstraction.h"
#include "core/core.h"
#include "core/config.h"
#include "core/packet.h"
#include "core/tcp_game.h"
#include "../command_type.h"

View File

@@ -14,12 +14,13 @@
#include "../stdafx.h"
#include "../debug.h"
#include "../strings_func.h"
#include "network_internal.h"
#include "../vehicle_base.h"
#include "../date_func.h"
#include "network_server.h"
#include "network_udp.h"
#include "network.h"
#include "network_base.h"
#include "../console_func.h"
#include "../company_base.h"
#include "../command_func.h"
#include "../saveload/saveload.h"
#include "../station_base.h"

View File

@@ -14,6 +14,8 @@
#ifdef ENABLE_NETWORK
#include "network_internal.h"
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR_QUIT)(NetworkClientSocket *cs, ClientID client_id, NetworkErrorCode errorno);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR)(NetworkClientSocket *cs, NetworkErrorCode error);

View File

@@ -12,9 +12,6 @@
#ifndef NETWORK_TYPE_H
#define NETWORK_TYPE_H
#include "../company_type.h"
#include "../economy_type.h"
#include "core/config.h"
#include "core/game.h"
#ifdef ENABLE_NETWORK

View File

@@ -19,9 +19,11 @@
#include "../stdafx.h"
#include "../date_func.h"
#include "../map_func.h"
#include "../debug.h"
#include "network_gamelist.h"
#include "network_internal.h"
#include "network_udp.h"
#include "network.h"
#include "../core/endian_func.hpp"
#include "../company_base.h"
#include "../thread/thread.h"

View File

@@ -14,6 +14,8 @@
#ifdef ENABLE_NETWORK
#include "core/address.h"
void NetworkUDPInitialize();
void NetworkUDPSearchGame();
void NetworkUDPQueryMasterServer();