Changeset - r15934:789c54d0000d
[Not reviewed]
master
! ! !
rubidium - 14 years ago 2010-08-26 22:01:16
rubidium@openttd.org
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
135 files changed with 42 insertions and 263 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_core.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "../core/bitmath_func.hpp"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../debug.h"
 
#include "../network/network.h"
 
#include "../window_func.h"
 
#include "../command_func.h"
src/ai/ai_gui.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "../openttd.h"
 
#include "../table/sprites.h"
 
#include "../gui.h"
 
#include "../window_gui.h"
 
#include "../querystring_gui.h"
 
#include "../company_func.h"
 
#include "../company_base.h"
 
@@ -23,7 +22,6 @@
 
#include "../gfx_func.h"
 
#include "../command_func.h"
 
#include "../network/network.h"
 
#include "../textbuf_gui.h"
 
#include "../settings_func.h"
 
#include "../network/network_content.h"
 
#include "../core/backup_type.hpp"
src/ai/ai_info.cpp
Show inline comments
 
@@ -11,8 +11,6 @@
 

	
 
#include "../stdafx.h"
 

	
 
#include <squirrel.h>
 
#include "../script/squirrel.hpp"
 
#include "../script/squirrel_helper.hpp"
 
#include "ai_info.hpp"
 
#include "ai_scanner.hpp"
src/ai/ai_instance.cpp
Show inline comments
 
@@ -14,9 +14,6 @@
 
#include "../saveload/saveload.h"
 
#include "../gui.h"
 

	
 
#include <squirrel.h>
 
#include "../script/squirrel.hpp"
 
#include "../script/squirrel_helper.hpp"
 
#include "../script/squirrel_class.hpp"
 

	
 
#include "ai_config.hpp"
src/ai/ai_scanner.cpp
Show inline comments
 
@@ -15,9 +15,6 @@
 
#include "../network/network.h"
 
#include "../core/random_func.hpp"
 

	
 
#include <squirrel.h>
 
#include "../script/squirrel.hpp"
 
#include "../script/squirrel_helper.hpp"
 
#include "../script/squirrel_class.hpp"
 
#include "ai_info.hpp"
 
#include "ai_scanner.hpp"
src/ai/api/ai_basestation.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "ai_basestation.hpp"
 
#include "../../station_base.h"
 
#include "../../command_func.h"
 
#include "../../string_func.h"
 
#include "../../strings_func.h"
 
#include "../../company_func.h"
src/ai/api/ai_gamesettings.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "ai_gamesettings.hpp"
 
#include "../../settings_internal.h"
 
#include "../../economy_func.h"
 

	
 
/* static */ bool AIGameSettings::IsValid(const char *setting)
 
{
src/ai/api/ai_industrytype.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "ai_industrytype.hpp"
 
#include "ai_map.hpp"
 
#include "../../command_type.h"
 
#include "../../strings_func.h"
 
#include "../../industry.h"
 
#include "../../newgrf_industries.h"
src/ai/api/ai_marine.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "ai_station.hpp"
 
#include "../../station_base.h"
 
#include "../../tile_cmd.h"
 
#include "../../economy_func.h"
 

	
 

	
 
/* static */ bool AIMarine::IsWaterDepotTile(TileIndex tile)
src/ai/api/ai_object.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
/** @file ai_object.cpp Implementation of AIObject. */
 

	
 
#include "../../stdafx.h"
 
#include <squirrel.h>
 
#include "../../script/squirrel.hpp"
 
#include "../../company_base.h"
 

	
src/ai/api/ai_rail.cpp
Show inline comments
 
@@ -13,14 +13,12 @@
 
#include "ai_map.hpp"
 
#include "ai_station.hpp"
 
#include "ai_industrytype.hpp"
 
#include "../../command_type.h"
 
#include "../../debug.h"
 
#include "../../station_base.h"
 
#include "../../company_func.h"
 
#include "../../newgrf.h"
 
#include "../../newgrf_generic.h"
 
#include "../../newgrf_station.h"
 
#include "../../economy_func.h"
 

	
 
/* static */ bool AIRail::IsRailTile(TileIndex tile)
 
{
src/ai/api/ai_road.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "ai_station.hpp"
 
#include "ai_cargo.hpp"
 
#include "../../station_base.h"
 
#include "../../command_type.h"
 
#include "../../company_func.h"
 
#include "../../script/squirrel_helper_type.hpp"
 

	
src/ai/api/ai_town.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "ai_cargo.hpp"
 
#include "ai_error.hpp"
 
#include "../../town.h"
 
#include "../../town_type.h"
 
#include "../../strings_func.h"
 
#include "../../company_func.h"
 
#include "../../station_base.h"
src/ai/api/ai_vehicle.cpp
Show inline comments
 
@@ -15,14 +15,12 @@
 
#include "ai_group.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../company_func.h"
 
#include "../../aircraft.h"
 
#include "../../string_func.h"
 
#include "../../strings_func.h"
 
#include "../../command_func.h"
 
#include "../../roadveh.h"
 
#include "../../train.h"
 
#include "../../vehicle_func.h"
 
#include "../../engine_base.h"
 
#include "table/strings.h"
 

	
 
/* static */ bool AIVehicle::IsValidVehicle(VehicleID vehicle_id)
src/aircraft_cmd.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 

	
 
#include "stdafx.h"
 
#include "aircraft.h"
 
#include "debug.h"
 
#include "landscape.h"
 
#include "news_func.h"
 
#include "vehicle_gui.h"
 
@@ -30,18 +29,15 @@
 
#include "functions.h"
 
#include "cheat_type.h"
 
#include "company_base.h"
 
#include "autoreplace_gui.h"
 
#include "ai/ai.hpp"
 
#include "company_func.h"
 
#include "effectvehicle_func.h"
 
#include "station_base.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "core/random_func.hpp"
 
#include "core/backup_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
void Aircraft::UpdateDeltaXY(Direction direction)
 
{
src/aircraft_gui.cpp
Show inline comments
 
@@ -18,7 +18,6 @@
 
#include "window_gui.h"
 
#include "spritecache.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/**
src/airport.cpp
Show inline comments
 
@@ -10,13 +10,6 @@
 
/** @file airport.cpp Functions related to airports. */
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "airport.h"
 
#include "map_type.h"
 
#include "core/alloc_func.hpp"
 
#include "date_func.h"
 
#include "settings_type.h"
 
#include "newgrf_airport.h"
 
#include "station_base.h"
 
#include "table/strings.h"
 
#include "table/airport_movement.h"
src/airport_gui.cpp
Show inline comments
 
@@ -13,12 +13,10 @@
 
#include "window_gui.h"
 
#include "station_gui.h"
 
#include "terraform_gui.h"
 
#include "airport.h"
 
#include "sound_func.h"
 
#include "window_func.h"
 
#include "strings_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "tilehighlight_func.h"
 
#include "company_base.h"
 
@@ -30,7 +28,6 @@
 
#include "hotkeys.h"
 
#include "sprite.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
static AirportClassID _selected_airport_class; ///< the currently visible airport class
src/articulated_vehicles.cpp
Show inline comments
 
@@ -12,9 +12,7 @@
 
#include "stdafx.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "newgrf_engine.h"
 
#include "vehicle_func.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 

	
 
#include "table/strings.h"
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -12,9 +12,7 @@
 
#include "stdafx.h"
 
#include "company_func.h"
 
#include "train.h"
 
#include "rail.h"
 
#include "command_func.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "vehicle_func.h"
 
#include "functions.h"
src/bridge_gui.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 
#include "stdafx.h"
 
#include "gui.h"
 
#include "command_func.h"
 
#include "economy_func.h"
 
#include "bridge.h"
 
#include "rail.h"
 
#include "strings_func.h"
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -29,7 +29,6 @@
 
#include "engine_gui.h"
 
#include "cargotype.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/**
src/command.cpp
Show inline comments
 
@@ -23,7 +23,6 @@
 
#include "functions.h"
 
#include "town.h"
 
#include "date_func.h"
 
#include "debug.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "signal_func.h"
src/company_cmd.cpp
Show inline comments
 
@@ -25,7 +25,6 @@
 
#include "company_manager_face.h"
 
#include "window_func.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "rail.h"
src/company_gui.cpp
Show inline comments
 
@@ -19,7 +19,6 @@
 
#include "network/network.h"
 
#include "network/network_gui.h"
 
#include "network/network_func.h"
 
#include "economy_func.h"
 
#include "vehicle_func.h"
 
#include "newgrf.h"
 
#include "company_manager_face.h"
 
@@ -30,7 +29,8 @@
 
#include "sprite.h"
 
#include "company_base.h"
 
#include "core/geometry_func.hpp"
 
#include "object.h"
 
#include "economy_func.h"
 
#include "object_type.h"
 

	
 
#include "table/strings.h"
 

	
src/console_cmds.cpp
Show inline comments
 
@@ -30,7 +30,6 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "gamelog.h"
 
#include "ai/ai.hpp"
 
#include "ai/ai_config.hpp"
src/date.cpp
Show inline comments
 
@@ -17,7 +17,6 @@
 
#include "settings_type.h"
 
#include "date_func.h"
 
#include "vehicle_base.h"
 
#include "debug.h"
 
#include "rail_gui.h"
 
#include "saveload/saveload.h"
 

	
src/depot_gui.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
/** @file depot_gui.cpp The GUI for depots. */
 

	
 
#include "stdafx.h"
 
#include "engine_base.h"
 
#include "train.h"
 
#include "ship.h"
 
#include "aircraft.h"
 
@@ -21,7 +20,6 @@
 
#include "command_func.h"
 
#include "depot_base.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "spritecache.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
@@ -33,7 +31,6 @@
 
#include "order_backup.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
/*
 
 * Since all depot window sizes aren't the same, we need to modify sizes a little.
src/disaster_cmd.cpp
Show inline comments
 
@@ -25,7 +25,6 @@
 

	
 

	
 
#include "stdafx.h"
 
#include "landscape.h"
 

	
 
#include "industry.h"
 
#include "station_base.h"
 
@@ -46,7 +45,6 @@
 
#include "core/backup_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
/** Delay counter for considering the next disaster. */
 
uint16 _disaster_delay;
src/dock_gui.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tile_map.h"
 
#include "terraform_gui.h"
 
#include "window_gui.h"
 
#include "station_gui.h"
src/economy.cpp
Show inline comments
 
@@ -22,7 +22,6 @@
 
#include "aircraft.h"
 
#include "train.h"
 
#include "newgrf_cargo.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
@@ -46,11 +45,9 @@
 
#include "economy_base.h"
 
#include "core/pool_func.hpp"
 
#include "newgrf.h"
 
#include "engine_base.h"
 
#include "core/backup_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/pricebase.h"
 

	
 

	
src/elrail.cpp
Show inline comments
 
@@ -57,18 +57,14 @@
 
#include "stdafx.h"
 
#include "station_map.h"
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "train.h"
 
#include "rail_gui.h"
 
#include "tunnelbridge_map.h"
 
#include "tunnelbridge.h"
 
#include "elrail_func.h"
 
#include "engine_base.h"
 
#include "company_base.h"
 
#include "rail.h"
 
#include "newgrf_railtype.h"
 

	
 
#include "table/sprites.h"
 
#include "table/elrail_data.h"
 

	
 
static inline TLG GetTLG(TileIndex t)
src/fios.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "core/sort_func.hpp"
 
#include "fios.h"
 
#include "fileio_func.h"
 
#include "tar_type.h"
src/fios.h
Show inline comments
 
@@ -12,13 +12,7 @@
 
#ifndef FIOS_H
 
#define FIOS_H
 

	
 
#include "strings_type.h"
 
#include "core/smallvec_type.hpp"
 
#include "core/smallmap_type.hpp"
 
#include "core/enum_type.hpp"
 
#include "gfx_type.h"
 
#include "date_type.h"
 
#include "settings_type.h"
 
#include "company_base.h"
 
#include "newgrf_config.h"
 

	
src/gamelog.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "saveload/saveload.h"
 
#include "core/alloc_func.hpp"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "gamelog_internal.h"
src/genworld.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "landscape.h"
 
#include "company_func.h"
 
#include "thread/thread.h"
 
#include "command_func.h"
 
#include "genworld.h"
 
#include "gfxinit.h"
 
#include "window_func.h"
src/genworld_gui.cpp
Show inline comments
 
@@ -15,7 +15,6 @@
 
#include "debug.h"
 
#include "genworld.h"
 
#include "network/network.h"
 
#include "newgrf_config.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "date_func.h"
src/gfx.cpp
Show inline comments
 
@@ -18,7 +18,6 @@
 
#include "video/video_driver.hpp"
 
#include "strings_func.h"
 
#include "settings_type.h"
 
#include "landscape_type.h"
 
#include "network/network.h"
 
#include "network/network_func.h"
 
#include "thread/thread.h"
src/gfxinit.cpp
Show inline comments
 
@@ -15,7 +15,6 @@
 
#include "3rdparty/md5/md5.h"
 
#include "fontcache.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

	
 
/* The type of set we're replacing */
 
#define SET_TYPE "graphics"
src/ground_vehicle.cpp
Show inline comments
 
@@ -12,8 +12,6 @@
 
#include "stdafx.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "ground_vehicle.hpp"
 
#include "window_type.h"
 
#include "vehicle_gui.h"
 
#include "window_func.h"
 

	
src/group_cmd.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "command_func.h"
 
#include "group.h"
 
#include "train.h"
 
#include "engine_base.h"
 
#include "vehicle_gui.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
src/group_gui.cpp
Show inline comments
 
@@ -21,7 +21,6 @@
 
#include "vehicle_func.h"
 
#include "autoreplace_gui.h"
 
#include "company_func.h"
 
#include "widgets/dropdown_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "tilehighlight_func.h"
 
#include "vehicle_gui_base.h"
src/hotkeys.cpp
Show inline comments
 
@@ -14,9 +14,7 @@
 
#include "hotkeys.h"
 
#include "ini_type.h"
 
#include "string_func.h"
 
#include "gfx_type.h"
 
#include "window_gui.h"
 
#include <string.h>
 

	
 
char *_hotkeys_file;
 

	
src/industry_cmd.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "industry.h"
 
#include "station_base.h"
 
#include "train.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "town.h"
 
@@ -22,9 +21,7 @@
 
#include "cheat_type.h"
 
#include "genworld.h"
 
#include "tree_map.h"
 
#include "newgrf.h"
 
#include "newgrf_cargo.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_debug.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
src/industry_gui.cpp
Show inline comments
 
@@ -21,7 +21,6 @@
 
#include "industry.h"
 
#include "town.h"
 
#include "cheat_type.h"
 
#include "newgrf.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_text.h"
 
#include "newgrf_debug.h"
src/intro_gui.cpp
Show inline comments
 
@@ -20,7 +20,6 @@
 
#include "network/network_content.h"
 
#include "landscape_type.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "fios.h"
 
#include "functions.h"
 
#include "ai/ai_gui.hpp"
src/map.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
 
#include "tile_map.h"
 

	
 
#if defined(_MSC_VER)
src/misc/binaryheap.hpp
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef  BINARYHEAP_HPP
 
#define  BINARYHEAP_HPP
 

	
 
#include "../core/alloc_func.hpp"
 

	
 
/* Enable it if you suspect binary heap doesn't work well */
 
#define BINARYHEAP_CHECK 0
 

	
src/misc/hashtable.hpp
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef  HASHTABLE_HPP
 
#define  HASHTABLE_HPP
 

	
 
#include "../core/math_func.hpp"
 

	
 
template <class Titem_>
 
struct CHashTableSlotT
 
{
src/misc_gui.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
/** @file misc_gui.cpp GUIs for a number of misc windows. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "landscape.h"
 
#include "newgrf_text.h"
src/network/core/tcp_http.cpp
Show inline comments
 
@@ -18,7 +18,6 @@
 
#include "../../rev.h"
 
#include "../network_func.h"
 

	
 
#include "tcp.h"
 
#include "tcp_http.h"
 

	
 
/** List of open HTTP connections. */
src/network/core/tcp_http.h
Show inline comments
 
@@ -14,7 +14,7 @@
 
#ifndef NETWORK_CORE_TCP_HTTP_H
 
#define NETWORK_CORE_TCP_HTTP_H
 

	
 
#include "address.h"
 
#include "tcp.h"
 

	
 
#ifdef ENABLE_NETWORK
 

	
src/network/network_gui.cpp
Show inline comments
 
@@ -26,7 +26,6 @@
 
#include "../widgets/dropdown_func.h"
 
#include "../querystring_gui.h"
 
#include "../sortlist_type.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../core/geometry_func.hpp"
 

	
src/newgrf.cpp
Show inline comments
 
@@ -29,23 +29,19 @@
 
#include "newgrf_house.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_station.h"
 
#include "industry.h"
 
#include "industrytype.h"
 
#include "newgrf_canal.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_townname.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_airporttiles.h"
 
#include "newgrf_airport.h"
 
#include "rev.h"
 
#include "fios.h"
 
#include "rail.h"
 
#include "strings_func.h"
 
#include "date_func.h"
 
#include "string_func.h"
 
#include "network/network.h"
 
#include <map>
 
#include "core/alloc_type.hpp"
 
#include "core/mem_func.hpp"
 
#include "smallmap_gui.h"
 
#include "genworld.h"
 
#include "gui.h"
src/newgrf_airport.cpp
Show inline comments
 
@@ -11,17 +11,11 @@
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "airport.h"
 
#include "newgrf_airport.h"
 
#include "date_func.h"
 
#include "settings_type.h"
 
#include "core/alloc_type.hpp"
 
#include "newgrf.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_text.h"
 
#include "station_base.h"
 
#include "table/strings.h"
 
#include "newgrf_class_func.h"
 

	
 
/**
src/newgrf_airport.h
Show inline comments
 
@@ -12,6 +12,7 @@
 
#ifndef NEWGRF_AIRPORT_H
 
#define NEWGRF_AIRPORT_H
 

	
 
#include "airport.h"
 
#include "date_type.h"
 
#include "map_type.h"
 
#include "newgrf_class.h"
src/newgrf_airporttiles.cpp
Show inline comments
 
@@ -11,23 +11,18 @@
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "airport.h"
 
#include "newgrf.h"
 
#include "newgrf_airporttiles.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_sound.h"
 
#include "animated_tile_func.h"
 
#include "station_base.h"
 
#include "water.h"
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "company_base.h"
 
#include "town.h"
 
#include "functions.h"
 
#include "core/random_func.hpp"
 
#include "table/strings.h"
 
#include "table/airporttiles.h"
 
#include "date_func.h"
 
#include "newgrf_animation_base.h"
 

	
 

	
src/newgrf_animation_base.h
Show inline comments
 
@@ -11,6 +11,13 @@
 

	
 
/* No inclusion guards as this file must only be included from .cpp files. */
 

	
 
#include "animated_tile_func.h"
 
#include "core/random_func.hpp"
 
#include "date_func.h"
 
#include "functions.h"
 
#include "newgrf_animation_type.h"
 
#include "newgrf_callbacks.h"
 

	
 
/**
 
 * Helper class for a unified approach to NewGRF animation.
 
 * @tparam Tbase       Instantiation of this class.
src/newgrf_canal.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_canal.h"
 
#include "water_map.h"
src/newgrf_class_func.h
Show inline comments
 
@@ -9,8 +9,6 @@
 

	
 
/** @file newgrf_class_func.h Implementation of the NewGRF class' functions. */
 

	
 
#include "stdafx.h"
 
#include "core/alloc_func.hpp"
 
#include "newgrf_class.h"
 

	
 
#include "table/strings.h"
src/newgrf_commons.cpp
Show inline comments
 
@@ -17,7 +17,6 @@
 
#include "house.h"
 
#include "industrytype.h"
 
#include "newgrf.h"
 
#include "newgrf_commons.h"
 
#include "clear_map.h"
 
#include "station_map.h"
 
#include "tree_map.h"
src/newgrf_commons.h
Show inline comments
 
@@ -15,7 +15,7 @@
 
#ifndef NEWGRF_COMMONS_H
 
#define NEWGRF_COMMONS_H
 

	
 
#include "tile_cmd.h"
 
#include "tile_type.h"
 

	
 
/** Contextx for tile accesses */
 
enum TileContext {
src/newgrf_config.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "debug.h"
 
#include "3rdparty/md5/md5.h"
 
#include "newgrf.h"
 
#include "gamelog.h"
 
#include "network/network_func.h"
 
#include "gfx_func.h"
 
#include "newgrf_text.h"
src/newgrf_debug_gui.cpp
Show inline comments
 
@@ -14,17 +14,13 @@
 
#include "window_gui.h"
 
#include "window_func.h"
 
#include "fileio_func.h"
 
#include "gfx_func.h"
 
#include "spritecache.h"
 
#include "string_func.h"
 
#include "strings_func.h"
 
#include "textbuf_gui.h"
 
#include "tunnelbridge_map.h"
 

	
 
#include "engine_base.h"
 
#include "house.h"
 
#include "industry.h"
 
#include "rail.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "vehicle_base.h"
src/newgrf_engine.cpp
Show inline comments
 
@@ -16,15 +16,12 @@
 
#include "company_func.h"
 
#include "newgrf.h"
 
#include "newgrf_cargo.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_spritegroup.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "core/random_func.hpp"
 
#include "aircraft.h"
 
#include "core/smallmap_type.hpp"
 
#include "station_base.h"
 
#include "engine_base.h"
 
#include "company_base.h"
 
#include "newgrf_railtype.h"
 

	
src/newgrf_house.cpp
Show inline comments
 
@@ -18,16 +18,11 @@
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_town.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_commons.h"
 
#include "functions.h"
 
#include "company_func.h"
 
#include "animated_tile_func.h"
 
#include "company_base.h"
 
#include "town.h"
 
#include "core/random_func.hpp"
 
#include "sprite.h"
 
#include "genworld.h"
 
#include "date_func.h"
 
#include "newgrf_animation_base.h"
 

	
 
static BuildingCounts<uint32> _building_counts;
src/newgrf_industries.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "industry.h"
 
#include "newgrf.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_text.h"
 
#include "newgrf_town.h"
 
#include "newgrf_cargo.h"
src/newgrf_industries.h
Show inline comments
 
@@ -13,6 +13,7 @@
 
#define NEWGRF_INDUSTRIES_H
 

	
 
#include "command_type.h"
 
#include "company_type.h"
 
#include "newgrf_spritegroup.h"
 

	
 
/** When should the industry(tile) be triggered for random bits? */
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -14,19 +14,15 @@
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "newgrf.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_text.h"
 
#include "industry.h"
 
#include "functions.h"
 
#include "town.h"
 
#include "command_func.h"
 
#include "animated_tile_func.h"
 
#include "water.h"
 
#include "sprite.h"
 
#include "date_func.h"
 
#include "newgrf_animation_base.h"
 

	
 
#include "table/strings.h"
src/newgrf_railtype.cpp
Show inline comments
 
@@ -10,20 +10,11 @@
 
/** @file newgrf_railtype.cpp NewGRF handling of rail types. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "strings_type.h"
 
#include "rail.h"
 
#include "road_map.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_railtype.h"
 
#include "newgrf_spritegroup.h"
 
#include "core/bitmath_func.hpp"
 
#include "date_func.h"
 
#include "depot_base.h"
 
#include "rail_map.h"
 

	
 
static uint32 RailTypeGetRandomBits(const ResolverObject *object)
 
{
src/newgrf_spritegroup.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "newgrf.h"
 
#include "newgrf_spritegroup.h"
 
#include "sprite.h"
 
#include "core/bitmath_func.hpp"
 
#include "core/pool_func.hpp"
 

	
 
SpriteGroupPool _spritegroup_pool("SpriteGroup");
src/newgrf_spritegroup.h
Show inline comments
 
@@ -15,7 +15,6 @@
 
#include "town_type.h"
 
#include "gfx_type.h"
 
#include "engine_type.h"
 
#include "tile_type.h"
 
#include "core/pool_type.hpp"
 
#include "house_type.h"
 

	
src/newgrf_station.cpp
Show inline comments
 
@@ -15,24 +15,18 @@
 
#include "waypoint_base.h"
 
#include "roadstop_base.h"
 
#include "newgrf_cargo.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_station.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_railtype.h"
 
#include "town.h"
 
#include "newgrf_town.h"
 
#include "date_func.h"
 
#include "company_func.h"
 
#include "animated_tile_func.h"
 
#include "functions.h"
 
#include "tunnelbridge_map.h"
 
#include "newgrf.h"
 
#include "core/random_func.hpp"
 
#include "newgrf_animation_base.h"
 
#include "newgrf_class_func.h"
 

	
 
#include "table/strings.h"
 

	
 
template <typename Tspec, typename Tid, Tid Tmax>
 
/* static */ void NewGRFClass<Tspec, Tid, Tmax>::InsertDefaults()
src/object_cmd.cpp
Show inline comments
 
@@ -18,10 +18,8 @@
 
#include "bridge_map.h"
 
#include "genworld.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "company_gui.h"
 
#include "cheat_type.h"
 
#include "landscape_type.h"
 
@@ -35,7 +33,6 @@
 
#include "date_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/object_land.h"
 

	
 
ObjectPool _object_pool("Object");
src/object_map.h
Show inline comments
 
@@ -12,7 +12,6 @@
 
#ifndef OBJECT_MAP_H
 
#define OBJECT_MAP_H
 

	
 
#include "tile_map.h"
 
#include "water_map.h"
 
#include "object_type.h"
 

	
src/openttd.cpp
Show inline comments
 
@@ -23,7 +23,6 @@
 

	
 
#include "base_media_base.h"
 
#include "saveload/saveload.h"
 
#include "landscape.h"
 
#include "company_func.h"
 
#include "command_func.h"
 
#include "news_func.h"
 
@@ -55,15 +54,12 @@
 
#include "thread/thread.h"
 
#include "station_base.h"
 
#include "crashlog.h"
 
#include "company_base.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "core/random_func.hpp"
 
#include "rail_gui.h"
 
#include "core/backup_type.hpp"
 
#include "hotkeys.h"
 

	
 
#include "newgrf_commons.h"
 

	
 
#include "town.h"
 
#include "industry.h"
src/order_backup.cpp
Show inline comments
 
@@ -15,9 +15,7 @@
 
#include "network/network.h"
 
#include "network/network_func.h"
 
#include "order_backup.h"
 
#include "order_base.h"
 
#include "vehicle_base.h"
 
#include "settings_type.h"
 

	
 
OrderBackupPool _order_backup_pool("BackupOrder");
 
INSTANTIATE_POOL_METHODS(OrderBackup)
src/order_backup.h
Show inline comments
 
@@ -13,11 +13,11 @@
 
#define ORDER_BACKUP_H
 

	
 
#include "core/pool_type.hpp"
 
#include "date_type.h"
 
#include "group_type.h"
 
#include "order_type.h"
 
#include "vehicle_type.h"
 
#include "tile_type.h"
 
#include "group_type.h"
 
#include "company_type.h"
 
#include "vehicle_type.h"
 

	
 
/** Unique identifier for an order backup. */
 
typedef uint8 OrderBackupID;
src/order_gui.cpp
Show inline comments
 
@@ -12,11 +12,10 @@
 
#include "stdafx.h"
 
#include "command_func.h"
 
#include "viewport_func.h"
 
#include "depot_base.h"
 
#include "depot_map.h"
 
#include "vehicle_gui.h"
 
#include "roadveh.h"
 
#include "timetable.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
@@ -31,7 +30,6 @@
 
#include "core/geometry_func.hpp"
 
#include "hotkeys.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/** Widget numbers of the order window. */
src/pathfinder/npf/npf.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "../../stdafx.h"
 
#include "../../debug.h"
 
#include "../../landscape.h"
 
#include "../../network/network.h"
 
#include "../../functions.h"
 
#include "../../ship.h"
src/pathfinder/yapf/yapf.h
Show inline comments
 
@@ -13,7 +13,6 @@
 
#define  YAPF_H
 

	
 
#include "../../direction_type.h"
 
#include "../../station_type.h"
 
#include "../../track_type.h"
 
#include "../../vehicle_type.h"
 
#include "../pathfinder_type.h"
src/rail_cmd.cpp
Show inline comments
 
@@ -11,17 +11,12 @@
 

	
 
#include "stdafx.h"
 
#include "cmd_helper.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "engine_base.h"
 
#include "depot_base.h"
 
#include "pathfinder/yapf/yapf_cache.h"
 
#include "newgrf_engine.h"
 
#include "landscape_type.h"
 
#include "newgrf_debug.h"
 
#include "newgrf_railtype.h"
 
#include "newgrf_commons.h"
 
#include "train.h"
 
#include "autoslope.h"
 
#include "water.h"
 
@@ -39,7 +34,6 @@
 
#include "date_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/railtypes.h"
 
#include "table/track_land.h"
 

	
src/rail_gui.cpp
Show inline comments
 
@@ -35,7 +35,6 @@
 
#include "station_map.h"
 
#include "tunnelbridge_map.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
static RailType _cur_railtype;               ///< Rail type of the current build-rail toolbar.
src/rail_gui.h
Show inline comments
 
@@ -14,7 +14,7 @@
 

	
 
#include "rail_type.h"
 

	
 
Window *ShowBuildRailToolbar(RailType railtype);
 
struct Window *ShowBuildRailToolbar(RailType railtype);
 
void ReinitGuiAfterToggleElrail(bool disable);
 
bool ResetSignalVariant(int32 = 0);
 
void InitializeRailGUI();
src/road_cmd.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 
#include "stdafx.h"
 
#include "cmd_helper.h"
 
#include "road_internal.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "pathfinder/yapf/yapf_cache.h"
src/road_gui.cpp
Show inline comments
 
@@ -17,7 +17,6 @@
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "road_cmd.h"
 
#include "road_map.h"
 
#include "station_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
@@ -30,7 +29,6 @@
 
#include "company_base.h"
 
#include "hotkeys.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
static void ShowRVStationPicker(Window *parent, RoadStopType rs);
src/road_gui.h
Show inline comments
 
@@ -14,7 +14,7 @@
 

	
 
#include "road_type.h"
 

	
 
Window *ShowBuildRoadToolbar(RoadType roadtype);
 
Window *ShowBuildRoadScenToolbar();
 
struct Window *ShowBuildRoadToolbar(RoadType roadtype);
 
struct Window *ShowBuildRoadScenToolbar();
 

	
 
#endif /* ROAD_GUI_H */
src/roadstop.cpp
Show inline comments
 
@@ -15,7 +15,6 @@
 
#include "roadstop_base.h"
 
#include "station_base.h"
 
#include "vehicle_func.h"
 
#include "landscape.h"
 

	
 
RoadStopPool _roadstop_pool("RoadStop");
 
INSTANTIATE_POOL_METHODS(RoadStop)
src/roadveh.h
Show inline comments
 
@@ -12,11 +12,11 @@
 
#ifndef ROADVEH_H
 
#define ROADVEH_H
 

	
 
#include "road_type.h"
 
#include "ground_vehicle.hpp"
 
#include "engine_base.h"
 
#include "cargotype.h"
 
#include "road_map.h"
 
#include "track_func.h"
 
#include "road_type.h"
 

	
 
struct RoadVehicle;
 

	
src/roadveh_cmd.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
/** @file roadveh_cmd.cpp Handling of road vehicles. */
 

	
 
#include "stdafx.h"
 
#include "landscape.h"
 
#include "roadveh.h"
 
#include "command_func.h"
 
#include "news_func.h"
 
@@ -29,22 +28,17 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "autoreplace_gui.h"
 
#include "ai/ai.hpp"
 
#include "depot_map.h"
 
#include "effectvehicle_func.h"
 
#include "effectvehicle_base.h"
 
#include "roadstop_base.h"
 
#include "cargotype.h"
 
#include "spritecache.h"
 
#include "core/random_func.hpp"
 
#include "engine_base.h"
 
#include "company_base.h"
 
#include "engine_func.h"
 
#include "core/backup_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
static const uint16 _roadveh_images[63] = {
 
	0xCD4, 0xCDC, 0xCE4, 0xCEC, 0xCF4, 0xCFC, 0xD0C, 0xD14,
src/saveload/afterload.cpp
Show inline comments
 
@@ -22,7 +22,6 @@
 
#include "../industry.h"
 
#include "../clear_map.h"
 
#include "../vehicle_func.h"
 
#include "../debug.h"
 
#include "../string_func.h"
 
#include "../date_func.h"
 
#include "../roadveh.h"
 
@@ -31,7 +30,6 @@
 
#include "../waypoint_base.h"
 
#include "../roadstop_base.h"
 
#include "../tunnelbridge_map.h"
 
#include "../landscape.h"
 
#include "../pathfinder/yapf/yapf_cache.h"
 
#include "../elrail_func.h"
 
#include "../signs_func.h"
 
@@ -48,9 +46,7 @@
 
#include "../animated_tile_func.h"
 
#include "../subsidy_base.h"
 
#include "../subsidy_func.h"
 
#include "../company_base.h"
 
#include "../newgrf.h"
 
#include "../engine_base.h"
 
#include "../engine_func.h"
 
#include "../rail_gui.h"
 
#include "../core/backup_type.hpp"
src/saveload/company_sl.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
/** @file company_sl.cpp Code handling saving and loading of company data */
 

	
 
#include "../stdafx.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../company_manager_face.h"
 
#include "../fios.h"
src/saveload/gamelog_sl.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "../stdafx.h"
 
#include "../gamelog_internal.h"
 
#include "../core/alloc_func.hpp"
 

	
 
#include "saveload.h"
 

	
src/saveload/map_sl.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "../stdafx.h"
 
#include "../map_func.h"
 
#include "../core/alloc_type.hpp"
 
#include "../core/bitmath_func.hpp"
 
#include "../fios.h"
 

	
src/saveload/misc_sl.cpp
Show inline comments
 
@@ -18,7 +18,6 @@
 
#include "../window_func.h"
 
#include "../viewport_func.h"
 
#include "../gfx_func.h"
 
#include "../company_base.h"
 
#include "../core/random_func.hpp"
 
#include "../fios.h"
 

	
src/saveload/newgrf_sl.cpp
Show inline comments
 
@@ -10,10 +10,7 @@
 
/** @file newgrf_sl.cpp Code handling saving and loading of newgrf config */
 

	
 
#include "../stdafx.h"
 
#include "../newgrf_config.h"
 
#include "../core/bitmath_func.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "../gfx_func.h"
 
#include "../fios.h"
 

	
 
#include "saveload.h"
src/saveload/oldloader_sl.cpp
Show inline comments
 
@@ -25,9 +25,6 @@
 
#include "../date_func.h"
 
#include "../vehicle_func.h"
 
#include "../effectvehicle_base.h"
 
#include "../core/mem_func.hpp"
 
#include "../core/alloc_type.hpp"
 
#include "../engine_base.h"
 
#include "../engine_func.h"
 
#include "../company_base.h"
 
#include "saveload_internal.h"
src/saveload/saveload.cpp
Show inline comments
 
@@ -40,7 +40,6 @@
 
#include "../gamelog.h"
 
#include "../string_func.h"
 
#include "../engine_base.h"
 
#include "../company_base.h"
 
#include "../fios.h"
 

	
 
#include "table/strings.h"
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -17,7 +17,6 @@
 
#include "../aircraft.h"
 
#include "../station_base.h"
 
#include "../effectvehicle_base.h"
 
#include "../engine_base.h"
 

	
 
#include "saveload.h"
 

	
src/script/script_info.cpp
Show inline comments
 
@@ -11,8 +11,6 @@
 

	
 
#include "../stdafx.h"
 

	
 
#include <squirrel.h>
 
#include "squirrel.hpp"
 
#include "squirrel_helper.hpp"
 

	
 
#include "script_info.hpp"
src/script/script_scanner.cpp
Show inline comments
 
@@ -14,7 +14,6 @@
 
#include "../fileio_func.h"
 
#include <sys/stat.h>
 

	
 
#include <squirrel.h>
 
#include "../script/squirrel.hpp"
 
#include "script_scanner.hpp"
 

	
src/script/squirrel.cpp
Show inline comments
 
@@ -9,11 +9,9 @@
 

	
 
/** @file squirrel.cpp the implementation of the Squirrel class. It handles all Squirrel-stuff and gives a nice API back to work with. */
 

	
 
#include <squirrel.h>
 
#include <stdarg.h>
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "squirrel.hpp"
 
#include "squirrel_std.hpp"
 
#include "../fileio_func.h"
 
#include <sqstdaux.h>
src/script/squirrel.hpp
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef SQUIRREL_HPP
 
#define SQUIRREL_HPP
 

	
 
#include <squirrel.h>
 

	
 
class Squirrel {
 
private:
 
	typedef void (SQPrintFunc)(bool error_msg, const SQChar *message);
src/script/squirrel_class.hpp
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef SQUIRREL_CLASS_HPP
 
#define SQUIRREL_CLASS_HPP
 

	
 
#include "squirrel_helper.hpp"
 

	
 
/**
 
 * The template to define classes in Squirrel. It takes care of the creation
 
 *  and calling of such classes, to make the AI Layer cleaner while having a
src/script/squirrel_helper.hpp
Show inline comments
 
@@ -12,7 +12,7 @@
 
#ifndef SQUIRREL_HELPER_HPP
 
#define SQUIRREL_HELPER_HPP
 

	
 
#include <squirrel.h>
 
#include "squirrel.hpp"
 
#include "../core/math_func.hpp"
 
#include "../core/smallvec_type.hpp"
 
#include "../economy_type.h"
src/script/squirrel_std.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include <sqstdmath.h>
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "squirrel.hpp"
 
#include "squirrel_std.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "../core/math_func.hpp"
src/script/squirrel_std.hpp
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef SQUIRREL_STD_HPP
 
#define SQUIRREL_STD_HPP
 

	
 
#include "squirrel.hpp"
 

	
 
#if defined(__APPLE__)
 
/* Which idiotic system makes 'require' a macro? :s Oh well.... */
 
#undef require
src/settings.cpp
Show inline comments
 
@@ -61,8 +61,6 @@
 
#include "ai/ai.hpp"
 
#include "newgrf.h"
 
#include "ship.h"
 
#include "company_base.h"
 
#include "engine_base.h"
 
#include "smallmap_gui.h"
 
#include "roadveh.h"
 
#include "fios.h"
src/settings_gui.cpp
Show inline comments
 
@@ -32,7 +32,6 @@
 
#include "viewport_func.h"
 
#include "core/geometry_func.hpp"
 
#include "ai/ai.hpp"
 
#include <map>
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/ship_cmd.cpp
Show inline comments
 
@@ -30,18 +30,15 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "autoreplace_gui.h"
 
#include "effectvehicle_func.h"
 
#include "effectvehicle_base.h"
 
#include "ai/ai.hpp"
 
#include "pathfinder/opf/opf_ship.h"
 
#include "landscape_type.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "company_base.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
static const uint16 _ship_sprites[] = {0x0E5D, 0x0E55, 0x0E65, 0x0E6D};
 

	
src/signal_type.h
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef SIGNAL_TYPE_H
 
#define SIGNAL_TYPE_H
 

	
 
#include "core/enum_type.hpp"
 

	
 
/** Variant of the signal, i.e. how does the signal look? */
 
enum SignalVariant {
 
	SIG_ELECTRIC  = 0, ///< Light signal
src/smallmap_gui.cpp
Show inline comments
 
@@ -28,7 +28,6 @@
 
#include "company_base.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
/** Widget numbers of the small map window. */
 
enum SmallMapWindowWidgets {
src/sprite.cpp
Show inline comments
 
@@ -11,12 +11,10 @@
 

	
 
#include "stdafx.h"
 
#include "sprite.h"
 
#include "tile_cmd.h"
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "spritecache.h"
 

	
 
#include "table/sprites.h"
 

	
 
/**
 
 * Draws a tile sprite sequence.
src/sprite.h
Show inline comments
 
@@ -12,7 +12,6 @@
 
#ifndef SPRITE_H
 
#define SPRITE_H
 

	
 
#include "gfx_type.h"
 
#include "transparency.h"
 

	
 
#include "table/sprites.h"
src/station_base.h
Show inline comments
 
@@ -13,7 +13,6 @@
 
#define STATION_BASE_H
 

	
 
#include "base_station_base.h"
 
#include "airport.h"
 
#include "newgrf_airport.h"
 
#include "cargopacket.h"
 
#include "industry_type.h"
src/station_cmd.cpp
Show inline comments
 
@@ -13,7 +13,6 @@
 
#include "aircraft.h"
 
#include "bridge_map.h"
 
#include "cmd_helper.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "town.h"
 
@@ -46,7 +45,6 @@
 
#include "debug.h"
 
#include "core/random_func.hpp"
 
#include "company_base.h"
 
#include "newgrf.h"
 
#include "table/airporttile_ids.h"
 
#include "newgrf_airporttiles.h"
 
#include "order_backup.h"
src/station_gui.cpp
Show inline comments
 
@@ -30,7 +30,6 @@
 
#include "core/geometry_func.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
/**
 
 * Draw a (multi)line of cargos seperated by commas, and prefixed with a string.
src/strings.cpp
Show inline comments
 
@@ -34,7 +34,6 @@
 
#include "townname_func.h"
 
#include "string_func.h"
 
#include "company_base.h"
 
#include "industrytype.h"
 
#include "smallmap_gui.h"
 

	
 
#include "table/strings.h"
src/terraform_gui.cpp
Show inline comments
 
@@ -22,7 +22,7 @@
 
#include "functions.h"
 
#include "sound_func.h"
 
#include "base_station_base.h"
 
#include "object_map.h"
 
#include "object_type.h"
 
#include "textbuf_gui.h"
 
#include "genworld.h"
 
#include "tree_map.h"
 
@@ -31,7 +31,6 @@
 
#include "strings_func.h"
 
#include "hotkeys.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
void CcTerraform(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
src/tile_map.cpp
Show inline comments
 
@@ -11,7 +11,6 @@
 

	
 
#include "stdafx.h"
 
#include "tile_map.h"
 
#include "core/math_func.hpp"
 

	
 
/**
 
 * Return the slope of a given tile
src/tilearea.cpp
Show inline comments
 
@@ -11,8 +11,7 @@
 

	
 
#include "stdafx.h"
 

	
 
#include "tile_map.h"
 
#include "core/math_func.hpp"
 
#include "map_func.h"
 
#include "tilearea_type.h"
 

	
 
/**
src/toolbar_gui.cpp
Show inline comments
 
@@ -39,7 +39,6 @@
 
#include "tilehighlight_func.h"
 
#include "rail.h"
 
#include "widgets/dropdown_type.h"
 
#include "company_base.h"
 
#include "smallmap_gui.h"
 
#include "graph_gui.h"
 
#include "textbuf_gui.h"
src/town_cmd.cpp
Show inline comments
 
@@ -25,7 +25,6 @@
 
#include "genworld.h"
 
#include "newgrf_debug.h"
 
#include "newgrf_house.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_text.h"
 
#include "newgrf_config.h"
 
#include "autoslope.h"
 
@@ -39,7 +38,6 @@
 
#include "animated_tile_func.h"
 
#include "date_func.h"
 
#include "subsidy_func.h"
 
#include "core/smallmap_type.hpp"
 
#include "core/pool_func.hpp"
 
#include "town.h"
 
#include "townname_func.h"
src/train_cmd.cpp
Show inline comments
 
@@ -18,17 +18,14 @@
 
#include "news_func.h"
 
#include "company_func.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_text.h"
 
#include "group.h"
 
#include "table/sprites.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "autoreplace_gui.h"
 
#include "ai/ai.hpp"
 
#include "newgrf_station.h"
 
#include "effectvehicle_func.h"
 
@@ -38,8 +35,6 @@
 
#include "spritecache.h"
 
#include "core/random_func.hpp"
 
#include "company_base.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "newgrf.h"
 
#include "order_backup.h"
 

	
src/train_gui.cpp
Show inline comments
 
@@ -17,9 +17,7 @@
 
#include "train.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "engine_base.h"
 
#include "window_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/transport_type.h
Show inline comments
 
@@ -12,6 +12,8 @@
 
#ifndef TRANSPORT_TYPE_H
 
#define TRANSPORT_TYPE_H
 

	
 
#include "core/enum_type.hpp"
 

	
 
typedef uint16 UnitID;
 

	
 
/** Available types of transport */
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -14,8 +14,6 @@
 
 */
 

	
 
#include "stdafx.h"
 
#include "rail_map.h"
 
#include "landscape.h"
 
#include "object.h"
 
#include "viewport_func.h"
 
#include "cmd_helper.h"
 
@@ -37,10 +35,8 @@
 
#include "tunnelbridge.h"
 
#include "cheat_type.h"
 
#include "elrail_func.h"
 
#include "landscape_type.h"
 
#include "pbs.h"
 
#include "company_base.h"
 
#include "engine_base.h"
 
#include "newgrf_railtype.h"
 

	
 
#include "table/sprites.h"
src/vehicle.cpp
Show inline comments
 
@@ -11,11 +11,9 @@
 

	
 
#include "stdafx.h"
 
#include "gui.h"
 
#include "debug.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "spritecache.h"
 
#include "landscape.h"
 
#include "timetable.h"
 
#include "viewport_func.h"
 
#include "news_func.h"
 
@@ -25,7 +23,6 @@
 
#include "train.h"
 
#include "aircraft.h"
 
#include "newgrf_debug.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_station.h"
 
#include "group.h"
 
@@ -40,7 +37,6 @@
 
#include "autoreplace_gui.h"
 
#include "station_base.h"
 
#include "ai/ai.hpp"
 
#include "core/smallmap_type.hpp"
 
#include "depot_func.h"
 
#include "network/network.h"
 
#include "core/pool_func.hpp"
 
@@ -48,12 +44,9 @@
 
#include "articulated_vehicles.h"
 
#include "roadstop_base.h"
 
#include "core/random_func.hpp"
 
#include "engine_base.h"
 
#include "newgrf.h"
 
#include "core/backup_type.hpp"
 
#include "order_backup.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
#define GEN_HASH(x, y) ((GB((y), 6, 6) << 6) + GB((x), 7, 6))
src/vehicle_cmd.cpp
Show inline comments
 
@@ -19,7 +19,6 @@
 
#include "vehicle_gui.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_text.h"
 
#include "functions.h"
 
#include "window_func.h"
 
@@ -27,7 +26,6 @@
 
#include "string_func.h"
 
#include "depot_map.h"
 
#include "vehiclelist.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "articulated_vehicles.h"
 
#include "autoreplace_gui.h"
src/vehicle_gui.cpp
Show inline comments
 
@@ -18,14 +18,12 @@
 
#include "vehicle_gui.h"
 
#include "vehicle_gui_base.h"
 
#include "viewport_func.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_text.h"
 
#include "newgrf_debug.h"
 
#include "waypoint_base.h"
 
#include "roadveh.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "depot_base.h"
 
#include "depot_map.h"
 
#include "group_gui.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
@@ -36,16 +34,12 @@
 
#include "timetable.h"
 
#include "vehiclelist.h"
 
#include "articulated_vehicles.h"
 
#include "cargotype.h"
 
#include "spritecache.h"
 
#include "core/geometry_func.hpp"
 
#include "company_base.h"
 
#include "engine_base.h"
 
#include "engine_func.h"
 
#include "newgrf.h"
 
#include "station_base.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
Sorting _sorting;
src/viewport.cpp
Show inline comments
 
@@ -46,7 +46,6 @@
 
#include "tilehighlight_func.h"
 
#include "window_gui.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
PlaceProc *_place_proc;
src/water_cmd.cpp
Show inline comments
 
@@ -37,7 +37,6 @@
 
#include "core/backup_type.hpp"
 
#include "date_func.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/**
src/water_map.h
Show inline comments
 
@@ -12,7 +12,6 @@
 
#ifndef WATER_MAP_H
 
#define WATER_MAP_H
 

	
 
#include "core/math_func.hpp"
 
#include "depot_type.h"
 
#include "tile_map.h"
 

	
src/widget_type.h
Show inline comments
 
@@ -14,6 +14,7 @@
 

	
 
#include "core/alloc_type.hpp"
 
#include "core/bitmath_func.hpp"
 
#include "core/math_func.hpp"
 
#include "strings_type.h"
 
#include "gfx_type.h"
 
#include "window_type.h"
src/window_gui.h
Show inline comments
 
@@ -12,7 +12,6 @@
 
#ifndef WINDOW_GUI_H
 
#define WINDOW_GUI_H
 

	
 
#include "core/math_func.hpp"
 
#include "vehicle_type.h"
 
#include "viewport_type.h"
 
#include "company_type.h"
0 comments (0 inline, 0 general)