Simutrans-Squirrel-API
api_tiles.cc
Go to the documentation of this file.
1 
14 public:
23  tile_x(integer x, integer y, integer z);
27  bool is_valid();
44  string remove_object(player_x pl, map_objects type);
49  halt_x get_halt();
54  bool is_water();
59  bool is_bridge();
64  bool is_tunnel();
69  bool is_empty();
74  bool is_ground();
79  slope get_slope();
84  string get_text();
90  bool has_way(way_types wt);
95  bool has_ways();
100  bool has_two_ways();
106  way_x get_way(way_types wt);
112  dir get_way_dirs(waytypes wt);
118  dir get_way_dirs_masked(waytypes wt);
136  depot_x get_depot();
142  string can_remove_all_objects(player_x pl);
149  bool is_marked();
152  void unmark();
154  void mark();
156 
159  array<convoy_x> get_convoys();
170 };
176 class tile_object_list_x : public coord3d {
177 public:
181 private:
182  void _nexti();
183 public:
187 private:
188  void _get();
189 public:
193  integer get_count();
194 };
199 public:
206  square_x(integer x, integer y);
210  bool is_valid();
216  halt_x get_halt();
228  tile_x get_tile_at_height(integer z);
237  array<halt_x> get_halt_list();
242 };
climates get_climate()
tile_object_list_x get_objects()
way_types
Definition: api_const.cc:118
integer y
y-coordinate
Definition: api_simple.cc:75
halt_x get_halt()
bool is_tunnel()
void unmark()
Unmark tile.
square_x(integer x, integer y)
depot_x get_depot()
tile_x get_tile_at_height(integer z)
string can_remove_all_objects(player_x pl)
array< halt_x > get_halt_list()
halt_x get_halt()
way_x get_way(way_types wt)
dir get_canal_ribi()
bool is_empty()
bool is_ground()
void mark()
Mark tile.
map_object_x find_object(map_objects)
integer x
x-coordinate
Definition: api_simple.cc:35
dir get_way_dirs(waytypes wt)
bool has_ways()
climates
Definition: api_const.cc:248
bool is_marked()
Check if tile is marked.
bool has_two_ways()
tile_x get_ground_tile()
tile_x get_neighbour(way_types wt, dir d)
array< convoy_x > get_convoys()
integer y
y-coordinate
Definition: api_simple.cc:37
bool is_water()
bool is_valid()
dir get_way_dirs_masked(waytypes wt)
bool is_bridge()
integer x
x-coordinate
Definition: api_simple.cc:73
slope get_slope()
string get_text()
integer z
z-coordinate - height
Definition: api_simple.cc:77
bool has_way(way_types wt)
bool is_valid()
string remove_object(player_x pl, map_objects type)
tile_x(integer x, integer y, integer z)
map_objects
Definition: api_const.cc:163
halt_x get_player_halt(player_x pl)