|
Simutrans-Squirrel-API
125.0r12321
|
Static Public Member Functions | |
| 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 () |
Static Public Attributes | |
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 |
Class holding static methods to work with directions. Directions are just bit-encoded integers.
Definition at line 129 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 148 of file api_simple.cc.
|
static |
Definition at line 135 of file api_simple.cc.
|
static |
Definition at line 143 of file api_simple.cc.
|
static |
Definition at line 133 of file api_simple.cc.
|
static |
Definition at line 134 of file api_simple.cc.
|
static |
Definition at line 136 of file api_simple.cc.
|
static |
Definition at line 144 of file api_simple.cc.
|
static |
Definition at line 138 of file api_simple.cc.
|
static |
Definition at line 140 of file api_simple.cc.
|
static |
Definition at line 146 of file api_simple.cc.
|
static |
Definition at line 142 of file api_simple.cc.
|
static |
Definition at line 137 of file api_simple.cc.
|
static |
Definition at line 139 of file api_simple.cc.
|
static |
Definition at line 147 of file api_simple.cc.
|
static |
Definition at line 145 of file api_simple.cc.
|
static |
Definition at line 141 of file api_simple.cc.
1.8.13