coastline 0.0.4
Loading...
Searching...
No Matches
racedemo.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <array>
11#include <cstdint>
12#include <optional>
13#include <string>
14
15#include "racecredits.h"
16
17namespace coastline {
18
26void OpenRaceData(bool playSounds);
27
30public:
36 AttractDemo(const AttractDemo &) = delete;
38 AttractDemo &operator=(const AttractDemo &) = delete;
39
42
45 return m_credits;
46 }
47
48 const ConsoleCredits &Credits() const {
49 return m_credits;
50 }
51
53 const char *NextRecording();
54
59 void Start();
60
71 void StartCredits(bool scrolling);
72
81 bool Step(bool leave);
82
84 bool Interrupted() const;
85
88 int Track() const;
89
92 int Car() const;
93
98
103 bool FromConsole() const;
104
105private:
106 std::size_t m_nextDemo = 0;
107 std::string m_demoPath;
108 std::optional<std::size_t> m_consoleDemo;
109 ConsoleCredits m_credits;
110};
111
112} // namespace coastline
bool Interrupted() const
AttractDemo & operator=(const AttractDemo &)=delete
Prevent assignment of the registered demo controller.
void Start()
Start the attract demo as the root menu of the PC release starts it, on the recording after the one i...
ConsoleCredits & Credits()
Definition racedemo.h:44
static AttractDemo * Active()
void StartCredits(bool scrolling)
Start the race of the credits, on the recording of the credits of the PC release, as StartCreditsRace...
AttractDemo()
Register the exclusive attract-demo controller with the first recording selected next.
bool FromConsole() const
const char * NextRecording()
std::array< std::uint8_t, 3 > Color() const
const ConsoleCredits & Credits() const
Definition racedemo.h:48
bool Step(bool leave)
Run one frame of the race of the demo, a 30th of a second.
AttractDemo(const AttractDemo &)=delete
Prevent copying the registered demo controller.
~AttractDemo()
Unregister the controller after its active race has shut down.
Captions and scrolling credits for one attract-demo controller.
Definition racecredits.h:20
Definition assetimport.h:11
void OpenRaceData(bool playSounds)
Set the default configuration, the bindings, and the strings of the race, and open its sound,...
The credits of the Nintendo 64 release over a race of a recording of the credits of the PC release: t...