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();
41  string remove_object(player_x pl, map_objects type);
46  halt_x get_halt();
51  bool is_water();
56  bool is_bridge();
61  bool is_tunnel();
66  bool is_empty();
71  bool is_ground();
76  slope get_slope();
81  string get_text();
87  bool has_way(way_types wt);
92  bool has_ways();
97  bool has_two_ways();
103  dir get_way_dirs(waytypes wt);
109  dir get_way_dirs_masked(waytypes wt);
128  string can_remove_all_objects(player_x pl);
135  bool is_marked();
138  void unmark();
140  void mark();
142 
152 };
158 class tile_object_list_x : public coord3d {
159 public:
163 private:
164  void _nexti();
165 public:
169 private:
170  void _get();
171 public:
175  integer get_count();
176 };
181 public:
188  square_x(integer x, integer y);
192  bool is_valid();
198  halt_x get_halt();
204  halt_x get_player_halt(player_x pl);
210  tile_x get_tile_at_height(integer z);
215  tile_x get_ground_tile();
219  array<halt_x> get_halt_list();
223  climates get_climate();
224 };
tile_object_list_x get_objects()
way_types
Definition: api_const.cc:101
integer y
y-coordinate
Definition: api_simple.cc:75
bool is_tunnel()
void unmark()
Unmark tile.
string can_remove_all_objects(player_x pl)
halt_x get_halt()
dir get_canal_ribi()
bool is_empty()
bool is_ground()
void mark()
Mark tile.
map_object_x find_object(map_objects)
dir get_way_dirs(waytypes wt)
bool has_ways()
climates
Definition: api_const.cc:231
bool is_marked()
Check if tile is marked.
bool has_two_ways()
tile_x get_neighbour(way_types wt, dir d)
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)
string remove_object(player_x pl, map_objects type)
tile_x(integer x, integer y, integer z)
map_objects
Definition: api_const.cc:146