|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
story-scene skip. More...
Go to the source code of this file.
Classes | |
| class | cLuxStorySkip |
Enumerations | |
| enum | eLuxSkipResult { eLuxSkipResult_NotHandled , eLuxSkipResult_Shown , eLuxSkipResult_Skip , eLuxSkipResult_Cancel } |
Functions | |
| bool | LuxIsStoryScene (bool abPlayerActive, float afMoveSpeedMul, float afScriptWorldVolume) |
| A story scene the skip can fast-forward: the player has no control, is held still by a script, or crawls in silence (slow walk while the level script has the world sound off, like waking up in the intro). | |
Variables | |
| static const float | kLuxSkipPromptTime = 3.0f |
| static const float | kLuxSkipMaxTime = 240.0f |
story-scene skip.
Story first: nothing is shown until the player presses Esc / B; the first press shows "press again to skip", a second press within a few seconds fast-forwards the scene, and the prompt fades away if no second press comes. Pure state machine, unit tested in tests/cpp/test_story_skip.cpp.
Definition in file LuxStorySkip.h.
| enum eLuxSkipResult |
| Enumerator | |
|---|---|
| eLuxSkipResult_NotHandled | |
| eLuxSkipResult_Shown | |
| eLuxSkipResult_Skip | |
| eLuxSkipResult_Cancel | |
Definition at line 13 of file LuxStorySkip.h.
|
inline |
A story scene the skip can fast-forward: the player has no control, is held still by a script, or crawls in silence (slow walk while the level script has the world sound off, like waking up in the intro).
Slow walking with sound on is gameplay.
Definition at line 24 of file LuxStorySkip.h.
|
static |
Definition at line 10 of file LuxStorySkip.h.
|
static |
Definition at line 11 of file LuxStorySkip.h.