Simutrans-Squirrel-API
api_map_objects.cc
Go to the documentation of this file.
1 
2  ();
8 public:
18  map_object_x(integer x, integer y, integer z, map_objects type);
22  bool is_valid();
30  string get_name();
38  coord3d get_pos();
43  string is_removable(player_x);
51  void mark();
55  void unmark();
59  bool is_marked();
60 };
64 class tree_x : public map_object_x {
65 public:
69  integer get_age();
74 };
78 class building_x : public map_object_x {
79 public:
87  city_x get_city();
91  bool is_townhall();
95  bool is_headquarter();
99  bool is_monument();
104  integer get_passenger_level();
109  integer get_mail_level();
117  array<tile_x> get_tile_list();
122 };
127 class depot_x : public building_x {
128 public:
136  void append_vehicle(player_x pl, convoy_x cnv, vehicle_desc_x desc);
150  array<convoy_x> get_convoy_list();
157  static array<depot_x> get_depot_list(player_x pl, way_types wt);
158 };
162 class way_x : public map_object_x {
163 public:
167  bool has_sidewalk();
171  bool is_electrified();
175  bool has_sign();
179  bool has_signal();
183  bool has_wayobj();
187  bool is_crossing();
192  dir get_dirs();
207  integer get_max_speed();
212  array<integer> get_transported_goods();
217  array<integer> get_convoys_passed();
218 };
222 class label_x : public map_object_x {
223 public:
231  static string create(coord pos, player_x pl, string text);
237  void set_text(string text);
242  string get_text();
243 };
247 class sign_x : public map_object_x {
248 public:
258  bool can_pass(player_x player);
259 };
264 class powerline_x : public map_object_x {
265 public:
270  bool is_connected(powerline_x pl);
271 };
276 class transformer_x : public powerline_x {
277 public:
281  void get_factory();
282 };
286 class field_x : public map_object_x {
287 public:
293  bool is_deletable();
299 };
303 class wayobj_x : public map_object_x {
304 public:
309 };
313 class bridge_x : public map_object_x {
314 public:
319 };
323 class tunnel_x : public map_object_x {
324 public:
329 };
way_types
Definition: api_const.cc:118
integer get_age()
array< convoy_x > get_convoy_list()
integer y
y-coordinate
Definition: api_simple.cc:75
integer get_max_speed()
bool is_electrified()
building_desc_x get_desc()
array< tile_x > get_tile_list()
array< integer > get_transported_goods()
string get_name()
way_desc_x get_desc()
bridge_desc_x get_desc()
map_objects get_type()
bool has_sidewalk()
tunnel_desc_x get_desc()
map_object_x(integer x, integer y, integer z, map_objects type)
void append_vehicle(player_x pl, convoy_x cnv, vehicle_desc_x desc)
tree_desc_x get_desc()
bool is_marked()
string get_text()
wayobj_desc_x get_desc()
city_x get_city()
static string create(coord pos, player_x pl, string text)
bool is_crossing()
string is_removable(player_x)
integer get_passenger_level()
way_types get_waytype()
bool is_valid()
integer get_mail_level()
void start_all_convoys(player_x)
bool can_pass(player_x player)
dir get_dirs_masked()
player_x get_owner()
factory_x get_factory()
static array< depot_x > get_depot_list(player_x pl, way_types wt)
bool has_wayobj()
bool has_signal()
dir get_dirs()
sign_desc_x get_desc()
array< integer > get_convoys_passed()
bool has_sign()
bool is_monument()
factory_x get_factory()
integer x
x-coordinate
Definition: api_simple.cc:73
bool is_deletable()
coord3d get_pos()
void start_convoy(player_x, convoy_x)
integer z
z-coordinate - height
Definition: api_simple.cc:77
bool is_headquarter()
bool is_townhall()
bool is_same_building(building_x)
map_objects
Definition: api_const.cc:163
bool is_connected(powerline_x pl)
void get_factory()
void set_text(string text)