|
coastline 0.0.4
|
Race progress and results for one front end. More...
#include <racesession.h>
Public Member Functions | |
| RaceSession ()=default | |
| Prepare an inactive session without starting a race or music. | |
| ~RaceSession () | |
| Release the session's race music reference before the race music context is destroyed. | |
| RaceSession (const RaceSession &)=delete | |
| Prevent copying race progress and active engine resources. | |
| RaceSession & | operator= (const RaceSession &)=delete |
| Prevent assignment of race progress and active engine resources. | |
| void | Start (const RaceSetup &setup, const std::filesystem::path &music, bool cdAudio) |
| Start a race as the front end of the PC release starts one. | |
| RaceEnd | Step () |
| Run one frame of the race, a 30th of a second. | |
| void | Abandon () |
| End the race that Start() started without running it, and stop its music. | |
| const RaceResults & | Results () const |
| std::array< int, 2 > | CameraChoices () const |
| bool | SfxVolumeAdjusted () const |
Race progress and results for one front end.
|
default |
Prepare an inactive session without starting a race or music.
| coastline::RaceSession::~RaceSession | ( | ) |
Release the session's race music reference before the race music context is destroyed.
|
delete |
Prevent copying race progress and active engine resources.
|
delete |
Prevent assignment of race progress and active engine resources.
| void coastline::RaceSession::Start | ( | const RaceSetup & | setup, |
| const std::filesystem::path & | music, | ||
| bool | cdAudio ) |
Start a race as the front end of the PC release starts one.
The race music starts with it. The working directory is the directory of the default assets, and OpenRaceData() was called.
| setup | The race. |
| music | The directory of the music files. |
| cdAudio | Whether the music is the CD audio of the PC release rather than the modules of the Nintendo 64 release. |
| RaceEnd coastline::RaceSession::Step | ( | ) |
Run one frame of the race, a 30th of a second.
The race music stops when the race ends.
| void coastline::RaceSession::Abandon | ( | ) |
End the race that Start() started without running it, and stop its music.
| const RaceResults & coastline::RaceSession::Results | ( | ) | const |
|
inline |
|
inline |