Add various missing includes

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

@ -17,6 +17,7 @@
#include "core/geometry_type.hpp" #include "core/geometry_type.hpp"
#include "core/tinystring_type.hpp" #include "core/tinystring_type.hpp"
#include <memory> #include <memory>
#include <vector>
typedef Pool<BaseStation, StationID, 32, 64000> StationPool; typedef Pool<BaseStation, StationID, 32, 64000> StationPool;
extern StationPool _station_pool; extern StationPool _station_pool;

@ -15,6 +15,7 @@
#include "string_type.h" #include "string_type.h"
#include "core/serialisation.hpp" #include "core/serialisation.hpp"
#include <optional> #include <optional>
#include <vector>
struct CommandDeserialisationBuffer : public BufferDeserialisationHelper<CommandDeserialisationBuffer> { struct CommandDeserialisationBuffer : public BufferDeserialisationHelper<CommandDeserialisationBuffer> {
const uint8 *buffer; const uint8 *buffer;

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

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

@ -17,6 +17,7 @@
#include "newgrf_commons.h" #include "newgrf_commons.h"
#include "3rdparty/cpp-btree/btree_map.h" #include "3rdparty/cpp-btree/btree_map.h"
#include <vector>
struct WagonOverride { struct WagonOverride {
std::vector<EngineID> engines; std::vector<EngineID> engines;

@ -14,6 +14,7 @@
#include "company_base.h" #include "company_base.h"
#include "newgrf_config.h" #include "newgrf_config.h"
#include "network/core/tcp_content_type.h" #include "network/core/tcp_content_type.h"
#include <vector>
/** Special values for save-load window for the data parameter of #InvalidateWindowData. */ /** Special values for save-load window for the data parameter of #InvalidateWindowData. */

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

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

@ -12,6 +12,7 @@
#include "core/geometry_type.hpp" #include "core/geometry_type.hpp"
#include "tile_cmd.h" #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_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. 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> #include <unicode/coll.h>
#endif /* WITH_ICU_I18N */ #endif /* WITH_ICU_I18N */
#include "strings_type.h" #include "strings_type.h"
#include <vector>
static const uint8 CASE_GENDER_LEN = 16; ///< The (maximum) length of a case/gender string. 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. static const uint8 MAX_NUM_GENDERS = 8; ///< Maximum number of supported genders.

@ -4,6 +4,7 @@
#define DEMANDS_H #define DEMANDS_H
#include "linkgraphjob_base.h" #include "linkgraphjob_base.h"
#include <vector>
/** /**
* Calculate the demands. This class has a state, but is recreated for each * Calculate the demands. This class has a state, but is recreated for each

@ -19,6 +19,7 @@
#include "linkgraph_type.h" #include "linkgraph_type.h"
#include "../3rdparty/cpp-btree/btree_map.h" #include "../3rdparty/cpp-btree/btree_map.h"
#include <utility> #include <utility>
#include <vector>
class LinkGraph; class LinkGraph;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -18,6 +18,7 @@
#include "linkgraph/linkgraph_gui.h" #include "linkgraph/linkgraph_gui.h"
#include "widgets/smallmap_widget.h" #include "widgets/smallmap_widget.h"
#include "guitimer_func.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. 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/bitmath_func.hpp"
#include "core/mem_func.hpp" #include "core/mem_func.hpp"
#include "date_type.h" #include "date_type.h"
#include <vector>
/** Flags of the sort list. */ /** Flags of the sort list. */
enum SortListFlags { enum SortListFlags {

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

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

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

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

@ -17,6 +17,7 @@
#include "engine_type.h" #include "engine_type.h"
#include "company_type.h" #include "company_type.h"
#include "widgets/dropdown_func.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); 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 "company_type.h"
#include "tile_type.h" #include "tile_type.h"
#include "cargo_type.h" #include "cargo_type.h"
#include <vector>
/** Vehicle List type flags */ /** Vehicle List type flags */
enum VehicleListType { enum VehicleListType {

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

@ -17,6 +17,7 @@
#include "../3rdparty/mingw-std-threads/mingw.mutex.h" #include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h" #include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif #endif
#include <vector>
/** Base class for Windows video drivers. */ /** Base class for Windows video drivers. */
class VideoDriver_Win32Base : public VideoDriver { class VideoDriver_Win32Base : public VideoDriver {

@ -7,13 +7,13 @@
/** @file viewport_sprite_sorter.h Types related to sprite sorting. */ /** @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 #ifndef VIEWPORT_SPRITE_SORTER_H
#define 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 */ /** Parent sprite that should be drawn */
#ifdef _MSC_VER #ifdef _MSC_VER
struct __declspec(align(16)) ParentSpriteToDraw { struct __declspec(align(16)) ParentSpriteToDraw {

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

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

Loading…
Cancel
Save