Simutrans-Squirrel-API
api_scenario.cc
Go to the documentation of this file.
1 
7 string translate(string text);
14 string double_to_string(float value, integer decimals);
20 string integer_to_string(integer value);
26 string money_to_string(integer value);
32 string coord_to_string(coord c);
38 string coord3d_to_string(coord3d c);
44 string get_month_name(integer month);
48 string difftick_to_string(integer);
64 string load_language_file(string file);
74 class rules {
75 public:
84  static void forbid_tool(integer player_nr, integer tool_id);
93  static void allow_tool(integer player_nr, integer tool_id);
103  static void forbid_way_tool(integer player_nr, integer tool_id, way_types wt);
113  static void allow_way_tool(integer player_nr, integer tool_id, way_types wt);
126  static void forbid_way_tool_rect(integer player_nr, integer tool_id, way_types wt, coord pos_nw, coord pos_se, string err);
138  static void allow_way_tool_rect(integer player_nr, integer tool_id, way_types wt, coord pos_nw, coord pos_se);
151  static void forbid_way_tool_cube(integer player_nr, integer tool_id, way_types wt, coord3d pos_nw, coord3d pos_se, string err);
163  static void allow_way_tool_cube(integer player_nr, integer tool_id, way_types wt, coord3d pos_nw, coord3d pos_se);
170  static void clear();
174  static void gui_needs_update();
175 };
180 class debug {
181 public:
186  static string get_forbidden_text();
187 };
static void forbid_way_tool_rect(integer player_nr, integer tool_id, way_types wt, coord pos_nw, coord pos_se, string err)
way_types
Definition: api_const.cc:118
static void allow_way_tool_rect(integer player_nr, integer tool_id, way_types wt, coord pos_nw, coord pos_se)
string integer_to_string(integer value)
static string get_forbidden_text()
string file
Definition: api_skeleton.h:34
string get_month_name(integer month)
string load_language_file(string file)
static void clear()
static void allow_tool(integer player_nr, integer tool_id)
string money_to_string(integer value)
static void gui_needs_update()
string difftick_to_string(integer)
string coord3d_to_string(coord3d c)
static void forbid_tool(integer player_nr, integer tool_id)
string double_to_string(float value, integer decimals)
static void forbid_way_tool_cube(integer player_nr, integer tool_id, way_types wt, coord3d pos_nw, coord3d pos_se, string err)
static void forbid_way_tool(integer player_nr, integer tool_id, way_types wt)
static void allow_way_tool_cube(integer player_nr, integer tool_id, way_types wt, coord3d pos_nw, coord3d pos_se)
string coord_to_string(coord c)
string translate(string text)
static void allow_way_tool(integer player_nr, integer tool_id, way_types wt)