OpenTTD Source: src/newgrf_properties.h File Reference

OpenTTD Source 1.11.0-RC1

Enumerations
newgrf_properties.h File Reference

Go to the source code of this file.

## Enumerations
enum | PropertyID { PROP_VEHICLE_LOAD_AMOUNT = 0x07, PROP_TRAIN_SPEED = 0x09, PROP_TRAIN_POWER = 0x0B, PROP_TRAIN_RUNNING_COST_FACTOR = 0x0D, PROP_TRAIN_CARGO_CAPACITY = 0x14, PROP_TRAIN_WEIGHT = 0x16, PROP_TRAIN_COST_FACTOR = 0x17, PROP_TRAIN_TRACTIVE_EFFORT = 0x1F, PROP_TRAIN_SHORTEN_FACTOR = 0x21, PROP_TRAIN_USER_DATA = 0x25, PROP_TRAIN_CARGO_AGE_PERIOD = 0x2B, PROP_ROADVEH_RUNNING_COST_FACTOR = 0x09, PROP_ROADVEH_CARGO_CAPACITY = 0x0F, PROP_ROADVEH_COST_FACTOR = 0x11, PROP_ROADVEH_POWER = 0x13, PROP_ROADVEH_WEIGHT = 0x14, PROP_ROADVEH_SPEED = 0x15, PROP_ROADVEH_TRACTIVE_EFFORT = 0x18, PROP_ROADVEH_CARGO_AGE_PERIOD = 0x22, PROP_ROADVEH_SHORTEN_FACTOR = 0x23, PROP_SHIP_COST_FACTOR = 0x0A, PROP_SHIP_SPEED = 0x0B, PROP_SHIP_CARGO_CAPACITY = 0x0D, PROP_SHIP_RUNNING_COST_FACTOR = 0x0F, PROP_SHIP_CARGO_AGE_PERIOD = 0x1D, PROP_AIRCRAFT_COST_FACTOR = 0x0B, PROP_AIRCRAFT_SPEED = 0x0C, PROP_AIRCRAFT_RUNNING_COST_FACTOR = 0x0E, PROP_AIRCRAFT_PASSENGER_CAPACITY = 0x0F, PROP_AIRCRAFT_MAIL_CAPACITY = 0x11, PROP_AIRCRAFT_CARGO_AGE_PERIOD = 0x1C, PROP_AIRCRAFT_RANGE = 0x1F }
| List of NewGRF properties used in Action 0 or Callback 0x36 (CBID_VEHICLE_MODIFY_PROPERTY). More...

## Detailed Description

Properties of NewGRF Action 0.

Definition in file newgrf_properties.h.

## Enumeration Type Documentation

## ◆ PropertyID

enum PropertyID

List of NewGRF properties used in Action 0 or Callback 0x36 (CBID_VEHICLE_MODIFY_PROPERTY).

Names are formatted as PROP_<CLASS>_<NAME>

Todo:
  Currently the list only contains properties which are used more than once in the code. I.e. they are available for callback 0x36.

Enumerator
PROP_VEHICLE_LOAD_AMOUNT | Loading speed.
PROP_TRAIN_SPEED | Max. speed: 1 unit = 1/1.6 mph = 1 km-ish/h.
PROP_TRAIN_POWER | Power in hp (if dualheaded: sum of both vehicles)
PROP_TRAIN_RUNNING_COST_FACTOR | Yearly runningcost (if dualheaded: sum of both vehicles)
PROP_TRAIN_CARGO_CAPACITY | Capacity (if dualheaded: for each single vehicle)
PROP_TRAIN_WEIGHT | Weight in t (if dualheaded: for each single vehicle)
PROP_TRAIN_COST_FACTOR | Purchase cost (if dualheaded: sum of both vehicles)
PROP_TRAIN_TRACTIVE_EFFORT | Tractive effort coefficient in 1/256.
PROP_TRAIN_SHORTEN_FACTOR | Shorter vehicles.
PROP_TRAIN_USER_DATA | User defined data for vehicle variable 0x42.
PROP_TRAIN_CARGO_AGE_PERIOD | Number of ticks before carried cargo is aged.
PROP_ROADVEH_RUNNING_COST_FACTOR | Yearly runningcost.
PROP_ROADVEH_CARGO_CAPACITY | Capacity.
PROP_ROADVEH_COST_FACTOR | Purchase cost.
PROP_ROADVEH_POWER | Power in 10 HP.
PROP_ROADVEH_WEIGHT | Weight in 1/4 t.
PROP_ROADVEH_SPEED | Max. speed: 1 unit = 1/0.8 mph = 2 km-ish/h.
PROP_ROADVEH_TRACTIVE_EFFORT | Tractive effort coefficient in 1/256.
PROP_ROADVEH_CARGO_AGE_PERIOD | Number of ticks before carried cargo is aged.
PROP_ROADVEH_SHORTEN_FACTOR | Shorter vehicles.
PROP_SHIP_COST_FACTOR | Purchase cost.
PROP_SHIP_SPEED | Max. speed: 1 unit = 1/3.2 mph = 0.5 km-ish/h.
PROP_SHIP_CARGO_CAPACITY | Capacity.
PROP_SHIP_RUNNING_COST_FACTOR | Yearly runningcost.
PROP_SHIP_CARGO_AGE_PERIOD | Number of ticks before carried cargo is aged.
PROP_AIRCRAFT_COST_FACTOR | Purchase cost.
PROP_AIRCRAFT_SPEED | Max. speed: 1 unit = 8 mph = 12.8 km-ish/h.
PROP_AIRCRAFT_RUNNING_COST_FACTOR | Yearly runningcost.
PROP_AIRCRAFT_PASSENGER_CAPACITY | Passenger Capacity.
PROP_AIRCRAFT_MAIL_CAPACITY | Mail Capacity.
PROP_AIRCRAFT_CARGO_AGE_PERIOD | Number of ticks before carried cargo is aged.
PROP_AIRCRAFT_RANGE | Aircraft range.

Definition at line 18 of file newgrf_properties.h.