Simutrans-Squirrel-API
|
Public Member Functions | |
string | get_name () |
player_x | get_owner () |
coord3d | get_pos () |
map_objects | get_type () |
way_types | get_waytype () |
bool | is_marked () |
string | is_removable (player_x) |
bool | is_valid () |
map_object_x (integer x, integer y, integer z, map_objects type) | |
void | mark () |
void | unmark () |
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 () |
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 | |
Class to access objects on the map These classes cannot modify anything.
Definition at line 7 of file api_map_objects.cc.
map_object_x::map_object_x | ( | integer | x, |
integer | y, | ||
integer | z, | ||
map_objects | type | ||
) |
Constructor. Implemented by derived classes. Fails if no object of precisely the requested type is on the tile. If there is more than one object of this type on the tile then it will return the first.
x | |
y | |
z | |
type | of the map object |
string map_object_x::get_name | ( | ) |
player_x map_object_x::get_owner | ( | ) |
coord3d map_object_x::get_pos | ( | ) |
map_objects map_object_x::get_type | ( | ) |
way_types map_object_x::get_waytype | ( | ) |
bool map_object_x::is_marked | ( | ) |
string map_object_x::is_removable | ( | player_x | ) |
Checks whether player can remove this object.
bool map_object_x::is_valid | ( | ) |
void map_object_x::mark | ( | ) |
Marks the object for highlighting. Use with care.
void map_object_x::unmark | ( | ) |
Unmarks the object for highlighting.