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
6#include <MazeBuilder/state.h>
7
8class randomizer;
9class runtime_stack;
10
13namespace 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
bool update(randomizer &rng, double delta_time) noexcept override
Updates the state of the loading process.
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