Changeset - r8768:534cb94cf780
[Not reviewed]
master
0 6 1
rubidium - 16 years ago 2008-03-28 16:32:27
rubidium@openttd.org
(svn r12467) -Codechange: move DepotID to a more logical location.
7 files changed with 22 insertions and 3 deletions:
0 comments (0 inline, 0 general)
projects/openttd_vs80.vcproj
Show inline comments
 
@@ -889,12 +889,16 @@
 
			</File>
 
			<File
 
				RelativePath=".\..\src\depot.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\depot_type.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\direction_func.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\direction_type.h"
 
				>
projects/openttd_vs90.vcproj
Show inline comments
 
@@ -886,12 +886,16 @@
 
			</File>
 
			<File
 
				RelativePath=".\..\src\depot.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\depot_type.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\direction_func.h"
 
				>
 
			</File>
 
			<File
 
				RelativePath=".\..\src\direction_type.h"
 
				>
source.list
Show inline comments
 
@@ -128,12 +128,13 @@ currency.h
 
date_func.h
 
date_type.h
 
debug.h
 
video/dedicated_v.h
 
ai/default/default.h
 
depot.h
 
depot_type.h
 
direction_func.h
 
direction_type.h
 
music/dmusic.h
 
driver.h
 
widgets/dropdown_func.h
 
widgets/dropdown_type.h
src/depot.h
Show inline comments
 
@@ -3,19 +3,19 @@
 
/** @file depot.h Header files for depots (not hangars) */
 

	
 
#ifndef DEPOT_H
 
#define DEPOT_H
 

	
 
#include "direction_type.h"
 
#include "depot_type.h"
 
#include "oldpool.h"
 
#include "road_map.h"
 
#include "rail_map.h"
 
#include "water_map.h"
 
#include "station_map.h"
 

	
 
struct Depot;
 
DECLARE_OLD_POOL(Depot, Depot, 3, 8000)
 

	
 
struct Depot : PoolItem<Depot, DepotID, &_Depot_pool> {
 
	TileIndex xy;
 
	TownID town_index;
 

	
src/depot_type.h
Show inline comments
 
new file 100644
 
/* $Id$ */
 

	
 
/** @file depot_type.h Header files for depots (not hangars) */
 

	
 
#ifndef DEPOT_TYPE_H
 
#define DEPOT_TYPE_H
 

	
 
typedef uint16 DepotID;
 
struct Depot;
 

	
 
#endif /* DEPOT_TYPE_H */
src/openttd.h
Show inline comments
 
@@ -6,13 +6,12 @@
 

	
 
#ifndef VARDEF
 
#define VARDEF extern
 
#endif
 

	
 
// Forward declarations of structs.
 
struct Depot;
 
struct Waypoint;
 
struct Station;
 
struct ViewPort;
 
struct DrawPixelInfo;
 
struct Group;
 
typedef byte VehicleOrderID;  ///< The index of an order within its current vehicle (not pool related)
 
@@ -23,13 +22,12 @@ typedef uint16 UnitID;
 
typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)
 

	
 
/* IDs used in Pools */
 
typedef uint16 StationID;
 
static const StationID INVALID_STATION = 0xFFFF;
 
typedef uint16 RoadStopID;
 
typedef uint16 DepotID;
 
typedef uint16 WaypointID;
 
typedef uint16 OrderID;
 
typedef uint16 SignID;
 
typedef uint16 GroupID;
 
typedef uint16 EngineRenewID;
 

	
src/yapf/yapf.h
Show inline comments
 
@@ -3,12 +3,13 @@
 
/** @file yapf.h */
 

	
 
#ifndef  YAPF_H
 
#define  YAPF_H
 

	
 
#include "../debug.h"
 
#include "../depot_type.h"
 

	
 
/** Finds the best path for given ship.
 
 * @param v        the ship that needs to find a path
 
 * @param tile     the tile to find the path from (should be next tile the ship is about to enter)
 
 * @param enterdir diagonal direction which the ship will enter this new tile from
 
 * @param tracks   available tracks on the new tile (to choose from)
0 comments (0 inline, 0 general)