Simutrans-Squirrel-API
Public Member Functions | Private Member Functions | List of all members
convoy_list_x Class Reference

Public Member Functions

integer get_count ()
 

Private Member Functions

convoy_x _get ()
 
void _nexti ()
 

Detailed Description

Implements iterator to iterate through lists of convoys.

Usage:

local list = world.get_convoy_list_x()
foreach(cnv in list) {
... // cnv is an instance of the convoy_x class
}
See also
world::get_convoy_list, halt_x::get_convoy_list, line_x::get_convoy_list

Definition at line 15 of file api_convoy.cc.

Member Function Documentation

◆ _get()

convoy_x convoy_list_x::_get ( )
private

Meta-method to be used in foreach loops. Do not call them directly.

◆ _nexti()

void convoy_list_x::_nexti ( )
private

Meta-method to be used in foreach loops. Do not call them directly.

◆ get_count()

integer convoy_list_x::get_count ( )

Returns number of convoys in the list.


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