mirror of https://github.com/OpenTTD/OpenTTD
(svn r12474) -Codechange: split type related stuff from waypoints from waypoint.h (and openttd.h) to waypoint_type.h.
parent
cdd5f90e64
commit
f4d48f0e5b
|
@ -1347,6 +1347,10 @@
|
||||||
RelativePath=".\..\src\station_gui.h"
|
RelativePath=".\..\src\station_gui.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\..\src\station_type.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\..\src\stdafx.h"
|
RelativePath=".\..\src\stdafx.h"
|
||||||
>
|
>
|
||||||
|
@ -1475,6 +1479,10 @@
|
||||||
RelativePath=".\..\src\waypoint.h"
|
RelativePath=".\..\src\waypoint.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\..\src\waypoint_type.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\..\src\music\win32_m.h"
|
RelativePath=".\..\src\music\win32_m.h"
|
||||||
>
|
>
|
||||||
|
|
|
@ -1344,6 +1344,10 @@
|
||||||
RelativePath=".\..\src\station_gui.h"
|
RelativePath=".\..\src\station_gui.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\..\src\station_type.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\..\src\stdafx.h"
|
RelativePath=".\..\src\stdafx.h"
|
||||||
>
|
>
|
||||||
|
@ -1472,6 +1476,10 @@
|
||||||
RelativePath=".\..\src\waypoint.h"
|
RelativePath=".\..\src\waypoint.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\..\src\waypoint_type.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\..\src\music\win32_m.h"
|
RelativePath=".\..\src\music\win32_m.h"
|
||||||
>
|
>
|
||||||
|
|
|
@ -278,6 +278,7 @@ vehicle_type.h
|
||||||
viewport_func.h
|
viewport_func.h
|
||||||
viewport_type.h
|
viewport_type.h
|
||||||
waypoint.h
|
waypoint.h
|
||||||
|
waypoint_type.h
|
||||||
music/win32_m.h
|
music/win32_m.h
|
||||||
sound/win32_s.h
|
sound/win32_s.h
|
||||||
video/win32_v.h
|
video/win32_v.h
|
||||||
|
|
|
@ -9,13 +9,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Forward declarations of structs.
|
// Forward declarations of structs.
|
||||||
struct Waypoint;
|
|
||||||
typedef byte LandscapeID;
|
typedef byte LandscapeID;
|
||||||
typedef uint16 EngineID;
|
typedef uint16 EngineID;
|
||||||
typedef uint16 UnitID;
|
typedef uint16 UnitID;
|
||||||
|
|
||||||
/* IDs used in Pools */
|
/* IDs used in Pools */
|
||||||
typedef uint16 WaypointID;
|
|
||||||
typedef uint16 EngineRenewID;
|
typedef uint16 EngineRenewID;
|
||||||
|
|
||||||
enum GameModes {
|
enum GameModes {
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "track_func.h"
|
#include "track_func.h"
|
||||||
#include "tile_map.h"
|
#include "tile_map.h"
|
||||||
#include "signal_type.h"
|
#include "signal_type.h"
|
||||||
|
#include "waypoint_type.h"
|
||||||
|
|
||||||
|
|
||||||
/** Different types of Rail-related tiles */
|
/** Different types of Rail-related tiles */
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
#ifndef WAYPOINT_H
|
#ifndef WAYPOINT_H
|
||||||
#define WAYPOINT_H
|
#define WAYPOINT_H
|
||||||
|
|
||||||
|
#include "waypoint_type.h"
|
||||||
#include "oldpool.h"
|
#include "oldpool.h"
|
||||||
#include "rail_map.h"
|
#include "rail_map.h"
|
||||||
#include "command_type.h"
|
#include "command_type.h"
|
||||||
#include "station_type.h"
|
#include "station_type.h"
|
||||||
|
|
||||||
struct Waypoint;
|
|
||||||
DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000)
|
DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000)
|
||||||
|
|
||||||
struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> {
|
struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> {
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/** @file waypoint_type.h Types related to waypoints. */
|
||||||
|
|
||||||
|
#ifndef WAYPOINT_TYPE_H
|
||||||
|
#define WAYPOINT_TYPE_H
|
||||||
|
|
||||||
|
typedef uint16 WaypointID;
|
||||||
|
struct Waypoint;
|
||||||
|
|
||||||
|
#endif /* WAYPOINT_TYPE_H */
|
Loading…
Reference in New Issue