#include <KReplaySystem.hh>
Kinoko system designed to execute replays.
Definition at line 12 of file KReplaySystem.hh.
Public Member Functions | |
| void | init () override |
| Initializes the system. | |
| void | calc () override |
| Executes a frame. | |
| bool | run () override |
| Executes a run. | |
| void | parseOptions (int argc, char **argv) override |
| Parses non-generic command line options. | |
Static Public Member Functions | |
| static KReplaySystem * | CreateInstance () |
| static void | DestroyInstance () |
| static KReplaySystem * | Instance () |
Private Types | |
| typedef std::pair< const System::Timer &, const System::Timer & > | DesyncingTimerPair |
Private Member Functions | |
| KReplaySystem (const KReplaySystem &)=delete | |
| KReplaySystem (KReplaySystem &&)=delete | |
| bool | calcEnd () const |
| Determines whether or not the ghost simulation should end. | |
| void | reportFail (const std::string &msg) const |
| Reports failure to file. | |
| bool | success () const |
| Determines whether the simulation was a success or not. | |
| s32 | getDesyncingTimerIdx () const |
| Finds the desyncing timer index, if one exists. | |
| DesyncingTimerPair | getDesyncingTimer (s32 i) const |
| Gets the desyncing timer according to the index. | |
Static Private Member Functions | |
| static void | OnInit (System::RaceConfig *config, void *arg) |
| Initializes the race configuration as needed for replays. | |
Private Attributes | |
| EGG::SceneManager * | m_sceneMgr |
| const char * | m_currentGhostFileName |
| const System::GhostFile * | m_currentGhost |
| const u8 * | m_currentRawGhost |
| size_t | m_currentRawGhostSize |
Additional Inherited Members | |
| Static Protected Attributes inherited from Kinoko::KSystem | |
| static KSystem * | s_instance = nullptr |
|
private |
Definition at line 27 of file KReplaySystem.hh.
|
private |
Definition at line 100 of file KReplaySystem.cc.
|
overrideprivate |
Definition at line 104 of file KReplaySystem.cc.
|
overridevirtual |
|
private |
Determines whether or not the ghost simulation should end.
Definition at line 117 of file KReplaySystem.cc.
|
static |
Definition at line 87 of file KReplaySystem.cc.
|
static |
Definition at line 93 of file KReplaySystem.cc.
|
private |
Gets the desyncing timer according to the index.
| i | Index to the desyncing timer. Cannot be -1. |
Definition at line 198 of file KReplaySystem.cc.
|
private |
Finds the desyncing timer index, if one exists.
Definition at line 180 of file KReplaySystem.cc.
|
overridevirtual |
|
inlinestatic |
Definition at line 22 of file KReplaySystem.hh.
|
staticprivate |
Initializes the race configuration as needed for replays.
| config | The race configuration instance. |
| arg | Unused optional argument. |
Definition at line 221 of file KReplaySystem.cc.
|
overridevirtual |
Parses non-generic command line options.
The only currently accepted option is the ghost flag.
| argc | The number of arguments. |
| argv | The arguments. |
Implements Kinoko::KSystem.
Definition at line 49 of file KReplaySystem.cc.
|
private |
Reports failure to file.
| msg | The message to report. |
Definition at line 134 of file KReplaySystem.cc.
|
overridevirtual |
Executes a run.
A run consists of replaying a ghost.
Implements Kinoko::KSystem.
Definition at line 37 of file KReplaySystem.cc.
|
private |
Determines whether the simulation was a success or not.
Definition at line 142 of file KReplaySystem.cc.
|
private |
Definition at line 46 of file KReplaySystem.hh.
|
private |
Definition at line 45 of file KReplaySystem.hh.
|
private |
Definition at line 47 of file KReplaySystem.hh.
|
private |
Definition at line 48 of file KReplaySystem.hh.
|
private |
Definition at line 43 of file KReplaySystem.hh.