(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:
rubidium
2010-01-15 16:41:15 +00:00
parent f380a7239d
commit 82fc28f77f
295 changed files with 308 additions and 351 deletions

View File

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

View File

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

View File

@@ -14,6 +14,7 @@
#include "../../track_type.h"
#include "../../direction_type.h"
#include "../../vehicle_type.h"
#include "../pathfinder_type.h"
/**

View File

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

View File

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

View File

@@ -12,7 +12,6 @@
#ifndef PATHFINDER_FUNC_H
#define PATHFINDER_FUNC_H
#include "../station_base.h"
#include "../waypoint_base.h"
/**

View File

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

View File

@@ -14,6 +14,8 @@
#include "../../direction_type.h"
#include "../../station_type.h"
#include "../../track_type.h"
#include "../../vehicle_type.h"
#include "../pathfinder_type.h"
/**