|
Simutrans-Squirrel-API
124.3 (r11590 on 11-Jan-2025)
|
Named directions. | |
| static const dir | none |
| static const dir | north |
| static const dir | east |
| static const dir | northeast |
| static const dir | south |
| static const dir | northsouth |
| static const dir | southeast |
| static const dir | northsoutheast |
| static const dir | west |
| static const dir | northwest |
| static const dir | eastwest |
| static const dir | northeastwest |
| static const dir | southwest |
| static const dir | northsouthwest |
| static const dir | southeastwest |
| static const dir | all |
| static bool | is_single (dir d) |
| static bool | is_twoway (dir d) |
| static bool | is_threeway (dir d) |
| static bool | is_curve (dir d) |
| static bool | is_straight (dir d) |
| static dir | double (dir d) |
| static dir | backward (dir d) |
| static slope | to_slope (dir d) |
| static coord | to_coord () |
Class holding static methods to work with directions. Directions are just bit-encoded integers.
Definition at line 110 of file api_simple.cc.
| d | direction to test |
| d | direction |
|
static |
| d | direction to test |
|
static |
| d | direction to test |
|
static |
| d | direction to test |
|
static |
| d | direction to test |
|
static |
| d | direction to test |
|
static |
Helper function to convert direction vector to dir type.
Converts direction to slope: direction goes upward on slope.
| d | direction |
|
static |
Definition at line 129 of file api_simple.cc.
|
static |
Definition at line 116 of file api_simple.cc.
|
static |
Definition at line 124 of file api_simple.cc.
|
static |
Definition at line 114 of file api_simple.cc.
|
static |
Definition at line 115 of file api_simple.cc.
|
static |
Definition at line 117 of file api_simple.cc.
|
static |
Definition at line 125 of file api_simple.cc.
|
static |
Definition at line 119 of file api_simple.cc.
|
static |
Definition at line 121 of file api_simple.cc.
|
static |
Definition at line 127 of file api_simple.cc.
|
static |
Definition at line 123 of file api_simple.cc.
|
static |
Definition at line 118 of file api_simple.cc.
|
static |
Definition at line 120 of file api_simple.cc.
|
static |
Definition at line 128 of file api_simple.cc.
|
static |
Definition at line 126 of file api_simple.cc.
|
static |
Definition at line 122 of file api_simple.cc.