equal
deleted
inserted
replaced
5 #ifndef WAYPOINT_H |
5 #ifndef WAYPOINT_H |
6 #define WAYPOINT_H |
6 #define WAYPOINT_H |
7 |
7 |
8 #include "oldpool.h" |
8 #include "oldpool.h" |
9 #include "rail_map.h" |
9 #include "rail_map.h" |
|
10 #include "command_type.h" |
10 |
11 |
11 struct Waypoint; |
12 struct Waypoint; |
12 DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000) |
13 DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000) |
13 |
14 |
14 struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> { |
15 struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> { |
15 TileIndex xy; ///< Tile of waypoint |
16 TileIndex xy; ///< Tile of waypoint |
16 |
17 |
17 TownID town_index; ///< Town associated with the waypoint |
18 TownID town_index; ///< Town associated with the waypoint |
18 byte town_cn; ///< The Nth waypoint for this town (consecutive number) |
19 byte town_cn; ///< The Nth waypoint for this town (consecutive number) |
19 StringID string; ///< If this is zero (i.e. no custom name), town + town_cn is used for naming |
20 StringID string; ///< C000-C03F have special meaning in old games |
|
21 char *name; ///< Custom name. If not set, town + town_cn is used for naming |
20 |
22 |
21 ViewportSign sign; ///< Dimensions of sign (not saved) |
23 ViewportSign sign; ///< Dimensions of sign (not saved) |
22 Date build_date; ///< Date of construction |
24 Date build_date; ///< Date of construction |
23 |
25 |
24 byte stat_id; ///< ID of waypoint within the waypoint class (not saved) |
26 byte stat_id; ///< ID of waypoint within the waypoint class (not saved) |