Simutrans-Squirrel-API
Public Member Functions | Static Public Member Functions | List of all members
way_desc_x Class Reference
Inheritance diagram for way_desc_x:
obj_desc_transport_x obj_desc_time_x obj_desc_x extend_get

Public Member Functions

way_system_types get_system_type ()
 
bool has_double_slopes ()
 
- Public Member Functions inherited from obj_desc_transport_x
integer get_cost ()
 
integer get_maintenance ()
 
integer get_topspeed ()
 
way_types get_waytype ()
 
- Public Member Functions inherited from obj_desc_time_x
time_x get_intro_date ()
 
time_x get_retire_date ()
 
bool is_available (time_x time)
 
bool is_future (time_x time)
 
bool is_retired (time_x time)
 
- Public Member Functions inherited from obj_desc_x
string get_name ()
 
bool is_equal (obj_desc_x other)
 
bool is_valid ()
 

Static Public Member Functions

static array< way_desc_xget_available_ways (way_types wt, way_system_types st)
 

Detailed Description

Object descriptors for ways.

Definition at line 313 of file api_obj_desc.cc.

Member Function Documentation

◆ get_available_ways()

static array<way_desc_x> way_desc_x::get_available_ways ( way_types  wt,
way_system_types  st 
)
static

Generates a list of all ways available for building.

Parameters
wtwaytype
stsystem type of way
Returns
the list

◆ get_system_type()

way_system_types way_desc_x::get_system_type ( )
Returns
system type of the way, see way_system_types.

◆ has_double_slopes()

bool way_desc_x::has_double_slopes ( )
Returns
true if this way can be build on the steeper (double) slopes.

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