Simutrans-Squirrel-API  125.0r12321
Static Public Member Functions | List of all members
rules Class Reference

Static Public Member Functions

static void forbid_tool (integer player_nr, integer tool_id)
 
static void forbid_way_tool (integer player_nr, integer tool_id, way_types wt, string default_paramter)
 
static void forbid_way_tool_rect (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord pos_nw, coord pos_se, string err)
 
static void forbid_way_tool_cube (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord3d pos_nw, coord3d pos_se, string err)
 
static void clear_forbid_tool (integer player_nr, integer tool_id)
 
static void clear_forbid_way_tool (integer player_nr, integer tool_id, way_types wt, string default_paramter)
 
static void clear_way_tool_rect (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord pos_nw, coord pos_se, bool allow)
 
static void clear_way_tool_cube (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord3d pos_nw, coord3d pos_se, bool allow)
 
static void clear ()
 
static void clear_player (integer player_nr)
 
static void allow_way_tool_rect (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord pos_nw, coord pos_se)
 
static void allow_way_tool_cube (integer player_nr, integer tool_id, way_types wt, string default_paramter, coord3d pos_nw, coord3d pos_se)
 
static void gui_needs_update ()
 

Detailed Description

Table with methods to forbid and allow tools.

Tools that are set to forbidden using the forbid_* methods can be allowed again by calls to the respective allow_* method with exact the same parameters.

Note
Only available in scenario mode.

Definition at line 85 of file api_scenario.cc.


The documentation for this class was generated from the following file: