Maze Builder Docs 8.10.23
Loading...
Searching...
No Matches
parsing_state.h
Go to the documentation of this file.
1#ifndef PARSING_STATE_H
2#define PARSING_STATE_H
3
7#include <MazeBuilder/state.h>
8
9#include <any>
10#include <optional>
11#include <span>
12#include <string>
13#include <string_view>
14#include <unordered_map>
15#include <vector>
16
19namespace mazes
20{
21 class args;
22 class randomizer;
23 class runtime_stack;
24 struct context;
25
27 class parsing_state final : public create_contract, public state
28 {
29 public:
30 explicit parsing_state(const runtime_app::context& ctx, runtime_stack* rs);
31
35 [[nodiscard]] std::any create(const args &a, randomizer &rng) noexcept override;
36
37 void draw() const noexcept override;
38
43 [[nodiscard]] bool update(randomizer &rng, double delta_time) noexcept override;
44 private:
45 args_manager* args_mapper;
46 };
47} // namespace mazes
48
49#endif // PARSING_STATE_H
Command-line argument handler with JSON support.
Definition args.h:19
Contract for the create function in the runtime.
Definition create_contract.h:21
bool update(randomizer &rng, double delta_time) noexcept override
Updates the state of the parsing process.
std::any create(const args &a, randomizer &rng) noexcept override
Normalizes the raw input into a canonical, space-separated string.
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