Maze Builder Docs 8.2.1
Loading...
Searching...
No Matches
stringify_create_state.h
Go to the documentation of this file.
1#ifndef STRINGIFY_CREATE_STATE_H
2#define STRINGIFY_CREATE_STATE_H
3
6#include <MazeBuilder/state.h>
7
8#include <optional>
9#include <string>
10#include <string_view>
11
14namespace mazes
15{
16 class args;
17 class configurator;
18 class randomizer;
19 class runtime_stack;
20 struct context;
21
23 class stringify_create_state final : public create_contract, public state
24 {
25 public:
27
28 std::string_view create(const configurator &config, randomizer &rng) noexcept override;
29
30 void draw() const noexcept override;
31
36 bool update(const std::optional<args> &args, double delta_time) noexcept override;
37
38 private:
39 grid_manager *grid_mapper;
40 processed_text_manager *processed_text_mapper;
41 std::string m_result;
42 };
43} // namespace mazes
44
45#endif // STRINGIFY_CREATE_STATE_H
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:16
Provides random-number generating capabilities.
Definition randomizer.h:15
Class representing the runtime stack of states in the maze builder application.
Definition runtime_stack.h:23
State for creating a maze using the stringify algorithm.
Definition stringify_create_state.h:24
bool update(const std::optional< args > &args, double delta_time) noexcept override
Update the state with the given arguments and elapsed time.
struct representing the context passed to states in the runtime_app stack
Definition runtime_app.h:34
struct representing a state in the runtime stack
Definition state.h:18