1#ifndef LINK_MAZE_AND_CREATE_STATE_H
2#define LINK_MAZE_AND_CREATE_STATE_H
44 void draw() const noexcept override;
62 args_manager *args_mapper;
63 grid_manager *grid_mapper;
64 processed_text_manager *processed_text_mapper;
65 grid_identifier current_grid_id;
67 int m_distances_start;
algo
Enumeration of maze generation algorithms.
Definition algos.h:20
Command-line argument handler with JSON support.
Definition args.h:19
Configuration class for arguments.
Definition configurator.h:21
Contract for the create function in the runtime.
Definition create_contract.h:21
Interface for grid navigation and manipulation operations.
Definition grid_operations.h:22
link_maze_and_create_state(const runtime_app::context &ctx, runtime_stack *stack)
Construct a new link maze and create state.
std::string run_link_algorithm(const std::function< bool(grid_operations &)> &link_algorithm) noexcept
Runs a linking algorithm on the current grid, then calculates distances if requested.
virtual algo get_algo_id() const noexcept=0
Get the algorithm ID for this maze creation algorithm.
bool update(randomizer &rng, double delta_time) noexcept override final
Update the state with the given arguments and delta time Common logic for parsing arguments,...
std::any create(const args &a, randomizer &rng) noexcept override=0
Create the maze using algorithm-specific logic.
Provides random-number generating capabilities.
Definition randomizer.h:16
Class representing the runtime stack of states in the maze builder application.
Definition runtime_stack.h:25
struct representing the context passed to states in the runtime_app stack
Definition runtime_app.h:34