Maze Builder Docs 8.10.23
Loading...
Searching...
No Matches
link_maze_and_create_state.h
Go to the documentation of this file.
1#ifndef LINK_MAZE_AND_CREATE_STATE_H
2#define LINK_MAZE_AND_CREATE_STATE_H
3
4#include <MazeBuilder/algos.h>
8#include <MazeBuilder/state.h>
9
10#include <any>
11#include <functional>
12#include <string>
13
16namespace mazes
17{
18 class args;
19 class configurator;
20 class grid_operations;
21 class randomizer;
22 class runtime_stack;
23
27 class link_maze_and_create_state : public create_contract, public state
28 {
29 public:
34
36
42 bool update(randomizer &rng, double delta_time) noexcept override final;
43
44 void draw() const noexcept override;
45
50 [[nodiscard]] std::any create(const args &a, randomizer &rng) noexcept override = 0;
51
52 protected:
55 [[nodiscard]] virtual algo get_algo_id() const noexcept = 0;
56
60 [[nodiscard]] std::string run_link_algorithm(const std::function<bool(grid_operations &)> &link_algorithm) noexcept;
61
62 args_manager *args_mapper;
63 grid_manager *grid_mapper;
64 processed_text_manager *processed_text_mapper;
65 grid_identifier current_grid_id;
66 bool m_use_distances;
67 int m_distances_start;
68 int m_distances_end;
69 std::string m_result;
70 };
71} // namespace mazes
72
73#endif // LINK_MAZE_AND_CREATE_STATE_H
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
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