Simutrans-Squirrel-API
api_factory.cc
Go to the documentation of this file.
1 
14 public:
18 private:
19  void _nexti();
20 public:
24 private:
25  void _get();
26 public:
30  integer get_count();
31 };
37 public:
43  factory_x(integer x, integer y);
61  table<factory_production_x> input;
70  table<factory_production_x> output;
74  bool is_valid();
79  array<coord> get_consumers();
84  array<coord> get_suppliers();
89  string get_name();
94  string get_raw_name();
99  void set_name(string);
104  array<integer> get_production();
109  array<integer> get_power();
114  array<integer> get_boost_electric();
119  array<integer> get_boost_pax();
124  array<integer> get_boost_mail();
129  array<integer> get_pax_generated();
134  array<integer> get_pax_departed();
139  array<integer> get_pax_arrived();
144  array<integer> get_mail_generated();
149  array<integer> get_mail_departed();
154  array<integer> get_mail_arrived();
159  array<tile_x> get_tile_list();
164  array<tile_x> get_fields_list();
169  array<halt_x> get_halt_list();
183  integer get_field_count();
187  integer get_min_field_count();
192 };
198 public:
202  integer max_storage;
207  array<integer> get_storage();
212  array<integer> get_received();
217  array<integer> get_consumed();
222  array<integer> get_in_transit();
227  array<integer> get_delivered();
232  array<integer> get_produced();
237  integer get_base_production();
242  integer get_base_consumption();
247  integer get_consumption_factor();
252  integer get_production_factor();
253 };
table< factory_production_x > input
Definition: api_factory.cc:61
array< integer > get_storage()
array< integer > get_consumed()
array< integer > get_boost_pax()
void set_name(string)
array< integer > get_mail_arrived()
array< coord > get_consumers()
factory_x(integer x, integer y)
array< integer > get_produced()
integer get_consumption_factor()
array< tile_x > get_fields_list()
array< integer > get_mail_departed()
array< integer > get_pax_arrived()
array< integer > get_power()
array< integer > get_in_transit()
string get_name()
array< integer > get_boost_electric()
bool is_valid()
integer get_min_field_count()
integer x
x-coordinate
Definition: api_simple.cc:35
array< integer > get_production()
integer get_count()
array< integer > get_boost_mail()
array< integer > get_delivered()
table< factory_production_x > output
Definition: api_factory.cc:70
array< integer > get_received()
integer y
y-coordinate
Definition: api_simple.cc:37
string get_raw_name()
array< integer > get_mail_generated()
integer get_field_count()
integer get_production_factor()
factory_desc_x get_desc()
integer get_base_consumption()
array< coord > get_suppliers()
array< integer > get_pax_generated()
array< halt_x > get_halt_list()
integer get_base_production()
powerline_x get_transformer()
array< tile_x > get_tile_list()
array< integer > get_pax_departed()
bool is_transformer_connected()