Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_obj_desc.cc
Go to the documentation of this file.
1
6public:
8 integer capacity;
9 integer factor;
10};
11
14class obj_desc_x : public extend_get {
15public:
19 string get_name();
25 bool is_equal(obj_desc_x other);
29 bool is_valid();
30};
31
60
64public:
68 integer get_maintenance();
72 integer get_cost();
80 integer get_topspeed();
81};
82
86public:
98 array<vehicle_desc_x> get_successors();
102 array<vehicle_desc_x> get_predecessors();
106 static array<vehicle_desc_x> get_available_vehicles(way_types);
112 integer get_power();
124 integer get_capacity();
136 integer get_weight();
140 integer get_length();
148};
149
152class tree_desc_x : public obj_desc_x {
153public:
154};
155
259
263public:
267 string get_name();
288 array<factory_slot_information_x> get_inputs();
292 array<factory_slot_information_x> get_outputs();
293};
294
315
319public:
323 static array<tunnel_desc_x> get_available_tunnels(way_types);
324};
325
329public:
341 integer get_max_length();
345 integer get_max_height();
349 static array<bridge_desc_x> get_available_bridges(way_types);
350};
351
363public:
367private:
368 void _nexti();
369public:
373private:
375public:
376};
377
380class good_desc_x : public obj_desc_x {
381public:
386 good_desc_x(string name);
392 integer get_catg_index();
411 integer calc_revenue(way_types wt, integer speedkmh);
412};
413
464
468public:
477 static array<wayobj_desc_x> get_available_wayobjs(way_types wt);
478};
way_types
Definition api_const.cc:126
way_system_types
Definition api_const.cc:154
bool has_double_ramp()
static array< bridge_desc_x > get_available_bridges(way_types)
integer get_max_height()
bool has_double_start()
integer get_max_length()
coord get_size(integer rotation)
integer get_headquarter_level()
bool enables_freight()
static array< building_desc_x > get_available_stations(building_desc_x::building_type type, way_types wt, good_desc_x freight)
static array< building_desc_x > get_building_list(building_desc_x::building_type)
bool can_be_built_aboveground()
way_types get_waytype()
bool can_be_built_underground()
building_type
building types
@ station_extension
station extension
@ attraction_city
tourist attraction to be built in cities
@ monument
monument, built only once per map
@ flat_harbour
harbour without a slope (buildable on flat ground beaches)
@ headquarter
company headquarters
@ attraction_land
tourist attraction to be built outside cities
integer get_capacity()
integer get_cost()
building_desc_x::building_type get_type()
bool is_attraction()
integer get_maintenance()
building_desc_x get_building_desc()
array< factory_slot_information_x > get_inputs()
string get_name()
array< factory_slot_information_x > get_outputs()
integer get_productivity_range()
integer get_productivity_base()
bool is_electricity_producer()
good_desc_x good
type of produced/consumed good
integer capacity
capacity to store the good
integer factor
production/consumption factor
good_desc_x _get(integer)
good_desc_x(string name)
integer get_weight_per_unit()
integer calc_revenue(way_types wt, integer speedkmh)
bool is_interchangeable(good_desc_x)
static good_desc_x passenger
descriptor for passenger
integer get_catg_index()
static good_desc_x mail
descriptor for mail
bool is_available(time_x time)
bool is_retired(time_x time)
time_x get_intro_date()
time_x get_retire_date()
bool is_future(time_x time)
integer get_maintenance()
way_types get_waytype()
string get_name()
bool is_valid()
bool is_equal(obj_desc_x other)
static array< sign_desc_x > get_available_signs(way_types wt)
bool is_private_way()
bool is_choose_sign()
bool is_one_way()
bool is_pre_signal()
bool is_priority_signal()
bool is_end_choose_signal()
bool is_signal()
bool is_longblock_signal()
bool is_traffic_light()
static array< tunnel_desc_x > get_available_tunnels(way_types)
bool can_be_last()
array< vehicle_desc_x > get_successors()
integer get_weight()
static array< vehicle_desc_x > get_available_vehicles(way_types)
integer get_length()
integer get_maintenance()
static bool is_coupling_allowed(vehicle_desc_x first, vehicle_desc_x second)
integer get_running_cost()
integer get_capacity()
bool can_be_first()
integer get_power()
array< vehicle_desc_x > get_predecessors()
bool needs_electrification()
good_desc_x get_freight()
bool has_double_slopes()
static array< way_desc_x > get_available_ways(way_types wt, way_system_types st)
way_system_types get_system_type()
bool is_overhead_line()
static array< wayobj_desc_x > get_available_wayobjs(way_types wt)