Simutrans-Squirrel-API
api_map_objects.cc
Go to the documentation of this file.
1 
2  ();
8 public:
17  map_object_x(integer x, integer y, integer z, map_objects type);
21  bool is_valid();
29  string get_name();
37  coord3d get_pos();
42  string is_removable(player_x);
50  void mark();
54  void unmark();
58  bool is_marked();
59 };
63 class tree_x : public map_object_x {
64 public:
68  integer get_age();
72  tree_desc_x get_desc();
73 };
77 class building_x : public map_object_x {
78 public:
82  factory_x get_factory();
86  city_x get_city();
90  bool is_townhall();
94  bool is_headquarter();
98  bool is_monument();
103  integer get_passenger_level();
108  integer get_mail_level();
112  building_desc_x get_desc();
116  bool is_same_building(building_x);
117 };
122 class depot_x : public building_x {
123 public:
131  string append_vehicle(player_x pl, convoy_x cnv, vehicle_desc_x desc);
136  string start_convoy(player_x, convoy_x);
141  string start_all_convoys(player_x);
145  array<convoy_x> get_convoy_list();
146 };
150 class way_x : public map_object_x {
151 public:
155  bool has_sidewalk();
159  bool is_electrified();
163  bool has_sign();
167  bool has_signal();
171  bool has_wayobj();
175  bool is_crossing();
180  dir get_dirs();
185  dir get_dirs_masked();
189  way_desc_x get_desc();
190 };
194 class label_x : public map_object_x {
195 public:
203  static string create(coord pos, player_x pl, string text);
209  string set_text(string text);
214  string get_text();
215 };
219 class sign_x : public map_object_x {
220 public:
224  sign_desc_x get_desc();
230  bool can_pass(player_x player);
231 };
way_types
Definition: api_const.cc:101
integer y
y-coordinate
Definition: api_simple.cc:75
string get_name()
map_objects get_type()
map_object_x(integer x, integer y, integer z, map_objects type)
bool is_marked()
string is_removable(player_x)
way_types get_waytype()
bool is_valid()
player_x get_owner()
integer x
x-coordinate
Definition: api_simple.cc:73
coord3d get_pos()
integer z
z-coordinate - height
Definition: api_simple.cc:77
map_objects
Definition: api_const.cc:146