|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <loading.h>
Public Member Functions | |
| void | Cover () |
| Covers the world from the next frame on. | |
| bool | covered () const |
| bool | covering () const |
| Whether the cover's up, or going up. | |
| void | Lift () |
| The land is built, so the cover fades and the fog lifts. | |
| void | Update (float seconds) |
| Moves on by the frame's time, once the frame is drawn. | |
| float | cover () const |
| How much of the screen the cover hides, from 0 to 1. | |
| float | clear () const |
Static Public Attributes | |
| static constexpr float | kFade = 0.4f |
| In seconds. | |
| static constexpr float | kLift = 1.5f |
When a screen covers the world, while the world isn't there yet, kept apart from raylib and ImGui so that it can be tested without a window. It covers the world from the moment we enter one, or go into a new land, until the land is built. Then it fades, and the fog lifts off the land, nearest first, so that the land comes out of its sky instead of appearing at once.
| float nanommo::Loading::clear | ( | ) | const |
How far the fog has lifted, from 0, where it hides all but what's nearest, to 1, the land's own fog.
Definition at line 70 of file loading.cc.
| void nanommo::Loading::Cover | ( | ) |
Covers the world from the next frame on.
Definition at line 28 of file loading.cc.
| float nanommo::Loading::cover | ( | ) | const |
How much of the screen the cover hides, from 0 to 1.
Definition at line 57 of file loading.cc.
|
inline |
|
inline |
| void nanommo::Loading::Lift | ( | ) |
The land is built, so the cover fades and the fog lifts.
Definition at line 35 of file loading.cc.
| void nanommo::Loading::Update | ( | float | seconds | ) |
Moves on by the frame's time, once the frame is drawn.
Definition at line 40 of file loading.cc.
|
staticconstexpr |