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
 coord (int x, int y, int z)
 
coord3d operator+ (coord3d other)
 
coord3d operator- (coord other)
 
coord3d operator+ (coord3d other)
 
coord3d operator- (coord other)
 
coord3d operator- ()
 
coord3d operator* (integer fac)
 
coord3d operator/ (integer fac)
 
string _tostring ()
 
string href (string text)
 
- Public Member Functions inherited from coord
 coord (int x, int y)
 
coord operator+ (coord other)
 
coord operator- (coord other)
 
coord operator- ()
 
coord operator* (integer fac)
 
coord operator/ (integer fac)
 
string _tostring ()
 
string href (string text)
 
dir to_dir ()
 

Private Member Functions

void _nexti ()
 
void _get ()
 

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 158 of file api_tiles.cc.

Member Function Documentation

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.

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.

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: