|
Simutrans-Squirrel-API OTRP v63_4
|

Public Member Functions | |
| schedule_x () | |
| void | set_next_line (line_x line) |
| void | set_next_line () |
Public Attributes | |
| array< schedule_entry_x > | entries |
| way_types | waytype |
| integer | base_waiting_time |
| integer | current |
| integer | flags |
| integer | max_speed |
| line_x | departure_slot_group_id |
| line_x | next_line |
Class holding the schedule
Definition at line 57 of file api_schedule.cc.
| schedule_x::schedule_x | ( | ) |
Constructor
| void schedule_x::set_next_line | ( | line_x | line | ) |
Sets the next line, applying validity checks (waytype match, >=2 entries, stoppable halt at first stop). Pass null to unset.
| line | the candidate next line, or null |
| integer schedule_x::base_waiting_time |
Additional base waiting time for this schedule.
Definition at line 76 of file api_schedule.cc.
| integer schedule_x::current |
Current stop of schedule: default first stop (schedule of line) or next stop of convoy (schedule of convoy).
In order to change this value for a convoy call convoy_x::change_schedule.
Definition at line 86 of file api_schedule.cc.
| line_x schedule_x::departure_slot_group_id |
The leader line of the departure slot group. A line in its own group has this set to its own line. null if not assigned to any departure slot group.
Definition at line 103 of file api_schedule.cc.
| array< schedule_entry_x > schedule_x::entries |
The list of schedule targets.
Definition at line 66 of file api_schedule.cc.
| integer schedule_x::flags |
Schedule-level flags bitmask (TEMPORARY=1, SAME_DEP_TIME=2, FULL_LOAD_ACCELERATION=4, FULL_LOAD_TIME=8, REVERSE_DEFAULT=16).
Definition at line 91 of file api_schedule.cc.
| integer schedule_x::max_speed |
Schedule-level operational maximum speed (km/h). 0 means no limit.
Definition at line 96 of file api_schedule.cc.
| line_x schedule_x::next_line |
The line to which the convoy transitions when this schedule is completed. Read-only: use set_next_line to change this value. null if not set.
Definition at line 110 of file api_schedule.cc.
| way_types schedule_x::waytype |
Waytype of schedule.
Definition at line 71 of file api_schedule.cc.