|
Maze Builder Docs 8.2.1
|
State for creating a maze using the depth-first search algorithm. More...
#include <dfs_maze_create_state.h>
Public Member Functions | |
| dfs_maze_create_state (const runtime_app::context &ctx, runtime_stack *stack) | |
| std::string_view | create (const configurator &config, randomizer &rng) noexcept override |
| Create a maze using the depth-first search algorithm. | |
| void | draw () const noexcept override |
| bool | update (const std::optional< args > &args, double delta_time) noexcept override |
| Update the state of the maze creation. | |
Public Member Functions inherited from mazes::create_contract | |
Public Member Functions inherited from mazes::state | |
| state (const runtime_app::context &c, runtime_stack *rs) | |
Additional Inherited Members | |
Public Types inherited from mazes::state | |
| enum class | ID : unsigned int { BTING = 0 , DFSING = 1 , EMPTY = 2 , LOADING = 3 , PARSING = 4 , PIXELIZING = 5 , SIDEWINDERING = 6 , STRINGIFYING = 7 , WAVEFRONT_OBJECTIFYING = 8 , TOTAL = 9 } |
Protected Member Functions inherited from mazes::state | |
| void | request_stack_push (ID state_id) const noexcept |
| void | request_stack_pop () const noexcept |
| void | request_stack_clear () const noexcept |
| const runtime_app::context & | get_context () const noexcept |
| runtime_stack & | get_stack () const noexcept |
State for creating a maze using the depth-first search algorithm.
|
overridevirtualnoexcept |
Create a maze using the depth-first search algorithm.
| a | |
| rows | |
| cols | |
| levels | |
| rng |
Implements mazes::create_contract.
|
overridevirtualnoexcept |
Implements mazes::state.
|
overridevirtualnoexcept |
Update the state of the maze creation.
| args | Optional arguments for the update |
| delta_time | Time elapsed since the last update |
Implements mazes::state.