Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
way_desc_x Class Reference
Inheritance diagram for way_desc_x:
Collaboration diagram for way_desc_x:

Public Member Functions

bool has_double_slopes ()
way_system_types get_system_type ()
Public Member Functions inherited from obj_desc_transport_x
integer get_maintenance ()
integer get_cost ()
way_types get_waytype ()
integer get_topspeed ()
Public Member Functions inherited from obj_desc_time_x
time_x get_intro_date ()
time_x get_retire_date ()
bool is_future (time_x time)
bool is_retired (time_x time)
bool is_available (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_x > get_available_ways (way_types wt, way_system_types st)

Detailed Description

Object descriptors for ways.

Definition at line 297 of file api_obj_desc.cc.

Member Function Documentation

◆ get_available_ways()

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: