OpenTTD Source 20250905-master-g122023be8d
|
Road stop specification. More...
#include <newgrf_roadstop.h>
Public Member Functions | |
Money | GetBuildCost (Price category) const |
Get the cost for building a road stop of this type. | |
Money | GetClearCost (Price category) const |
Get the cost for clearing a road stop of this type. | |
Static Public Member Functions | |
static const RoadStopSpec * | Get (uint16_t index) |
Data Fields | |
CargoGRFFileProps | grf_prop |
Link to NewGRF. | |
StringID | name |
Name of this stop. | |
RoadStopAvailabilityType | stop_type = ROADSTOPTYPE_ALL |
RoadStopDrawModes | draw_mode = {RoadStopDrawMode::Road, RoadStopDrawMode::Overlay} |
RoadStopCallbackMasks | callback_mask {} |
RoadStopSpecFlags | flags {} |
CargoTypes | cargo_triggers = 0 |
Bitmask of cargo types which cause trigger re-randomizing. | |
AnimationInfo< StationAnimationTriggers > | animation |
uint8_t | build_cost_multiplier = 16 |
Build cost multiplier per tile. | |
uint8_t | clear_cost_multiplier = 16 |
Clear cost multiplier per tile. | |
std::array< BridgeableTileInfo, 6 > | bridgeable_info {} |
Per tile layout bridge information. | |
std::vector< BadgeID > | badges |
![]() | |
RoadStopClassID | class_index |
Class index of this spec, invalid until class is allocated. | |
uint16_t | index |
Index within class of this spec, invalid until inserted into class. | |
Road stop specification.
Definition at line 129 of file newgrf_roadstop.h.
Get the cost for building a road stop of this type.
Definition at line 152 of file newgrf_roadstop.h.
References GetPrice(), and GRFFilePropsBase::grffile.
Referenced by CmdBuildRoadStop(), and CmdBuildRoadWaypoint().
Get the cost for clearing a road stop of this type.
Definition at line 158 of file newgrf_roadstop.h.
References GetPrice(), and GRFFilePropsBase::grffile.
Referenced by RemoveRoadStop(), and RemoveRoadWaypointStop().
AnimationInfo<StationAnimationTriggers> RoadStopSpec::animation |
Definition at line 140 of file newgrf_roadstop.h.
std::vector<BadgeID> RoadStopSpec::badges |
Definition at line 146 of file newgrf_roadstop.h.
std::array<BridgeableTileInfo, 6> RoadStopSpec::bridgeable_info {} |
Per tile layout bridge information.
Definition at line 145 of file newgrf_roadstop.h.
Referenced by IsRoadStationBridgeAboveOk().
uint8_t RoadStopSpec::build_cost_multiplier = 16 |
Build cost multiplier per tile.
Definition at line 142 of file newgrf_roadstop.h.
RoadStopCallbackMasks RoadStopSpec::callback_mask {} |
Definition at line 135 of file newgrf_roadstop.h.
CargoTypes RoadStopSpec::cargo_triggers = 0 |
Bitmask of cargo types which cause trigger re-randomizing.
Definition at line 138 of file newgrf_roadstop.h.
Referenced by TriggerRoadStopRandomisation().
uint8_t RoadStopSpec::clear_cost_multiplier = 16 |
Clear cost multiplier per tile.
Definition at line 143 of file newgrf_roadstop.h.
RoadStopDrawModes RoadStopSpec::draw_mode = {RoadStopDrawMode::Road, RoadStopDrawMode::Overlay} |
Definition at line 134 of file newgrf_roadstop.h.
RoadStopSpecFlags RoadStopSpec::flags {} |
Definition at line 136 of file newgrf_roadstop.h.
CargoGRFFileProps RoadStopSpec::grf_prop |
Link to NewGRF.
Definition at line 130 of file newgrf_roadstop.h.
Referenced by AllocateSpecToRoadStop(), CmdBuildRoadStop(), RoadStopScopeResolver::GetVariable(), and IsRoadStopAvailable().
StringID RoadStopSpec::name |
Name of this stop.
Definition at line 131 of file newgrf_roadstop.h.
RoadStopAvailabilityType RoadStopSpec::stop_type = ROADSTOPTYPE_ALL |
Definition at line 133 of file newgrf_roadstop.h.