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
4
#include <
MazeBuilder/create_contract.h
>
5
#include <
MazeBuilder/resource_identifiers.h
>
6
#include <
MazeBuilder/runtime_app.h
>
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
19
namespace
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
mazes::args
Command-line argument handler with JSON support.
Definition
args.h:19
mazes::create_contract
Contract for the create function in the runtime.
Definition
create_contract.h:21
mazes::parsing_state::update
bool update(randomizer &rng, double delta_time) noexcept override
Updates the state of the parsing process.
mazes::parsing_state::create
std::any create(const args &a, randomizer &rng) noexcept override
Normalizes the raw input into a canonical, space-separated string.
mazes::randomizer
Provides random-number generating capabilities.
Definition
randomizer.h:16
mazes::runtime_stack
Class representing the runtime stack of states in the maze builder application.
Definition
runtime_stack.h:25
create_contract.h
resource_identifiers.h
runtime_app.h
state.h
mazes::runtime_app::context
struct representing the context passed to states in the runtime_app stack
Definition
runtime_app.h:34
include
MazeBuilder
parsing_state.h
Generated by
1.15.0