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

Public Member Functions

integer get_count ()
 
- 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 ()
 

Private Member Functions

void _get ()
 
void _nexti ()
 

Additional Inherited Members

- 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

Class that holds an iterator through the list of objects on a particular tile.

For an example see tile_x.

Definition at line 176 of file api_tiles.cc.

Member Function Documentation

◆ _get()

void tile_object_list_x::_get ( )
private

Meta-method to be used in foreach loops to loop over all objects on the tile. Do not call it directly.

◆ _nexti()

void tile_object_list_x::_nexti ( )
private

Meta-method to be used in foreach loops to loop over all objects on the tile. Do not call it directly.

◆ get_count()

integer tile_object_list_x::get_count ( )

Returns number of objects on the tile.


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