Simutrans-Squirrel-API
Public Member Functions | List of all members
way_x Class Reference
Inheritance diagram for way_x:
map_object_x extend_get coord3d ingame_object

Public Member Functions

bool has_sidewalk ()
 
bool is_electrified ()
 
bool has_sign ()
 
bool has_signal ()
 
bool has_wayobj ()
 
bool is_crossing ()
 
dir get_dirs ()
 
dir get_dirs_masked ()
 
way_desc_x get_desc ()
 
- Public Member Functions inherited from map_object_x
 map_object_x (integer x, integer y, integer z, map_objects type)
 
bool is_valid ()
 
player_x get_owner ()
 
string get_name ()
 
way_types get_waytype ()
 
coord3d get_pos ()
 
string is_removable (player_x)
 
map_objects get_type ()
 
void mark ()
 
void unmark ()
 
bool is_marked ()
 

Detailed Description

Ways.

Definition at line 150 of file api_map_objects.cc.

Member Function Documentation

way_desc_x way_x::get_desc ( )
Returns
object descriptor.
dir way_x::get_dirs ( )

Return directions of this way. One-way signs are ignored here.

Returns
direction
dir way_x::get_dirs_masked ( )

Return directions of this way. Some signs restrict available directions.

Returns
direction
bool way_x::has_sidewalk ( )
Returns
if this way has sidewalk - only meaningful for roads
bool way_x::has_sign ( )
Returns
whether there is a road-sign associated to the way on the tile
bool way_x::has_signal ( )
Returns
whether there is a signal associated to the way on the tile
bool way_x::has_wayobj ( )
Returns
whether there is a way-object associated to the way on the tile
bool way_x::is_crossing ( )
Returns
whether there is a crossing associated to the way on the tile
bool way_x::is_electrified ( )
Returns
whether way is electrified by some way-object

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