equal
deleted
inserted
replaced
6 #define NEWGRF_STATION_H |
6 #define NEWGRF_STATION_H |
7 |
7 |
8 #include "engine.h" |
8 #include "engine.h" |
9 #include "newgrf_callbacks.h" |
9 #include "newgrf_callbacks.h" |
10 #include "newgrf_cargo.h" |
10 #include "newgrf_cargo.h" |
|
11 #include "tile_type.h" |
|
12 #include "strings_type.h" |
11 |
13 |
12 enum StationClassID { |
14 enum StationClassID { |
13 STAT_CLASS_BEGIN = 0, ///< the lowest valid value |
15 STAT_CLASS_BEGIN = 0, ///< the lowest valid value |
14 STAT_CLASS_DFLT = 0, ///< Default station class. |
16 STAT_CLASS_DFLT = 0, ///< Default station class. |
15 STAT_CLASS_WAYP, ///< Waypoint class. |
17 STAT_CLASS_WAYP, ///< Waypoint class. |
98 |
100 |
99 void ResetStationClasses(); |
101 void ResetStationClasses(); |
100 StationClassID AllocateStationClass(uint32 cls); |
102 StationClassID AllocateStationClass(uint32 cls); |
101 void SetStationClassName(StationClassID sclass, StringID name); |
103 void SetStationClassName(StationClassID sclass, StringID name); |
102 StringID GetStationClassName(StationClassID sclass); |
104 StringID GetStationClassName(StationClassID sclass); |
103 StringID *BuildStationClassDropdown(); |
|
104 |
105 |
105 uint GetNumStationClasses(); |
106 uint GetNumStationClasses(); |
106 uint GetNumCustomStations(StationClassID sclass); |
107 uint GetNumCustomStations(StationClassID sclass); |
107 |
108 |
108 void SetCustomStationSpec(StationSpec *statspec); |
109 void SetCustomStationSpec(StationSpec *statspec); |