Maze Builder Docs
8.10.23
Loading...
Searching...
No Matches
loading_state.h
Go to the documentation of this file.
1
#ifndef LOADING_STATE_H
2
#define LOADING_STATE_H
3
4
#include <
MazeBuilder/resource_identifiers.h
>
5
#include <
MazeBuilder/runtime_app.h
>
6
#include <
MazeBuilder/state.h
>
7
8
class
randomizer;
9
class
runtime_stack;
10
13
namespace
mazes
14
{
16
class
loading_state final :
public
state
17
{
18
public
:
19
// constructor
20
explicit
loading_state(
const
runtime_app::context
&ctx,
runtime_stack
*rs);
21
22
void
draw()
const
noexcept
override
;
23
27
bool
update
(
randomizer
&rng,
double
delta_time)
noexcept
override
;
28
29
private
:
31
void
load_resources() const noexcept;
32
33
grid_manager *grid_mapper;
34
processed_text_manager *processed_text_mapper;
35
args_manager *args_mapper;
36
37
bool
has_finished{
false
};
38
};
39
}
// namespace mazes
40
41
#endif
// LOADING_STATE_H
mazes::loading_state::update
bool update(randomizer &rng, double delta_time) noexcept override
Updates the state of the loading process.
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
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
loading_state.h
Generated by
1.15.0