|
Maze Builder Docs 8.2.1
|
Configuration class for arguments. More...
#include <configurator.h>
Public Member Functions | |
| configurator & | ensure_rows (const unsigned int rows) noexcept |
| Set the number of rows. | |
| configurator & | ensure_columns (const unsigned int columns) noexcept |
| Set the number of columns. | |
| configurator & | ensure_levels (const unsigned int levels) noexcept |
| Set the number of levels. | |
| configurator & | ensure_algo_id (const algo algorithm) noexcept |
| Set the maze generation algorithm. | |
| configurator & | ensure_block_id (const int block_id) noexcept |
| Set the block ID. | |
| configurator & | ensure_seed (const unsigned int seed) noexcept |
| Set the random seed. | |
| configurator & | ensure_distances (const bool distances) noexcept |
| Set the distance calculation flag. | |
| configurator & | ensure_distances_start (const int start_index) noexcept |
| Set the distance start index. | |
| configurator & | ensure_distances_end (const int end_index) noexcept |
| Set the distance end index. | |
| configurator & | ensure_output_format_id (const output_format output_format) noexcept |
| Set the output_format ID. | |
| configurator & | ensure_output_format_filename (const std::string &filename) noexcept |
| Set the output filename. | |
| configurator & | ensure_mask_filename (const std::string &filename) noexcept |
| Set the mask filename. | |
| configurator & | set_help (bool help) noexcept |
| Set the help flag. | |
| configurator & | set_version (bool version) noexcept |
| Set the version flag. | |
| configurator & | show_steps (bool show_steps) noexcept |
| Set whether step snapshots should be shown during generation. | |
| configurator & | rows (const unsigned int r) noexcept |
| configurator & | columns (const unsigned int c) noexcept |
| configurator & | levels (const unsigned int l) noexcept |
| configurator & | algo_id (const algo a) noexcept |
| configurator & | seed (const unsigned int s) noexcept |
| unsigned int | rows () const noexcept |
| Get the number of rows. | |
| unsigned int | columns () const noexcept |
| Get the number of columns. | |
| unsigned int | levels () const noexcept |
| Get the number of levels. | |
| algo | algo_id () const noexcept |
| Get the maze generation algorithm. | |
| std::string | mask_filename () const noexcept |
| Get the mask filename. | |
| int | block_ID () const noexcept |
| Get the block ID. | |
| unsigned int | seed () const noexcept |
| Get the random seed. | |
| bool | distances () const noexcept |
| Check if distances are calculated. | |
| int | distances_start () const noexcept |
| Get the distance start index. | |
| int | distances_end () const noexcept |
| Get the distance end index. | |
| output_format | output_format_id () const noexcept |
| Get the output_format ID. | |
| bool | help () const noexcept |
| bool | version () const noexcept |
| bool | show_steps () const noexcept |
| bool | has_valid_dimensions () const noexcept |
| Validate all configuration values are within safe limits. | |
Configuration class for arguments.
This class stores maze generation parameters with safe default values
|
inlinenodiscardnoexcept |
Get the maze generation algorithm.
|
inlinenodiscardnoexcept |
Get the block ID.
|
inlinenodiscardnoexcept |
Get the number of columns.
|
inlinenodiscardnoexcept |
Check if distances are calculated.
|
inlinenodiscardnoexcept |
Get the distance end index.
|
inlinenodiscardnoexcept |
Get the distance start index.
|
inlinenoexcept |
Set the maze generation algorithm.
| algorithm | The algorithm to use |
|
inlinenoexcept |
Set the block ID.
| block_id | The block ID |
|
inlinenoexcept |
Set the number of columns.
| columns | The number of columns (must be > 0, will be clamped to reasonable limits) |
|
inlinenoexcept |
Set the distance calculation flag.
| distances | The distance calculation flag |
|
inlinenoexcept |
Set the distance end index.
| end_index | The ending cell index for distance calculation |
|
inlinenoexcept |
Set the distance start index.
| start_index | The starting cell index for distance calculation |
|
inlinenoexcept |
Set the number of levels.
| levels | The number of levels (must be > 0, will be clamped to reasonable limits) |
|
inlinenoexcept |
Set the mask filename.
| filename | The mask file path (.txt) |
|
inlinenoexcept |
Set the output filename.
| filename | The filename |
|
inlinenoexcept |
Set the output_format ID.
| output_format | The output_format ID |
|
inlinenoexcept |
Set the number of rows.
| rows | The number of rows (must be > 0, will be clamped to reasonable limits) |
|
inlinenoexcept |
Set the random seed.
| seed | The random seed |
|
inlinenodiscardnoexcept |
Validate all configuration values are within safe limits.
Checks for potential infinite loop conditions and memory issues
|
inlinenodiscardnoexcept |
Get the number of levels.
|
inlinenodiscardnoexcept |
Get the mask filename.
|
inlinenodiscardnoexcept |
Get the output_format ID.
|
inlinenodiscardnoexcept |
Get the number of rows.
|
inlinenodiscardnoexcept |
Get the random seed.
|
inlinenoexcept |
Set the help flag.
| help | True to display help information |
|
inlinenoexcept |
Set the version flag.
| version | True to display version information |
|
inlinenoexcept |
Set whether step snapshots should be shown during generation.
| show_steps | True to emit periodic maze snapshots |