Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_world.cc
Go to the documentation of this file.
1
5class world : public extend_get {
6public:
12 static bool is_coord_valid(coord k);
23 static integer get_season();
41 static bool create_player(integer player_nr, integer player_type);
54 static bool remove_player(player_x pl);
67 static integer generate_goods(coord from, coord to, good_desc_x desc, integer count);
72 static void get_player(any_x pl);
81 static array<integer> get_citizens();
86 static array<integer> get_growth();
91 static array<integer> get_towns();
96 static array<integer> get_factories();
101 static array<integer> get_convoys();
106 static array<integer> get_citycars();
111 static array<integer> get_ratio_pax();
117 static array<integer> get_generated_pax();
122 static array<integer> get_ratio_mail();
128 static array<integer> get_generated_mail();
134 static array<integer> get_ratio_goods();
140 static array<integer> get_transported_goods();
145 static array<integer> get_year_citizens();
150 static array<integer> get_year_growth();
155 static array<integer> get_year_towns();
160 static array<integer> get_year_factories();
165 static array<integer> get_year_convoys();
170 static array<integer> get_year_citycars();
175 static array<integer> get_year_ratio_pax();
181 static array<integer> get_year_generated_pax();
186 static array<integer> get_year_ratio_mail();
192 static array<integer> get_year_generated_mail();
198 static array<integer> get_year_ratio_goods();
204 static array<integer> get_year_transported_goods();
208 static bool use_timeline();
227 static coord get_size();
231 static void get_bits_per_month();
232};
233
246public:
250private:
251 void _nexti();
252public:
256private:
257 building_x _get(integer);
258public:
262 integer get_count();
263};
264
276public:
280private:
281 void _nexti();
282public:
286private:
287 label_x _get(integer);
288public:
292 integer get_count();
293};
294
string get_version_number()
string get_pakset_name()
integer get_count()
building_x _get(integer)
label_x _get(integer)
integer get_count()
static array< integer > get_convoys()
static array< integer > get_towns()
static array< integer > get_factories()
static array< integer > get_transported_goods()
static array< integer > get_citycars()
static array< integer > get_year_generated_pax()
static time_ticks_x get_time()
static array< integer > get_year_factories()
static label_list_x get_label_list()
static array< integer > get_generated_mail()
static array< integer > get_year_towns()
static array< integer > get_year_ratio_pax()
static void get_bits_per_month()
static array< integer > get_year_ratio_goods()
static convoy_list_x get_convoy_list()
static city_x find_nearest_city(coord k)
static array< integer > get_citizens()
static array< integer > get_year_generated_mail()
static array< integer > get_ratio_pax()
static array< integer > get_generated_pax()
static array< integer > get_year_convoys()
static void get_player(any_x pl)
static array< integer > get_year_citizens()
static array< integer > get_ratio_goods()
static integer get_season()
static array< integer > get_year_growth()
static array< integer > get_year_transported_goods()
static array< integer > get_growth()
static coord get_size()
static array< integer > get_year_citycars()
static attraction_list_x get_attraction_list()
static bool is_coord_valid(coord k)
static bool use_timeline()
static array< integer > get_year_ratio_mail()
static array< integer > get_ratio_mail()
static bool create_player(integer player_nr, integer player_type)
static bool remove_player(player_x pl)
static integer generate_goods(coord from, coord to, good_desc_x desc, integer count)