Simutrans-Squirrel-API  r11919
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, any_x default_paramter)
 
static void forbid_way_tool_rect (integer player_nr, integer tool_id, way_types wt, coord default_paramter, coord pos_nw, string pos_se, any_x err)
 
static void forbid_way_tool_cube (integer player_nr, integer tool_id, way_types wt, coord3d default_paramter, coord3d pos_nw, string pos_se, any_x err)
 
static void clear_forbid_tool (any_x player_nr, any_x tool_id)
 
static void clear_forbid_way_tool (any_x player_nr, any_x tool_id, any_x wt, any_x default_paramter)
 
static void clear_way_tool_rect (any_x player_nr, any_x tool_id, any_x wt, any_x default_paramter, any_x pos_nw, any_x pos_se, any_x allow)
 
static void clear_way_tool_cube (any_x player_nr, any_x tool_id, any_x wt, any_x default_paramter, any_x pos_nw, any_x pos_se, any_x allow)
 
static void clear ()
 
static void clear_player ()
 
static void allow_way_tool_rect (integer player_nr, integer tool_id, way_types wt, coord default_paramter, coord pos_nw, any_x pos_se)
 
static void allow_way_tool_cube (integer player_nr, integer tool_id, way_types wt, coord3d default_paramter, coord3d pos_nw, any_x 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: