Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_halt.cc
Go to the documentation of this file.
1
5class connection {
6public:
18integer weight;
24integer raw_weight;
33};
34
46public:
50private:
51 void _nexti();
52public:
56private:
58public:
59};
60
64public:
68 bool is_valid();
73 string get_name();
78 void set_name(string);
89private:
90 integer _cmp(halt_x halt);
91public:
98 integer is_connected(halt_x halt, good_desc_x freight_type);
104 bool accepts_good(good_desc_x freight_type);
109 array<integer> get_arrived();
114 array<integer> get_departed();
119 array<integer> get_waiting();
124 array<integer> get_happy();
131 array<integer> get_unhappy();
138 array<integer> get_noroute();
143 array<integer> get_convoys();
148 array<integer> get_walked();
160 array<tile_x> get_tile_list();
164 array<factory_x> get_factory_list();
170 integer get_freight_to_dest(good_desc_x freight, coord target);
176 integer get_freight_to_halt(good_desc_x freight, halt_x stop);
181 integer get_capacity(good_desc_x freight);
186 array<connection> get_connections(good_desc_x freight);
194};
integer raw_weight
Definition api_halt.cc:24
line_x line
Definition api_halt.cc:32
bool is_foot_path
Definition api_halt.cc:28
integer weight
Definition api_halt.cc:18
halt_x halt
Definition api_halt.cc:10
halt_x _get()
void _nexti()
string get_name()
integer get_capacity(good_desc_x freight)
line_list_x get_line_list()
array< integer > get_arrived()
array< integer > get_departed()
array< connection > get_connections(good_desc_x freight)
player_x get_owner()
convoy_list_x get_convoy_list()
array< integer > get_noroute()
integer _cmp(halt_x halt)
bool is_valid()
array< integer > get_happy()
static halt_x get_halt(coord3d pos, player_x pl)
integer get_freight_to_halt(good_desc_x freight, halt_x stop)
array< integer > get_walked()
array< integer > get_waiting()
array< tile_x > get_tile_list()
array< integer > get_convoys()
array< factory_x > get_factory_list()
integer get_freight_to_dest(good_desc_x freight, coord target)
array< integer > get_unhappy()
bool accepts_good(good_desc_x freight_type)
integer is_connected(halt_x halt, good_desc_x freight_type)
void set_name(string)