OpenTTD Source 20260531-master-g0e951f3528
pricebase.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10static const EnumIndexArray<PriceBaseSpec, Price, Price::End> _price_base_specs = {
21 PriceBaseSpec(180, PriceCategory::Construction, GrfSpecFeature::End, Price::Invalid), // Price::BuildStationRailLength
55 PriceBaseSpec(4800, PriceCategory::Running, GrfSpecFeature::Trains, Price::Invalid), // Price::RunningTrainElectric
82};
@ Construction
Price is affected by "construction cost" difficulty setting.
@ Running
Price is affected by "vehicle running cost" difficulty setting.
@ None
Not affected by difficulty settings.
@ ClearStationTruck
Price for destroying lorry stations.
@ BuildStationAirport
Price for building airports.
@ ClearRough
Price for destroying rough land.
@ Terraform
Price for terraforming land, e.g. rising, lowering and flattening.
@ Invalid
Invalid base price.
@ BuildIndustry
Price for funding new industries.
@ BuildCanal
Price for building new canals.
@ ClearWater
Price for destroying water e.g. see, rives.
@ StationValue
Stations value and additional constant company running fee.
@ ClearHouse
Price for destroying houses and other town buildings.
@ BuildStationDock
Price for building docks.
@ BuildRail
Price for building rails.
@ ClearDepotTrain
Price for destroying train depots.
@ BuildRoad
Price for building roads.
@ BuildDepotTrain
Price for building train depots.
@ ClearBridge
Price for destroying bridges.
EnumClassIndexContainer< std::array< T, to_underlying(N)>, Index > EnumIndexArray
A typedef for EnumClassIndexContainer using std::array as the backing container type.
@ Trains
Trains feature.
Definition newgrf.h:74
@ RoadVehicles
Road vehicles feature.
Definition newgrf.h:75
@ Ships
Ships feature.
Definition newgrf.h:76
@ End
End marker.
Definition newgrf.h:96
@ Aircraft
Aircraft feature.
Definition newgrf.h:77
@ Objects
Objects feature.
Definition newgrf.h:89
Describes properties of price bases.
Definition newgrf.h:210