|
Maze Builder Docs 8.2.1
|
State for creating a maze using the binary tree algorithm. More...
#include <bt_maze_create_state.h>
Public Member Functions | |
| bt_maze_create_state (const runtime_app::context &ctx, runtime_stack *stack) | |
| Construct a new binary tree maze creation state. | |
| std::string_view | create (const configurator &config, randomizer &rng) noexcept override |
| Create a binary tree maze with the given parameters. | |
| void | draw () const noexcept override |
| @TODO -> pre-print mazes as a visualization technique | |
| bool | update (const std::optional< args > &args, double delta_time) noexcept override |
| Update the state with the given arguments and delta time. | |
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 binary tree algorithm.
|
explicit |
Construct a new binary tree maze creation state.
| ctx | The runtime context |
| stack | The runtime stack to allow pushing/popping states |
|
overridevirtualnoexcept |
Create a binary tree maze with the given parameters.
| a | |
| rows | |
| cols | |
| levels | |
| rng |
Implements mazes::create_contract.
|
overridevirtualnoexcept |
@TODO -> pre-print mazes as a visualization technique
Implements mazes::state.
|
overridevirtualnoexcept |
Update the state with the given arguments and delta time.
| args | Optional arguments for the update |
| delta_time | Time elapsed since the last update |
Implements mazes::state.