Maze Builder Docs
8.10.23
Loading...
Searching...
No Matches
bt_maze_create_state.h
Go to the documentation of this file.
1
#ifndef BT_MAZE_CREATE_STATE_H
2
#define BT_MAZE_CREATE_STATE_H
3
4
#include <
MazeBuilder/algos.h
>
5
#include <
MazeBuilder/link_maze_and_create_state.h
>
6
7
#include <string_view>
8
11
namespace
mazes
12
{
13
class
configurator
;
14
class
randomizer
;
15
class
runtime_stack
;
17
class
bt_maze_create_state
final :
public
link_maze_and_create_state
18
{
19
public
:
23
explicit
bt_maze_create_state
(
const
runtime_app::context
&ctx,
runtime_stack
*stack);
24
31
std::any
create
(
const
args
&a,
randomizer
&rng)
noexcept
override
;
32
33
private
:
35
[[nodiscard]]
algo
get_algo_id
() const noexcept override;
36
};
37
}
// namespace mazes
38
39
#endif
// BT_MAZE_CREATE_STATE_H
algos.h
mazes::algo
algo
Enumeration of maze generation algorithms.
Definition
algos.h:20
mazes::args
Command-line argument handler with JSON support.
Definition
args.h:19
mazes::bt_maze_create_state::bt_maze_create_state
bt_maze_create_state(const runtime_app::context &ctx, runtime_stack *stack)
Construct a new binary tree maze creation state.
mazes::bt_maze_create_state::create
std::any create(const args &a, randomizer &rng) noexcept override
Create a binary tree maze with the given parameters.
mazes::configurator
Configuration class for arguments.
Definition
configurator.h:21
mazes::link_maze_and_create_state::link_maze_and_create_state
link_maze_and_create_state(const runtime_app::context &ctx, runtime_stack *stack)
Construct a new link maze and create state.
mazes::link_maze_and_create_state::get_algo_id
virtual algo get_algo_id() const noexcept=0
Get the algorithm ID for this maze creation algorithm.
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
link_maze_and_create_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
bt_maze_create_state.h
Generated by
1.15.0