Simutrans-Squirrel-API  r11919
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. More...
 
static const slope west
 West slope. More...
 
static const slope east
 East slope. More...
 
static const slope south
 South slope. More...
 
static const slope northwest
 NW corner. More...
 
static const slope northeast
 NE corner. More...
 
static const slope southeast
 SE corner. More...
 
static const slope southwest
 SW corner. More...
 
static const slope raised
 special meaning: used as slope of bridgeheads More...
 
static const slope all_up_slope = 82
 used for terraforming tools More...
 
static const slope all_down_slope = 83
 used for terraforming tools More...
 

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

Member Data Documentation

◆ all_down_slope

const slope slope::all_down_slope = 83
static

used for terraforming tools

Definition at line 195 of file api_simple.cc.

◆ all_up_slope

const slope slope::all_up_slope = 82
static

used for terraforming tools

Definition at line 194 of file api_simple.cc.

◆ east

const slope slope::east
static

East slope.

Definition at line 187 of file api_simple.cc.

◆ flat

const slope slope::flat
static

Definition at line 184 of file api_simple.cc.

◆ north

const slope slope::north
static

North slope.

Definition at line 185 of file api_simple.cc.

◆ northeast

const slope slope::northeast
static

NE corner.

Definition at line 190 of file api_simple.cc.

◆ northwest

const slope slope::northwest
static

NW corner.

Definition at line 189 of file api_simple.cc.

◆ raised

const slope slope::raised
static

special meaning: used as slope of bridgeheads

Definition at line 193 of file api_simple.cc.

◆ south

const slope slope::south
static

South slope.

Definition at line 188 of file api_simple.cc.

◆ southeast

const slope slope::southeast
static

SE corner.

Definition at line 191 of file api_simple.cc.

◆ southwest

const slope slope::southwest
static

SW corner.

Definition at line 192 of file api_simple.cc.

◆ west

const slope slope::west
static

West slope.

Definition at line 186 of file api_simple.cc.


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