Simutrans-Squirrel-API
|
Public Member Functions | |
climates | get_climate () |
tile_x | get_ground_tile () |
halt_x | get_halt () |
array< halt_x > | get_halt_list () |
halt_x | get_player_halt (player_x pl) |
tile_x | get_tile_at_height (integer z) |
bool | is_valid () |
square_x (integer x, integer y) | |
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 () |
Additional Inherited Members | |
Public Attributes inherited from coord | |
integer | x |
x-coordinate | |
integer | y |
y-coordinate | |
Class to map squares, which holds all the tiles on one particular coordinate.
Definition at line 198 of file api_tiles.cc.
square_x::square_x | ( | integer | x, |
integer | y | ||
) |
Constructor. Returns map square at particular 2d coordinate. Raises error, if (x
, y
) coordinate are out-of-range.
x | x-coordinate |
y | z-coordinate |
climates square_x::get_climate | ( | ) |
Returns climate of ground tile.
halt_x square_x::get_halt | ( | ) |
Access some halt at this square.
array<halt_x> square_x::get_halt_list | ( | ) |
Returns list of stations that cover this tile.
Access halt of this player at this map position.
pl | potential owner of halt |
tile_x square_x::get_tile_at_height | ( | integer | z | ) |
bool square_x::is_valid | ( | ) |