@ -17,6 +17,7 @@
#include "core/geometry_type.hpp"
#include "core/tinystring_type.hpp"
#include <memory>
#include <vector>
typedef Pool<BaseStation, StationID, 32, 64000> StationPool;
extern StationPool _station_pool;
@ -15,6 +15,7 @@
#include "string_type.h"
#include "core/serialisation.hpp"
#include <optional>
struct CommandDeserialisationBuffer : public BufferDeserialisationHelper<CommandDeserialisationBuffer> {
const uint8 *buffer;
@ -9,6 +9,7 @@
#ifndef SMALLSTACK_TYPE_HPP
#define SMALLSTACK_TYPE_HPP
/**
* A simplified pool which stores values instead of pointers and doesn't
#include "station_base.h"
#include "order_base.h"
#include "vehicle_base.h"
/** Whether or not a vehicle has arrived for a departure. */
typedef enum {
#include "newgrf_commons.h"
#include "3rdparty/cpp-btree/btree_map.h"
struct WagonOverride {
std::vector<EngineID> engines;
@ -14,6 +14,7 @@
#include "company_base.h"
#include "newgrf_config.h"
#include "network/core/tcp_content_type.h"
/** Special values for save-load window for the data parameter of #InvalidateWindowData. */
@ -11,6 +11,7 @@
#define GAMELOG_H
struct LoggedAction;
@ -42,6 +42,7 @@
#include "gfx_type.h"
#include "strings_type.h"
void GameLoop();
@ -12,6 +12,7 @@
#include "tile_cmd.h"
static const uint SNOW_LINE_MONTHS = 12; ///< Number of months in the snow line table.
static const uint SNOW_LINE_DAYS = 32; ///< Number of days in each month in the snow line table.
#include <unicode/coll.h>
#endif /* WITH_ICU_I18N */
static const uint8 CASE_GENDER_LEN = 16; ///< The (maximum) length of a case/gender string.
static const uint8 MAX_NUM_GENDERS = 8; ///< Maximum number of supported genders.
@ -4,6 +4,7 @@
#define DEMANDS_H
#include "linkgraphjob_base.h"
* Calculate the demands. This class has a state, but is recreated for each
@ -19,6 +19,7 @@
#include "linkgraph_type.h"
#include "../3rdparty/cpp-btree/btree_map.h"
#include <utility>
class LinkGraph;
@ -13,6 +13,7 @@
#include "../thread.h"
#include "linkgraph.h"
class LinkGraphJob;
#include <map>
#include <string>
class NetworkAddress;
typedef std::vector<NetworkAddress> NetworkAddressList; ///< Type for a list of addresses.
@ -20,6 +20,7 @@
#include <functional>
#include <limits>
typedef uint16 PacketSize; ///< Size of the whole packet.
typedef uint8 PacketType; ///< Identifier for the packet
#include <deque>
#include <thread>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.thread.h"
#define NETWORK_CORE_TCP_CONTENT_TYPE_H
#include "../../3rdparty/md5/md5.h"
/** The values in the enum are important; they are used as database 'keys' */
enum ContentType {
#include "core/http.h"
#include "../core/container_func.hpp"
/** Vector with content info */
typedef std::vector<ContentInfo *> ContentVector;
#define NETWORK_QUERY_H
#include "network_internal.h"
/** Class for handling the client side of quering a game server. */
class QueryNetworkGameSocketHandler : public ZeroedMemoryAllocator, public NetworkGameSocketHandler {
#include "core/mem_func.hpp"
#include <bitset>
* List of different canal 'features'.
@ -18,6 +18,7 @@
#include "command_type.h"
#include "direction_type.h"
#include "company_type.h"
/** Context for tile accesses */
enum TileContext : uint8 {
#include "newgrf.h"
#include "tile_type.h"
#include "vehicle_type.h"
/** Current state of spritepicker */
enum NewGrfDebugSpritePickerMode {
/** Base GRF ID for OpenTTD's base graphics GRFs. */
static const uint32 OPENTTD_GRAPHICS_BASE_GRF_ID = BSWAP32(0xFF4F5400);
#include "newgrf_spritegroup.h"
extern std::vector<const GRFFile *> _new_landscape_rocks_grfs;
#include "newgrf_animation_type.h"
#include "newgrf_class.h"
/** Various object behaviours. */
enum ObjectFlags : uint16 {
@ -23,6 +23,7 @@
#include "3rdparty/cpp-btree/btree_set.h"
* Gets the value of a so-called newgrf "register".
#include "rail_type.h"
#include "newgrf_town.h"
/** Scope resolver for stations. */
struct StationScopeResolver : public ScopeResolver {
#include "tilearea_type.h"
#include "town_type.h"
#include "date_type.h"
typedef Pool<Object, ObjectID, 64, 0xFF0000> ObjectPool;
extern ObjectPool _object_pool;
#include "base_consist.h"
#include "sl/saveload_common.h"
/** Unique identifier for an order backup. */
typedef uint8 OrderBackupID;
#include "tracerestrict.h"
#include "core/container_func.hpp"
/** @defgroup progsigs Programmable Pre-Signals */
///@{
@ -21,6 +21,7 @@
#include "signal_type.h"
#include "rail_map.h"
#include "settings_type.h"
/** Railtype flags. */
enum RailTypeFlags {
#include "sl/saveload_types.h"
enum SettingFlag : uint32 {
SF_NONE = 0,
@ -19,7 +19,6 @@
#include <stdarg.h>
/** Save or load result codes. */
enum SaveOrLoadResult {
#include "linkgraph/linkgraph_gui.h"
#include "widgets/smallmap_widget.h"
#include "guitimer_func.h"
static const int NUM_NO_COMPANY_ENTRIES = 4; ///< Number of entries in the owner legend that are not companies.
#include "core/bitmath_func.hpp"
/** Flags of the sort list. */
enum SortListFlags {
#define STRINGFILTER_TYPE_H
* String filter and state.
#include "textfile_type.h"
#include "window_gui.h"
const char *GetTextfile(TextfileType type, Subdirectory dir, const char *filename);
@ -28,6 +28,7 @@
#include <list>
CommandCost CmdRefitVehicle(TileIndex, DoCommandFlag, uint32, uint32, const char*);
#include "track_type.h"
#include "livery.h"
#include "cargo_type.h"
#define is_custom_sprite(x) (x >= 0xFD)
#define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD)
#include "engine_type.h"
#include "widgets/dropdown_func.h"
void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *parent, bool auto_refit = false, bool is_virtual_train = false);
/** Vehicle List type flags */
enum VehicleListType {
@ -16,6 +16,7 @@
#endif
#include "video_driver.hpp"
/** The SDL video driver. */
class VideoDriver_SDL_Base : public VideoDriver {
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
/** Base class for Windows video drivers. */
class VideoDriver_Win32Base : public VideoDriver {
@ -7,13 +7,13 @@
/** @file viewport_sprite_sorter.h Types related to sprite sorting. */
#include "stdafx.h"
#ifndef VIEWPORT_SPRITE_SORTER_H
#define VIEWPORT_SPRITE_SORTER_H
/** Parent sprite that should be drawn */
#ifdef _MSC_VER
struct __declspec(align(16)) ParentSpriteToDraw {
#include "../window_type.h"
#include "../gfx_func.h"
#include "table/strings.h"
enum DropDownSyncFocus {
DDSF_NONE = 0,
#include <algorithm>
* Flags to describe the look of the frame