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

Public Attributes

halt_x halt
integer weight
integer raw_weight
bool is_foot_path
line_x line

Detailed Description

Connection returned by halt_x::get_connections

Definition at line 5 of file api_halt.cc.

Member Data Documentation

◆ halt

halt_x connection::halt

Halt to which the connection goes.

Definition at line 10 of file api_halt.cc.

◆ is_foot_path

bool connection::is_foot_path

True if passengers traverse this connection on foot.

Definition at line 28 of file api_halt.cc.

◆ line

line_x connection::line

Line that is used for this connection.

Definition at line 32 of file api_halt.cc.

◆ raw_weight

integer connection::raw_weight

Weight used internally by route search before conversion. In route-cost mode this is the route cost. With time-based routing it is the journey time in ticks.

Definition at line 24 of file api_halt.cc.

◆ weight

integer connection::weight

Connection weight converted from ticks to displayed time units. This value represents journey time only when time-based routing is enabled for the requested goods category. In route-cost mode the raw route cost is passed through the time conversion and this value has no useful meaning; use raw_weight instead.

Definition at line 18 of file api_halt.cc.


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