OpenTTD

newgrf_properties.h
Go to the documentation of this file.
1 /* $Id: newgrf_properties.h 23504 2011-12-13 00:43:35Z michi_cc $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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 <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef NEWGRF_PROPERTIES_H
13 #define NEWGRF_PROPERTIES_H
14
20 enum PropertyID {
21 PROP_VEHICLE_LOAD_AMOUNT = 0x07,
22
23 PROP_TRAIN_SPEED = 0x09,
24 PROP_TRAIN_POWER = 0x0B,
25 PROP_TRAIN_RUNNING_COST_FACTOR = 0x0D,
26 PROP_TRAIN_CARGO_CAPACITY = 0x14,
27 PROP_TRAIN_WEIGHT = 0x16,
28 PROP_TRAIN_COST_FACTOR = 0x17,
29 PROP_TRAIN_TRACTIVE_EFFORT = 0x1F,
30 PROP_TRAIN_SHORTEN_FACTOR = 0x21,
31 PROP_TRAIN_USER_DATA = 0x25,
32 PROP_TRAIN_CARGO_AGE_PERIOD = 0x2B,
33
34 PROP_ROADVEH_RUNNING_COST_FACTOR = 0x09,
35 PROP_ROADVEH_CARGO_CAPACITY = 0x0F,
36 PROP_ROADVEH_COST_FACTOR = 0x11,
37 PROP_ROADVEH_POWER = 0x13,
38 PROP_ROADVEH_WEIGHT = 0x14,
39 PROP_ROADVEH_SPEED = 0x15,
40 PROP_ROADVEH_TRACTIVE_EFFORT = 0x18,
41 PROP_ROADVEH_CARGO_AGE_PERIOD = 0x22,
42 PROP_ROADVEH_SHORTEN_FACTOR = 0x23,
43
44 PROP_SHIP_COST_FACTOR = 0x0A,
45 PROP_SHIP_SPEED = 0x0B,
46 PROP_SHIP_CARGO_CAPACITY = 0x0D,
47 PROP_SHIP_RUNNING_COST_FACTOR = 0x0F,
48 PROP_SHIP_CARGO_AGE_PERIOD = 0x1D,
49
50 PROP_AIRCRAFT_COST_FACTOR = 0x0B,
51 PROP_AIRCRAFT_SPEED = 0x0C,
52 PROP_AIRCRAFT_RUNNING_COST_FACTOR = 0x0E,
53 PROP_AIRCRAFT_PASSENGER_CAPACITY = 0x0F,
54 PROP_AIRCRAFT_MAIL_CAPACITY = 0x11,
55 PROP_AIRCRAFT_CARGO_AGE_PERIOD = 0x1C,
56 PROP_AIRCRAFT_RANGE = 0x1F,
57 };
58
59 #endif /* NEWGRF_PROPERTIES_H */
PROP_ROADVEH_SHORTEN_FACTOR
Shorter vehicles.
Definition: newgrf_properties.h:42
PROP_AIRCRAFT_RANGE
Aircraft range.
Definition: newgrf_properties.h:56
PROP_TRAIN_SPEED
Max. speed: 1 unit = 1/1.6 mph = 1 km-ish/h.
Definition: newgrf_properties.h:23
PROP_TRAIN_POWER
Power in hp (if dualheaded: sum of both vehicles)
Definition: newgrf_properties.h:24
PROP_TRAIN_RUNNING_COST_FACTOR
Yearly runningcost (if dualheaded: sum of both vehicles)
Definition: newgrf_properties.h:25
PROP_TRAIN_SHORTEN_FACTOR
Shorter vehicles.
Definition: newgrf_properties.h:30
PROP_TRAIN_COST_FACTOR
Purchase cost (if dualheaded: sum of both vehicles)
Definition: newgrf_properties.h:28
PropertyID
PropertyID
List of NewGRF properties used in Action 0 or Callback 0x36 (CBID_VEHICLE_MODIFY_PROPERTY).
Definition: newgrf_properties.h:20
PROP_SHIP_CARGO_CAPACITY
Capacity.
Definition: newgrf_properties.h:46
PROP_TRAIN_CARGO_AGE_PERIOD
Number of ticks before carried cargo is aged.
Definition: newgrf_properties.h:32
PROP_TRAIN_TRACTIVE_EFFORT
Tractive effort coefficient in 1/256.
Definition: newgrf_properties.h:29
PROP_TRAIN_USER_DATA
User defined data for vehicle variable 0x42.
Definition: newgrf_properties.h:31
PROP_SHIP_RUNNING_COST_FACTOR
Yearly runningcost.
Definition: newgrf_properties.h:47
PROP_AIRCRAFT_PASSENGER_CAPACITY
Passenger Capacity.
Definition: newgrf_properties.h:53
PROP_ROADVEH_RUNNING_COST_FACTOR
Yearly runningcost.
Definition: newgrf_properties.h:34
PROP_TRAIN_CARGO_CAPACITY
Capacity (if dualheaded: for each single vehicle)
Definition: newgrf_properties.h:26
PROP_ROADVEH_WEIGHT
Weight in 1/4 t.
Definition: newgrf_properties.h:38
PROP_ROADVEH_SPEED
Max. speed: 1 unit = 1/0.8 mph = 2 km-ish/h.
Definition: newgrf_properties.h:39
PROP_SHIP_CARGO_AGE_PERIOD
Number of ticks before carried cargo is aged.
Definition: newgrf_properties.h:48
PROP_ROADVEH_POWER
Power in 10 HP.
Definition: newgrf_properties.h:37
PROP_AIRCRAFT_MAIL_CAPACITY
Mail Capacity.
Definition: newgrf_properties.h:54
PROP_SHIP_COST_FACTOR
Purchase cost.
Definition: newgrf_properties.h:44
PROP_ROADVEH_COST_FACTOR
Purchase cost.
Definition: newgrf_properties.h:36
PROP_AIRCRAFT_COST_FACTOR
Purchase cost.
Definition: newgrf_properties.h:50
PROP_SHIP_SPEED
Max. speed: 1 unit = 1/3.2 mph = 0.5 km-ish/h.
Definition: newgrf_properties.h:45
PROP_AIRCRAFT_CARGO_AGE_PERIOD
Number of ticks before carried cargo is aged.
Definition: newgrf_properties.h:55
PROP_ROADVEH_CARGO_CAPACITY
Capacity.
Definition: newgrf_properties.h:35
PROP_ROADVEH_CARGO_AGE_PERIOD
Number of ticks before carried cargo is aged.
Definition: newgrf_properties.h:41
PROP_AIRCRAFT_SPEED
Max. speed: 1 unit = 8 mph = 12.8 km-ish/h.
Definition: newgrf_properties.h:51
PROP_ROADVEH_TRACTIVE_EFFORT
Tractive effort coefficient in 1/256.
Definition: newgrf_properties.h:40
PROP_VEHICLE_LOAD_AMOUNT
Loading speed.
Definition: newgrf_properties.h:21
PROP_TRAIN_WEIGHT
Weight in t (if dualheaded: for each single vehicle)
Definition: newgrf_properties.h:27
PROP_AIRCRAFT_RUNNING_COST_FACTOR
Yearly runningcost.
Definition: newgrf_properties.h:52