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

Public Member Functions

halt_x get_halt (player_x pl)
Public Member Functions inherited from coord3d
 coord (int x, int y, int z)
coord3d operator+ (coord3d other)
coord3d operator- (coord other)
coord3d operator+ (coord3d other)
coord3d operator- (coord other)
coord3d operator- ()
coord3d operator* (integer fac)
coord3d operator/ (integer fac)
string _tostring ()
string href (string text)
Public Member Functions inherited from coord
 coord (int x, int y)
coord operator+ (coord other)
coord operator- (coord other)
coord operator- ()
coord operator* (integer fac)
coord operator/ (integer fac)
string _tostring ()
string href (string text)
dir to_dir ()

Public Attributes

integer x
integer y
integer z
integer load
integer wait
integer flags
array< integer > journey_time
array< integer > waiting_time
array< integer > convoy_stopping_time
Public Attributes inherited from coord3d
integer x
 x-coordinate
integer y
 y-coordinate
integer z
 z-coordinate - height
Public Attributes inherited from coord
integer x
 x-coordinate
integer y
 y-coordinate

Detailed Description

Schedule entries

Definition at line 5 of file api_schedule.cc.

Member Function Documentation

◆ get_halt()

halt_x schedule_entry_x::get_halt ( player_x pl)

Returns halt at this entry position.

Parameters
plplayer that wants to use halt here
Returns
halt instance

Member Data Documentation

◆ convoy_stopping_time

array<integer> schedule_entry_x::convoy_stopping_time

Array of last 5 convoy stopping times (ticks), most recent at index 0. 0 means not yet recorded.

Definition at line 46 of file api_schedule.cc.

◆ flags

integer schedule_entry_x::flags

Stop flags bitmask (NO_LOAD=4, NO_UNLOAD=8, etc.).

Definition at line 30 of file api_schedule.cc.

◆ journey_time

array<integer> schedule_entry_x::journey_time

Array of last 5 journey times (ticks), most recent at index 0. The journey time is the time between departure from the previous stop and arrival at this stop. 0 means not yet recorded.

Definition at line 36 of file api_schedule.cc.

◆ load

integer schedule_entry_x::load

Minimum loading percentage.

Definition at line 22 of file api_schedule.cc.

◆ wait

integer schedule_entry_x::wait

Waiting time setting.

Definition at line 26 of file api_schedule.cc.

◆ waiting_time

array<integer> schedule_entry_x::waiting_time

Array of last 5 average waiting times of goods (ticks), most recent at index 0. 0 means not yet recorded.

Definition at line 41 of file api_schedule.cc.

◆ x

integer schedule_entry_x::x

X-coordinate of entry position

Definition at line 10 of file api_schedule.cc.

◆ y

integer schedule_entry_x::y

Y-coordinate of entry position

Definition at line 14 of file api_schedule.cc.

◆ z

integer schedule_entry_x::z

Z-coordinate of entry position

Definition at line 18 of file api_schedule.cc.


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