|
Maze Builder Docs 8.2.1
|
State for creating a maze using the sidewinder algorithm. More...
#include <sw_maze_create_state.h>
Public Member Functions | |
| sw_maze_create_state (const runtime_app::context &ctx, runtime_stack *rs) | |
| std::string_view | create (const configurator &config, randomizer &rng) noexcept override |
| void | draw () const noexcept override |
| bool | update (const std::optional< args > &args, double delta_time) noexcept override |
| Update the state with the given arguments and elapsed 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 sidewinder algorithm.
|
overridevirtualnoexcept |
Implements mazes::create_contract.
|
overridevirtualnoexcept |
Implements mazes::state.
|
overridevirtualnoexcept |
Update the state with the given arguments and elapsed time.
| args | The optional arguments to pass to the state's update function |
| delta_time | The elapsed time since the last update |
Implements mazes::state.