Simutrans-Squirrel-API
Static Public Member Functions | List of all members
slope Class Reference

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
 

Detailed Description

Class holding static methods to work with slopes. Slopes are just integers.

Definition at line 180 of file api_simple.cc.

Member Function Documentation

◆ to_dir()

static dir slope::to_dir ( slope  s)
static

Converts slope to dir: direction goes upward on slope. If slope cannot be walked on, it returns dir::none.

Parameters
sslope

The documentation for this class was generated from the following file: