Codechange: Add includes to YAPF .hpp files.

This commit is contained in:
Peter Nelson 2024-10-14 19:46:18 +01:00 committed by Peter Nelson
parent 009e57ee03
commit 5b73654f94
12 changed files with 49 additions and 0 deletions

View File

@ -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.

View File

@ -10,6 +10,7 @@
#ifndef YAPF_CACHE_H
#define YAPF_CACHE_H
#include "../../tile_type.h"
#include "../../track_type.h"
/**

View File

@ -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

View File

@ -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 {
/**

View File

@ -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

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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
{

View File

@ -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_> > {

View File

@ -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_> > {

View File

@ -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 */