Maze Builder Docs 8.10.23
Loading...
Searching...
No Matches
mazes::loading_state Class Referencefinal

State for loading and pre-generating mazes. More...

#include <loading_state.h>

Inheritance diagram for mazes::loading_state:
[legend]
Collaboration diagram for mazes::loading_state:
[legend]

Public Member Functions

 loading_state (const runtime_app::context &ctx, runtime_stack *rs)
void draw () const noexcept override
bool update (randomizer &rng, double delta_time) noexcept override
 Updates the state of the loading process.
Public Member Functions inherited from mazes::state
 state (const runtime_app::context &c, runtime_stack *rs)

Additional Inherited Members

Public Types inherited from mazes::state
enum class  ID : unsigned int {
  EMPTY = 0 , LINK_WITH_BINARY_TREE = 1 , LINK_WITH_DFS = 2 , LINK_WITH_SIDEWINDER = 3 ,
  LINK_WITH_PRIMS = 4 , LOAD = 5 , PARSE = 6 , WRITE_TO_IMAGE = 7 ,
  WRITE_TO_STRING = 8 , WRITE_TO_WF_OBJ = 9 , LINK_WITH_MASKED = 10 , TOTAL = 11
}
Protected Member Functions inherited from mazes::state
void request_stack_push (ID state_id) const noexcept
void request_stack_pop () const noexcept
void request_stack_clear () const noexcept
const runtime_app::context & get_context () const noexcept
runtime_stack & get_stack () const noexcept

Detailed Description

State for loading and pre-generating mazes.

Member Function Documentation

◆ draw()

void mazes::loading_state::draw ( ) const
overridevirtualnoexcept

Implements mazes::state.

◆ update()

bool mazes::loading_state::update ( randomizer & rng,
double delta_time )
overridevirtualnoexcept

Updates the state of the loading process.

Parameters
delta_timeTime elapsed since the last update
Returns
True if the update was successful, false otherwise

Implements mazes::state.


The documentation for this class was generated from the following file: