Simutrans-Squirrel-API
api_convoy.cc
Go to the documentation of this file.
1 
16 public:
20 private:
21  void _nexti();
22 public:
26 private:
27  convoy_x _get();
28 public:
32  integer get_count();
33 };
39 public:
43  bool is_valid();
48  bool needs_electrification();
53  string get_name();
58  string set_name(string);
63  coord3d get_pos();
68  player_x get_owner();
73  array<integer> get_goods_catg_index();
79  way_types get_waytype();
83  schedule_x get_schedule();
88  array<integer> get_capacity();
93  array<integer> get_transported_goods();
98  array<integer> get_revenue();
103  array<integer> get_cost();
108  array<integer> get_profit();
113  array<integer> get_traveled_distance();
118  array<integer> get_way_tolls();
122  integer get_distance_traveled_total();
126  line_x get_line();
133  string set_line(player_x player, line_x line);
137  array<vehicle_desc_x> get_vehicles();
141  integer get_speed();
145  integer get_loading_limit();
149  integer get_loading_level();
153  coord3d get_home_depot();
157  bool has_obsolete_vehicles();
162  string toggle_withdraw(player_x);
166  bool is_withdrawn();
170  bool is_in_depot();
175  string destroy(player_x);
179  bool is_schedule_editor_open();
188  static integer calc_max_speed(integer power, integer weight, integer speed_limit);
194  static integer speed_to_tiles_per_month(integer speed);
195 };
way_types
Definition: api_const.cc:101
integer get_count()
convoy_x _get()