Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_command.cc
Go to the documentation of this file.
1
9class command_x {
10public:
19 integer get_flags();
25 void set_flags(integer flags);
33 string work(player_x pl, coord3d pos);
42 string work(player_x pl, coord3d pos, string param);
53 string work(player_x pl, coord3d start, coord3d end, string param);
62 static string build_way(player_x pl, coord3d start, coord3d end, way_desc_x way, bool straight);
72 static string build_road(player_x pl, coord3d start, coord3d end, way_desc_x way, bool straight, table args);
79 static string build_depot(player_x pl, coord3d pos, building_desc_x depot);
87 static string build_station(player_x pl, coord3d pos, building_desc_x station, dir rotaton);
96 static string build_bridge(player_x pl, coord3d start, coord3d end, bridge_desc_x bridge);
111 static string set_slope(player_x pl, coord3d pos, slope slope);
117 static string restore_slope(player_x pl, coord3d pos);
125 static string can_set_slope(player_x pl, coord3d pos, slope slope);
130 static integer slope_get_price(slope);
137 static string build_sign_at(player_x pl, coord3d pos, sign_desc_x sign);
146 static string set_stop_before_check(player_x pl, coord3d pos, integer val);
157 static string set_start_signal(player_x pl, coord3d pos, integer val);
165 static string set_advance_to_end(player_x pl, coord3d pos, integer val);
173 static string set_guide_signal(player_x pl, coord3d pos, int val);
181 static string set_choose_signal(player_x pl, coord3d pos, int val);
189 static string set_skip_default_route(player_x pl, coord3d pos, int val);
197 static string set_length_based(player_x pl, coord3d pos, int val);
205 static string set_margin_length(player_x pl, coord3d pos, int val);
215 static string set_two_ways(player_x pl, coord3d pos, integer val);
223 static string build_wayobj(player_x pl, coord3d start, coord3d end, wayobj_desc_x wayobj);
230 static string change_climate_at(player_x pl, coord3d pos, integer climate);
236 static string grid_lower(player_x pl, coord3d pos);
242 static string grid_raise(player_x pl, coord3d pos);
243};
bool allow_closed_diagonal
scripts may build closed diagonals unless they say otherwise
Definition api_command.cc:2
tool_ids
Definition api_const.cc:6
void set_flags(integer flags)
static string set_guide_signal(player_x pl, coord3d pos, int val)
static string grid_lower(player_x pl, coord3d pos)
static integer slope_get_price(slope)
static string build_way(player_x pl, coord3d start, coord3d end, way_desc_x way, bool straight)
string work(player_x pl, coord3d pos)
static string build_bridge(player_x pl, coord3d start, coord3d end, bridge_desc_x bridge)
static string restore_slope(player_x pl, coord3d pos)
static string build_sign_at(player_x pl, coord3d pos, sign_desc_x sign)
static string set_length_based(player_x pl, coord3d pos, int val)
static string set_skip_default_route(player_x pl, coord3d pos, int val)
static string set_margin_length(player_x pl, coord3d pos, int val)
static string build_bridge_at(player_x pl, coord3d start, bridge_desc_x bridge)
static string can_set_slope(player_x pl, coord3d pos, slope slope)
integer get_flags()
static string build_station(player_x pl, coord3d pos, building_desc_x station, dir rotaton)
static string grid_raise(player_x pl, coord3d pos)
static string build_wayobj(player_x pl, coord3d start, coord3d end, wayobj_desc_x wayobj)
string work(player_x pl, coord3d pos, string param)
static string set_choose_signal(player_x pl, coord3d pos, int val)
static string build_road(player_x pl, coord3d start, coord3d end, way_desc_x way, bool straight, table args)
static string change_climate_at(player_x pl, coord3d pos, integer climate)
static string set_stop_before_check(player_x pl, coord3d pos, integer val)
string work(player_x pl, coord3d start, coord3d end, string param)
static string set_advance_to_end(player_x pl, coord3d pos, integer val)
static string build_depot(player_x pl, coord3d pos, building_desc_x depot)
command_x(tool_ids id)
static string set_start_signal(player_x pl, coord3d pos, integer val)
static string set_slope(player_x pl, coord3d pos, slope slope)
static string set_two_ways(player_x pl, coord3d pos, integer val)
void start()