Simutrans-Squirrel-API
Public Member Functions | Public Attributes | List of all members
schedule_entry_x Class Reference
Inheritance diagram for schedule_entry_x:
coord3d coord

Public Member Functions

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

Public Attributes

integer load
 
integer wait
 
- 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.

Constructor & Destructor Documentation

◆ schedule_entry_x()

schedule_entry_x::schedule_entry_x ( coord3d  pos,
integer  wait,
integer  load 
)

Constructor

Parameters
poscoordinate of entry
waitwaiting time
loadminimum loading

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

◆ waiting_time_to_string()

string schedule_entry_x::waiting_time_to_string ( )

Returns waiting time formatted as string.

Member Data Documentation

◆ load

integer schedule_entry_x::load

Minimum loading percentage.

Definition at line 10 of file api_schedule.cc.

◆ wait

integer schedule_entry_x::wait

Waiting time setting.

Definition at line 14 of file api_schedule.cc.


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