summaryrefslogtreecommitdiff
path: root/src/economy_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-08-02 12:34:26 +0000
committerfrosch <frosch@openttd.org>2009-08-02 12:34:26 +0000
commita6cbf0d419569989d54f6df37232e9e771acafa8 (patch)
treed3263e8de74e831af809bc3318becad666d8918b /src/economy_type.h
parent053ba65836d98b73f2061a2d92681cce30380f1e (diff)
downloadopenttd-a6cbf0d419569989d54f6df37232e9e771acafa8.tar.xz
(svn r17036) -Codechange: Split price bases from economy.cpp to table/pricebase.h.
Diffstat (limited to 'src/economy_type.h')
-rw-r--r--src/economy_type.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index c5ae9a0d9..48988bb46 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -122,6 +122,23 @@ enum ExpensesType {
INVALID_EXPENSES = 0xFF,
};
+/**
+ * Categories of a price bases.
+ */
+enum PriceCategory {
+ PC_NONE, ///< No category
+ PC_RUNNING, ///< Price is affected by "vehicle running cost" difficulty setting
+ PC_CONSTRUCTION, ///< Price is affected by "construction cost" difficulty setting
+};
+
+/**
+ * Describes properties of price bases.
+ */
+struct PriceBaseSpec {
+ Money start_price; ///< Default value at game start, before adding multipliers.
+ PriceCategory category; ///< Price is affected by certain difficulty settings.
+};
+
/** The "steps" in loan size, in British Pounds! */
static const int LOAN_INTERVAL = 10000;