(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
#ifndef FOLLOW_TRACK_HPP
|
||||
#define FOLLOW_TRACK_HPP
|
||||
|
||||
#include "../depot_map.h"
|
||||
#include "../pbs.h"
|
||||
#include "../roadveh.h"
|
||||
#include "../station_base.h"
|
||||
#include "../train.h"
|
||||
#include "../tunnelbridge.h"
|
||||
#include "../tunnelbridge_map.h"
|
||||
#include "../depot_map.h"
|
||||
#include "pf_performance_timer.hpp"
|
||||
|
||||
/** Track follower helper template class (can serve pathfinders and vehicle
|
||||
|
@@ -12,15 +12,9 @@
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../landscape.h"
|
||||
#include "../../depot_base.h"
|
||||
#include "../../network/network.h"
|
||||
#include "../../tunnelbridge_map.h"
|
||||
#include "../../functions.h"
|
||||
#include "../../tunnelbridge.h"
|
||||
#include "../../pbs.h"
|
||||
#include "../../roadveh.h"
|
||||
#include "../../ship.h"
|
||||
#include "../../train.h"
|
||||
#include "../../roadstop_base.h"
|
||||
#include "../pathfinder_func.h"
|
||||
#include "../pathfinder_type.h"
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "../../track_type.h"
|
||||
#include "../../direction_type.h"
|
||||
#include "../../vehicle_type.h"
|
||||
#include "../pathfinder_type.h"
|
||||
|
||||
/**
|
||||
|
@@ -10,12 +10,10 @@
|
||||
/** @file pathfind.cpp Implementation of the oldest supported pathfinder. */
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../tunnelbridge_map.h"
|
||||
#include "../../tunnelbridge.h"
|
||||
#include "../../ship.h"
|
||||
#include "../../core/random_func.hpp"
|
||||
#include "opf_ship.h"
|
||||
|
||||
struct RememberData {
|
||||
uint16 cur_length;
|
||||
|
@@ -12,6 +12,11 @@
|
||||
#ifndef OPF_SHIP_H
|
||||
#define OPF_SHIP_H
|
||||
|
||||
#include "../../direction_type.h"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../track_type.h"
|
||||
#include "../../vehicle_type.h"
|
||||
|
||||
/**
|
||||
* Finds the best path for given ship using OPF.
|
||||
* @param v the ship that needs to find a path
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#ifndef PATHFINDER_FUNC_H
|
||||
#define PATHFINDER_FUNC_H
|
||||
|
||||
#include "../station_base.h"
|
||||
#include "../waypoint_base.h"
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#ifndef PATHFINDER_TYPE_H
|
||||
#define PATHFINDER_TYPE_H
|
||||
|
||||
#include "../tile_type.h"
|
||||
|
||||
/** Length (penalty) of one tile with NPF */
|
||||
static const int NPF_TILE_LENGTH = 100;
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
|
||||
#include "../../direction_type.h"
|
||||
#include "../../station_type.h"
|
||||
#include "../../track_type.h"
|
||||
#include "../../vehicle_type.h"
|
||||
#include "../pathfinder_type.h"
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user