|
| enum | SortOrder {
SO_DEFAULT
, SO_TRACK = SO_DEFAULT
, SO_REV
, SO_KART_NUM
,
SO_DIFF
, SO_LAPS
, SO_TIME
, SO_USER
,
SO_VERSION
} |
| | Order of sort for ReplayData.
|
| |
|
|
void | reset () |
| | Resets all ghost karts back to start position.
|
| |
|
void | load () |
| |
|
void | loadFile (bool second_replay) |
| |
|
void | loadAllReplayFile () |
| |
|
void | sortReplay (bool reverse) |
| |
|
void | setReplayFile (unsigned int n) |
| |
|
void | setSecondReplayFile (unsigned int n, bool second_replay_enabled) |
| |
| void | setReplayFileByUID (uint64_t uid) |
| | call getReplayIdByUID and set the current replay file to the first one with a matching UID. More...
|
| |
| unsigned int | getReplayIdByUID (uint64_t uid) |
| | Search among replay file and return the first index with a matching UID. More...
|
| |
|
bool | addReplayFile (const std::string &fn, bool custom_replay=false, int call_index=0) |
| |
|
const ReplayData & | getReplayData (unsigned int n) const |
| |
|
const ReplayData & | getCurrentReplayData () const |
| |
|
const unsigned int | getNumReplayFile () const |
| |
|
std::shared_ptr< GhostKart > | getGhostKart (int n) |
| |
|
const unsigned int | getNumGhostKart () const |
| |
|
const std::string & | getGhostKartName (unsigned int n) const |
| |
|
virtual const std::string & | getReplayFilename (int replay_file_number=1) const |
| | Returns the filename that was opened.
|
| |
|
unsigned int | getCurrentReplayFileIndex () const |
| |
|
unsigned int | getSecondReplayFileIndex () const |
| |
|
bool | isSecondReplayEnabled () const |
| |
|
|
static void | setSortOrder (SortOrder so) |
| |
|
static void | create () |
| | Creates a new instance of the replay object.
|
| |
|
static ReplayPlay * | get () |
| | Returns the instance of the replay object.
|
| |
|
static void | destroy () |
| | Delete the instance of the replay object.
|
| |
|
|
| ReplayPlay () |
| | Initialises the Replay engine.
|
| |
|
| ~ReplayPlay () |
| | Frees all stored data.
|
| |
| void | readKartData (FILE *fd, char *next_line, bool second_replay) |
| | Reads all data from a replay file for a specific kart. More...
|
| |
|
|
unsigned int | m_current_replay_file |
| |
|
unsigned int | m_second_replay_file |
| |
|
bool | m_second_replay_enabled |
| |
|
std::vector< ReplayData > | m_replay_file_list |
| |
|
std::vector< std::shared_ptr< GhostKart > > | m_ghost_karts |
| | All ghost karts.
|
| |
|
|
static ReplayPlay * | m_replay_play = NULL |
| |
|
static SortOrder | m_sort_order = ReplayPlay::SO_DEFAULT |
| |
|
| FILE * | openReplayFile (bool writeable, bool full_path=false, int replay_file_number=1) |
| | Opens a replay file which is determined by sub classes. More...
|
| |
| unsigned int | getCurrentReplayVersion () const |
| | Returns the version number of the replay file recorderd by this executable. More...
|
| |
|
unsigned int | getMinSupportedReplayVersion () const |
| | This is used to check that a loaded replay file can still be understood by this executable.
|
| |
◆ getReplayIdByUID()
| unsigned int ReplayPlay::getReplayIdByUID |
( |
uint64_t |
uid | ) |
|
Search among replay file and return the first index with a matching UID.
- Parameters
-
◆ readKartData()
| void ReplayPlay::readKartData |
( |
FILE * |
fd, |
|
|
char * |
next_line, |
|
|
bool |
second_replay |
|
) |
| |
|
private |
Reads all data from a replay file for a specific kart.
- Parameters
-
| fd | The file descriptor from which to read. |
◆ setReplayFileByUID()
| void ReplayPlay::setReplayFileByUID |
( |
uint64_t |
uid | ) |
|
call getReplayIdByUID and set the current replay file to the first one with a matching UID.
- Parameters
-
The documentation for this class was generated from the following files: