mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
Codechange: Add includes to YAPF .hpp files.
This commit is contained in:
parent
009e57ee03
commit
5b73654f94
@ -12,6 +12,8 @@
|
||||
|
||||
#include "../../debug.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../misc/dbg_helpers.h"
|
||||
#include "yapf_type.hpp"
|
||||
|
||||
/**
|
||||
* CYapfBaseT - A-star type path finder base class.
|
||||
|
@ -10,6 +10,7 @@
|
||||
#ifndef YAPF_CACHE_H
|
||||
#define YAPF_CACHE_H
|
||||
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
|
||||
/**
|
||||
|
@ -10,6 +10,13 @@
|
||||
#ifndef YAPF_COMMON_HPP
|
||||
#define YAPF_COMMON_HPP
|
||||
|
||||
#include "../../core/bitmath_func.hpp"
|
||||
#include "../../direction_type.h"
|
||||
#include "../../map_func.h"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
#include "../pathfinder_type.h"
|
||||
|
||||
/** YAPF origin provider base class - used when origin is one tile / multiple trackdirs */
|
||||
template <class Types>
|
||||
class CYapfOriginTileT
|
||||
|
@ -10,6 +10,12 @@
|
||||
#ifndef YAPF_COSTBASE_HPP
|
||||
#define YAPF_COSTBASE_HPP
|
||||
|
||||
#include "../../bridge_map.h"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_func.h"
|
||||
#include "../../track_type.h"
|
||||
#include "../../tunnelbridge_map.h"
|
||||
|
||||
/** Base implementation for cost accounting. */
|
||||
struct CYapfCostBase {
|
||||
/**
|
||||
|
@ -11,6 +11,9 @@
|
||||
#define YAPF_COSTCACHE_HPP
|
||||
|
||||
#include "../../timer/timer_game_calendar.h"
|
||||
#include "../../misc/hashtable.hpp"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
|
||||
/**
|
||||
* CYapfSegmentCostCacheNoneT - the formal only yapf cost cache provider that implements
|
||||
|
@ -12,6 +12,10 @@
|
||||
|
||||
|
||||
#include "../../pbs.h"
|
||||
#include "../follow_track.hpp"
|
||||
#include "../pathfinder_type.h"
|
||||
#include "yapf_type.hpp"
|
||||
#include "yapf_costbase.hpp"
|
||||
|
||||
template <class Types>
|
||||
class CYapfCostRailT : public CYapfCostBase {
|
||||
|
@ -10,6 +10,10 @@
|
||||
#ifndef YAPF_DESTRAIL_HPP
|
||||
#define YAPF_DESTRAIL_HPP
|
||||
|
||||
#include "../../train.h"
|
||||
#include "../pathfinder_func.h"
|
||||
#include "../pathfinder_type.h"
|
||||
|
||||
class CYapfDestinationRailBase {
|
||||
protected:
|
||||
RailTypes m_compatible_railtypes;
|
||||
|
@ -10,6 +10,9 @@
|
||||
#ifndef YAPF_NODE_HPP
|
||||
#define YAPF_NODE_HPP
|
||||
|
||||
#include "../../track_func.h"
|
||||
#include "../../misc/dbg_helpers.h"
|
||||
|
||||
/** Yapf Node Key that evaluates hash from (and compares) tile & exit dir. */
|
||||
struct CYapfNodeKeyExitDir {
|
||||
TileIndex m_tile;
|
||||
|
@ -10,6 +10,12 @@
|
||||
#ifndef YAPF_NODE_RAIL_HPP
|
||||
#define YAPF_NODE_RAIL_HPP
|
||||
|
||||
#include "../../misc/dbg_helpers.h"
|
||||
#include "../../train.h"
|
||||
#include "nodelist.hpp"
|
||||
#include "yapf_node.hpp"
|
||||
#include "yapf_type.hpp"
|
||||
|
||||
/** key for cached segment cost for rail YAPF */
|
||||
struct CYapfRailSegmentKey
|
||||
{
|
||||
|
@ -10,6 +10,11 @@
|
||||
#ifndef YAPF_NODE_ROAD_HPP
|
||||
#define YAPF_NODE_ROAD_HPP
|
||||
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
#include "nodelist.hpp"
|
||||
#include "yapf_node.hpp"
|
||||
|
||||
/** Yapf Node for road YAPF */
|
||||
template <class Tkey_>
|
||||
struct CYapfRoadNodeT : CYapfNodeT<Tkey_, CYapfRoadNodeT<Tkey_> > {
|
||||
|
@ -10,6 +10,11 @@
|
||||
#ifndef YAPF_NODE_SHIP_HPP
|
||||
#define YAPF_NODE_SHIP_HPP
|
||||
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
#include "nodelist.hpp"
|
||||
#include "yapf_node.hpp"
|
||||
|
||||
/** Yapf Node for ships */
|
||||
template <class Tkey_>
|
||||
struct CYapfShipNodeT : CYapfNodeT<Tkey_, CYapfShipNodeT<Tkey_> > {
|
||||
|
@ -13,6 +13,9 @@
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
||||
#include "../../core/enum_type.hpp"
|
||||
#include "../../misc/dbg_helpers.h"
|
||||
|
||||
/* Enum used in PfCalcCost() to see why was the segment closed. */
|
||||
enum EndSegmentReason {
|
||||
/* The following reasons can be saved into cached segment */
|
||||
|
Loading…
Reference in New Issue
Block a user