SuperTuxKart
Loading...
Searching...
No Matches
Classes | Protected Member Functions | Friends | List of all members
ReplayBase Class Referenceabstract
Inheritance diagram for ReplayBase:
Inheritance graph
[legend]

Classes

struct  BonusInfo
 
struct  KartReplayEvent
 Records all other events. More...
 
struct  PhysicInfo
 
struct  TransformEvent
 Stores a transform event, i.e. More...
 

Protected Member Functions

FILE * openReplayFile (bool writeable, bool full_path=false, int replay_file_number=1)
 Opens a replay file which is determined by sub classes.
 
virtual const std::string & getReplayFilename (int replay_file_number=1) const =0
 Returns the filename that was opened.
 
unsigned int getCurrentReplayVersion () const
 Returns the version number of the replay file recorderd by this executable.
 
unsigned int getMinSupportedReplayVersion () const
 This is used to check that a loaded replay file can still be understood by this executable.
 

Friends

class GhostKart
 

Member Function Documentation

◆ getCurrentReplayVersion()

unsigned int ReplayBase::getCurrentReplayVersion ( ) const
inlineprotected

Returns the version number of the replay file recorderd by this executable.

This is also used as a maximum supported version by this exexcutable.

◆ getReplayFilename()

virtual const std::string & ReplayBase::getReplayFilename ( int  replay_file_number = 1) const
protectedpure virtual

Returns the filename that was opened.

Implemented in ReplayPlay, and ReplayRecorder.

◆ openReplayFile()

FILE * ReplayBase::openReplayFile ( bool  writeable,
bool  full_path = false,
int  replay_file_number = 1 
)
protected

Opens a replay file which is determined by sub classes.

Parameters
writeableTrue if the file should be opened for writing.
full_pathTrue if the file is full path.
Returns
A FILE *, or NULL if the file could not be opened.

The documentation for this class was generated from the following files: