Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
tile_object_list_x Class Reference
Inheritance diagram for tile_object_list_x:
Collaboration diagram for tile_object_list_x:

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 ()
map_object_x _get (integer)

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

map_object_x tile_object_list_x::_get ( integer )
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: