|
Simutrans-Squirrel-API
|
Static Public Member Functions | |
| static dir | to_dir (slope s) |
Static Public Attributes | |
Named slopes. | |
| static const slope | flat |
| static const slope | north |
| North slope. | |
| static const slope | west |
| West slope. | |
| static const slope | east |
| East slope. | |
| static const slope | south |
| South slope. | |
| static const slope | northwest |
| NW corner. | |
| static const slope | northeast |
| NE corner. | |
| static const slope | southeast |
| SE corner. | |
| static const slope | southwest |
| SW corner. | |
| static const slope | raised |
| special meaning: used as slope of bridgeheads | |
| static const slope | all_up_slope = 82 |
| used for terraforming tools | |
| static const slope | all_down_slope = 83 |
| used for terraforming tools | |
Class holding static methods to work with slopes. Slopes are just integers.
Definition at line 180 of file api_simple.cc.
Converts slope to dir: direction goes upward on slope. If slope cannot be walked on, it returns dir::none.
| s | slope |
1.8.14