Add various missing includes

pull/564/head
Jonathan G Rennison 11 months ago
parent c0d47da4a7
commit d75c489466

@ -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>
#include <vector>
struct CommandDeserialisationBuffer : public BufferDeserialisationHelper<CommandDeserialisationBuffer> {
const uint8 *buffer;

@ -9,6 +9,7 @@
#ifndef SMALLSTACK_TYPE_HPP
#define SMALLSTACK_TYPE_HPP
#include <vector>
/**
* A simplified pool which stores values instead of pointers and doesn't

@ -15,6 +15,7 @@
#include "station_base.h"
#include "order_base.h"
#include "vehicle_base.h"
#include <vector>
/** Whether or not a vehicle has arrived for a departure. */
typedef enum {

@ -17,6 +17,7 @@
#include "newgrf_commons.h"
#include "3rdparty/cpp-btree/btree_map.h"
#include <vector>
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"
#include <vector>
/** Special values for save-load window for the data parameter of #InvalidateWindowData. */

@ -11,6 +11,7 @@
#define GAMELOG_H
#include "newgrf_config.h"
#include <vector>
struct LoggedAction;

@ -42,6 +42,7 @@
#include "gfx_type.h"
#include "strings_type.h"
#include "string_type.h"
#include <vector>
void GameLoop();

@ -12,6 +12,7 @@
#include "core/geometry_type.hpp"
#include "tile_cmd.h"
#include <vector>
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.

@ -14,6 +14,7 @@
#include <unicode/coll.h>
#endif /* WITH_ICU_I18N */
#include "strings_type.h"
#include <vector>
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"
#include <vector>
/**
* 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>
#include <vector>
class LinkGraph;

@ -13,6 +13,7 @@
#include "../thread.h"
#include "linkgraph.h"
#include <memory>
#include <vector>
class LinkGraphJob;

@ -17,6 +17,7 @@
#include <map>
#include <string>
#include <vector>
class NetworkAddress;
typedef std::vector<NetworkAddress> NetworkAddressList; ///< Type for a list of addresses.

@ -20,6 +20,7 @@
#include <string>
#include <functional>
#include <limits>
#include <vector>
typedef uint16 PacketSize; ///< Size of the whole packet.
typedef uint8 PacketType; ///< Identifier for the packet

@ -20,6 +20,7 @@
#include <deque>
#include <map>
#include <memory>
#include <vector>
#include <thread>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.thread.h"

@ -13,6 +13,7 @@
#define NETWORK_CORE_TCP_CONTENT_TYPE_H
#include "../../3rdparty/md5/md5.h"
#include <vector>
/** The values in the enum are important; they are used as database 'keys' */
enum ContentType {

@ -14,6 +14,7 @@
#include "core/http.h"
#include "../core/container_func.hpp"
#include "../3rdparty/cpp-btree/btree_map.h"
#include <vector>
/** Vector with content info */
typedef std::vector<ContentInfo *> ContentVector;

@ -11,6 +11,7 @@
#define NETWORK_QUERY_H
#include "network_internal.h"
#include <vector>
/** Class for handling the client side of quering a game server. */
class QueryNetworkGameSocketHandler : public ZeroedMemoryAllocator, public NetworkGameSocketHandler {

@ -20,6 +20,7 @@
#include "core/mem_func.hpp"
#include "3rdparty/cpp-btree/btree_map.h"
#include <bitset>
#include <vector>
/**
* List of different canal 'features'.

@ -18,6 +18,7 @@
#include "command_type.h"
#include "direction_type.h"
#include "company_type.h"
#include <vector>
/** Context for tile accesses */
enum TileContext : uint8 {

@ -13,6 +13,7 @@
#include "newgrf.h"
#include "tile_type.h"
#include "vehicle_type.h"
#include <vector>
/** Current state of spritepicker */
enum NewGrfDebugSpritePickerMode {

@ -19,6 +19,7 @@
#include "3rdparty/cpp-btree/btree_map.h"
#include <bitset>
#include <vector>
/** Base GRF ID for OpenTTD's base graphics GRFs. */
static const uint32 OPENTTD_GRAPHICS_BASE_GRF_ID = BSWAP32(0xFF4F5400);

@ -12,6 +12,7 @@
#include "newgrf_commons.h"
#include "newgrf_spritegroup.h"
#include <vector>
extern std::vector<const GRFFile *> _new_landscape_rocks_grfs;

@ -19,6 +19,7 @@
#include "newgrf_animation_type.h"
#include "newgrf_class.h"
#include "newgrf_commons.h"
#include <vector>
/** Various object behaviours. */
enum ObjectFlags : uint16 {

@ -23,6 +23,7 @@
#include "3rdparty/cpp-btree/btree_set.h"
#include <map>
#include <vector>
/**
* Gets the value of a so-called newgrf "register".

@ -19,6 +19,7 @@
#include "rail_type.h"
#include "newgrf_spritegroup.h"
#include "newgrf_town.h"
#include <vector>
/** Scope resolver for stations. */
struct StationScopeResolver : public ScopeResolver {

@ -15,6 +15,7 @@
#include "tilearea_type.h"
#include "town_type.h"
#include "date_type.h"
#include <vector>
typedef Pool<Object, ObjectID, 64, 0xFF0000> ObjectPool;
extern ObjectPool _object_pool;

@ -17,6 +17,7 @@
#include "base_consist.h"
#include "order_base.h"
#include "sl/saveload_common.h"
#include <vector>
/** Unique identifier for an order backup. */
typedef uint8 OrderBackupID;

@ -13,6 +13,7 @@
#include "tracerestrict.h"
#include "core/container_func.hpp"
#include <map>
#include <vector>
/** @defgroup progsigs Programmable Pre-Signals */
///@{

@ -21,6 +21,7 @@
#include "signal_type.h"
#include "rail_map.h"
#include "settings_type.h"
#include <vector>
/** Railtype flags. */
enum RailTypeFlags {

@ -13,6 +13,7 @@
#include "sl/saveload_types.h"
#include <functional>
#include <vector>
enum SettingFlag : uint32 {
SF_NONE = 0,

@ -19,7 +19,6 @@
#include <stdarg.h>
#include <vector>
#include <string>
#include <vector>
/** Save or load result codes. */
enum SaveOrLoadResult {

@ -18,6 +18,7 @@
#include "linkgraph/linkgraph_gui.h"
#include "widgets/smallmap_widget.h"
#include "guitimer_func.h"
#include <vector>
static const int NUM_NO_COMPANY_ENTRIES = 4; ///< Number of entries in the owner legend that are not companies.

@ -14,6 +14,7 @@
#include "core/bitmath_func.hpp"
#include "core/mem_func.hpp"
#include "date_type.h"
#include <vector>
/** Flags of the sort list. */
enum SortListFlags {

@ -11,6 +11,7 @@
#define STRINGFILTER_TYPE_H
#include "strings_type.h"
#include <vector>
/**
* String filter and state.

@ -15,6 +15,7 @@
#include "textfile_type.h"
#include "window_gui.h"
#include <optional>
#include <vector>
const char *GetTextfile(TextfileType type, Subdirectory dir, const char *filename);

@ -28,6 +28,7 @@
#include "sl/saveload_common.h"
#include <list>
#include <map>
#include <vector>
CommandCost CmdRefitVehicle(TileIndex, DoCommandFlag, uint32, uint32, const char*);

@ -20,6 +20,7 @@
#include "track_type.h"
#include "livery.h"
#include "cargo_type.h"
#include <vector>
#define is_custom_sprite(x) (x >= 0xFD)
#define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD)

@ -17,6 +17,7 @@
#include "engine_type.h"
#include "company_type.h"
#include "widgets/dropdown_func.h"
#include <vector>
void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *parent, bool auto_refit = false, bool is_virtual_train = false);

@ -14,6 +14,7 @@
#include "company_type.h"
#include "tile_type.h"
#include "cargo_type.h"
#include <vector>
/** Vehicle List type flags */
enum VehicleListType {

@ -16,6 +16,7 @@
#endif
#include "video_driver.hpp"
#include <vector>
/** The SDL video driver. */
class VideoDriver_SDL_Base : public VideoDriver {

@ -17,6 +17,7 @@
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include <vector>
/** 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"
#include "core/bitmath_func.hpp"
#include "gfx_type.h"
#ifndef VIEWPORT_SPRITE_SORTER_H
#define VIEWPORT_SPRITE_SORTER_H
#include "core/bitmath_func.hpp"
#include "gfx_type.h"
#include <vector>
/** Parent sprite that should be drawn */
#ifdef _MSC_VER
struct __declspec(align(16)) ParentSpriteToDraw {

@ -13,6 +13,7 @@
#include "../window_type.h"
#include "../gfx_func.h"
#include "table/strings.h"
#include <vector>
enum DropDownSyncFocus {
DDSF_NONE = 0,

@ -20,6 +20,7 @@
#include <algorithm>
#include <functional>
#include <vector>
/**
* Flags to describe the look of the frame

Loading…
Cancel
Save