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  void set_name(string);
63  coord3d get_pos();
73  array<integer> get_goods_catg_index();
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  void 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();
157  bool has_obsolete_vehicles();
166  bool is_withdrawn();
170  bool is_in_depot();
174  bool is_waiting();
178  bool is_loading();
185  void destroy(player_x);
193  integer get_tile_length();
209  static integer calc_max_speed(integer power, integer weight, integer speed_limit);
215  static integer speed_to_tiles_per_month(integer speed);
216 };
array< integer > get_capacity()
coord3d get_home_depot()
array< integer > get_revenue()
way_types
Definition: api_const.cc:118
bool is_in_depot()
static integer speed_to_tiles_per_month(integer speed)
void destroy(player_x)
coord3d get_pos()
integer get_loading_limit()
schedule_x get_schedule()
integer get_distance_traveled_total()
bool is_schedule_editor_open()
void set_name(string)
bool is_valid()
bool is_withdrawn()
array< integer > get_profit()
bool has_obsolete_vehicles()
array< integer > get_transported_goods()
static integer calc_max_speed(integer power, integer weight, integer speed_limit)
integer get_tile_length()
bool is_waiting()
void toggle_withdraw(player_x)
void change_schedule(player_x, schedule_x)
void set_line(player_x player, line_x line)
array< integer > get_cost()
array< integer > get_traveled_distance()
array< vehicle_desc_x > get_vehicles()
integer get_count()
player_x get_owner()
integer get_speed()
integer get_loading_level()
way_types get_waytype()
bool is_loading()
line_x get_line()
convoy_x _get()
bool needs_electrification()
array< integer > get_way_tolls()
array< integer > get_goods_catg_index()
string get_name()