|
coastline 0.0.4
|
Attract-demo rotation for one front end. More...
#include <racedemo.h>
Public Member Functions | |
| AttractDemo () | |
| Register the exclusive attract-demo controller with the first recording selected next. | |
| ~AttractDemo () | |
| Unregister the controller after its active race has shut down. | |
| AttractDemo (const AttractDemo &)=delete | |
| Prevent copying the registered demo controller. | |
| AttractDemo & | operator= (const AttractDemo &)=delete |
| Prevent assignment of the registered demo controller. | |
| ConsoleCredits & | Credits () |
| const ConsoleCredits & | Credits () const |
| const char * | NextRecording () |
| void | Start () |
| Start the attract demo as the root menu of the PC release starts it, on the recording after the one it played last. | |
| void | StartCredits (bool scrolling) |
| Start the race of the credits, on the recording of the credits of the PC release, as StartCreditsRace() of the console starts the captions from the options menu and StartEndingCredits() starts the scrolling credits after the last season. | |
| bool | Step (bool leave) |
| Run one frame of the race of the demo, a 30th of a second. | |
| bool | Interrupted () const |
| int | Track () const |
| int | Car () const |
| std::array< std::uint8_t, 3 > | Color () const |
| bool | FromConsole () const |
Static Public Member Functions | |
| static AttractDemo * | Active () |
Attract-demo rotation for one front end.
One instance exists at a time.
| coastline::AttractDemo::AttractDemo | ( | ) |
Register the exclusive attract-demo controller with the first recording selected next.
| coastline::AttractDemo::~AttractDemo | ( | ) |
Unregister the controller after its active race has shut down.
|
delete |
Prevent copying the registered demo controller.
|
delete |
Prevent assignment of the registered demo controller.
|
static |
|
inline |
|
inline |
| const char * coastline::AttractDemo::NextRecording | ( | ) |
| void coastline::AttractDemo::Start | ( | ) |
Start the attract demo as the root menu of the PC release starts it, on the recording after the one it played last.
The working directory is the directory of the default assets.
| void coastline::AttractDemo::StartCredits | ( | bool | scrolling | ) |
Start the race of the credits, on the recording of the credits of the PC release, as StartCreditsRace() of the console starts the captions from the options menu and StartEndingCredits() starts the scrolling credits after the last season.
The console scrolls the credits of the options menu instead under the multiplayer mode of a cheat, absent from the SDL game. Step() runs the race. The working directory is the directory of the default assets.
| scrolling | Whether the credits scroll rather than show as captions. |
| bool coastline::AttractDemo::Step | ( | bool | leave | ) |
Run one frame of the race of the demo, a 30th of a second.
| leave | Whether a button that leaves the demo was pressed, as the pause binding of the PC release leaves it. |
| bool coastline::AttractDemo::Interrupted | ( | ) | const |
| int coastline::AttractDemo::Track | ( | ) | const |
| int coastline::AttractDemo::Car | ( | ) | const |
| std::array< std::uint8_t, 3 > coastline::AttractDemo::Color | ( | ) | const |
| bool coastline::AttractDemo::FromConsole | ( | ) | const |