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 "helpers.hpp" |
11 #include "tile_type.h" |
|
12 #include "strings_type.h" |
12 |
13 |
13 enum StationClassID { |
14 enum StationClassID { |
14 STAT_CLASS_BEGIN = 0, ///< the lowest valid value |
15 STAT_CLASS_BEGIN = 0, ///< the lowest valid value |
15 STAT_CLASS_DFLT = 0, ///< Default station class. |
16 STAT_CLASS_DFLT = 0, ///< Default station class. |
16 STAT_CLASS_WAYP, ///< Waypoint class. |
17 STAT_CLASS_WAYP, ///< Waypoint class. |
99 |
100 |
100 void ResetStationClasses(); |
101 void ResetStationClasses(); |
101 StationClassID AllocateStationClass(uint32 cls); |
102 StationClassID AllocateStationClass(uint32 cls); |
102 void SetStationClassName(StationClassID sclass, StringID name); |
103 void SetStationClassName(StationClassID sclass, StringID name); |
103 StringID GetStationClassName(StationClassID sclass); |
104 StringID GetStationClassName(StationClassID sclass); |
104 StringID *BuildStationClassDropdown(); |
|
105 |
105 |
106 uint GetNumStationClasses(); |
106 uint GetNumStationClasses(); |
107 uint GetNumCustomStations(StationClassID sclass); |
107 uint GetNumCustomStations(StationClassID sclass); |
108 |
108 |
109 void SetCustomStationSpec(StationSpec *statspec); |
109 void SetCustomStationSpec(StationSpec *statspec); |