Class to access halts / stations / bus stops.
Definition at line 31 of file api_halt.cc.
◆ _cmp()
integer halt_x::_cmp |
( |
halt_x |
halt | ) |
|
|
private |
compare classes using metamethods
- Parameters
-
- Returns
- difference in the unique id of the halthandle
◆ accepts_good()
Does this station accept this type of good?
- Parameters
-
- Returns
- the answer to this question
◆ get_arrived()
array<integer> halt_x::get_arrived |
( |
| ) |
|
Get monthly statistics of number of arrived goods.
- Returns
- array, index [0] corresponds to current month
◆ get_capacity()
Returns capacity of this halt for the given freight
- Parameters
-
◆ get_connections()
Returns list of connected halts for the specific freight
type.
- Parameters
-
◆ get_convoy_list()
Exports list of convoys that stop at this halt.
◆ get_convoys()
array<integer> halt_x::get_convoys |
( |
| ) |
|
Get monthly statistics of number of convoys that stopped at this station.
- Returns
- array, index [0] corresponds to current month
◆ get_departed()
array<integer> halt_x::get_departed |
( |
| ) |
|
Get monthly statistics of number of departed goods.
- Returns
- array, index [0] corresponds to current month
◆ get_factory_list()
array<factory_x> halt_x::get_factory_list |
( |
| ) |
|
Get list of factories connected to this station.
◆ get_freight_to_dest()
Returns amount of freight
at this halt that is going to target
- Parameters
-
freight | freight type |
target | coordinate of target |
◆ get_freight_to_halt()
Returns amount of freight
at this halt that scheduled to stop
- Parameters
-
freight | freight type |
stop | next transfer stop |
◆ get_halt()
Returns halt at given position.
- Parameters
-
pos | coordinate |
pl | player that wants to use halt here |
- Returns
- halt instance
◆ get_happy()
array<integer> halt_x::get_happy |
( |
| ) |
|
Get monthly statistics of number of happy passengers.
- Returns
- array, index [0] corresponds to current month
◆ get_line_list()
Exports list of lines that serve this halt.
◆ get_name()
string halt_x::get_name |
( |
| ) |
|
Station name.
- Returns
- name
◆ get_noroute()
array<integer> halt_x::get_noroute |
( |
| ) |
|
Get monthly statistics of number of passengers with no-route.
These passengers could not start their journey as they find no route to their destination.
- Returns
- array, index [0] corresponds to current month
◆ get_owner()
Station owner.
- Returns
- owner
◆ get_tile_list()
array<tile_x> halt_x::get_tile_list |
( |
| ) |
|
Get list of tiles belonging to this station.
◆ get_unhappy()
array<integer> halt_x::get_unhappy |
( |
| ) |
|
Get monthly statistics of number of unhappy passengers.
These passengers could not start their journey as station was crowded.
- Returns
- array, index [0] corresponds to current month
◆ get_waiting()
array<integer> halt_x::get_waiting |
( |
| ) |
|
Get monthly statistics of number of waiting goods.
- Returns
- array, index [0] corresponds to current month
◆ get_walked()
array<integer> halt_x::get_walked |
( |
| ) |
|
Get monthly statistics of number of passengers that could walk to their destination.
- Returns
- array, index [0] corresponds to current month
◆ is_connected()
Quick check if there is connection for certain freight to the other halt.
- Parameters
-
halt | the other halt |
freight_type | freight type |
- Returns
- 0 - not connected, 1 - connected, -1 - undecided (call this method again later)
◆ is_valid()
bool halt_x::is_valid |
( |
| ) |
|
- Returns
- if object is still valid.
The documentation for this class was generated from the following file: