diff options
Diffstat (limited to 'src/economy_type.h')
-rw-r--r-- | src/economy_type.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/economy_type.h b/src/economy_type.h index 0f5a88ceb..4d726ed5d 100644 --- a/src/economy_type.h +++ b/src/economy_type.h @@ -59,7 +59,12 @@ struct ScoreInfo { int score; ///< How much score it will give }; +/** + * Enumeration of all base prices for use with #Prices. + * The prices are ordered as they are expected by NewGRF cost multipliers, so don't shuffle them. + */ enum Price { + PR_BEGIN = 0, PR_STATION_VALUE = 0, PR_BUILD_RAIL, PR_BUILD_ROAD, @@ -110,11 +115,12 @@ enum Price { PR_RUNNING_SHIP, PR_BUILD_INDUSTRY, - NUM_PRICES, + PR_END, INVALID_PRICE = 0xFF }; +DECLARE_POSTFIX_INCREMENT(Price) -typedef Money Prices[NUM_PRICES]; +typedef Money Prices[PR_END]; enum ExpensesType { EXPENSES_CONSTRUCTION = 0, |