Table with methods help debugging.
- Note
- Only available in scenario mode.
Definition at line 16 of file api_control.cc.
◆ get_forbidden_text()
static string debug::get_forbidden_text |
( |
| ) |
|
|
static |
- Returns
- text containing all active rules, can be used in get_debug_text
- Note
- Only available in scenario mode.
◆ is_paused()
static bool debug::is_paused |
( |
| ) |
|
|
static |
Checks whether game is paused. Note that scripts only run for unpaused games. This can only be used in functions that are called by user actions (e.g., is_*_allowed).
- Returns
- true when successful.
◆ pause()
static bool debug::pause |
( |
| ) |
|
|
static |
Pauses game. Does not work in network games. Use with care.
- Returns
- true when successful.
◆ set_pause_on_error()
static void debug::set_pause_on_error |
( |
bool |
p | ) |
|
|
static |
Scripts can pause the game in case of error. Toggle this behavior by parameter p
. Does not work in network games. Use with care.
- Parameters
-
p | true if script should make the game pause in case of error |
The documentation for this class was generated from the following files: