SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
StoryModeTimer Class Reference

Public Member Functions

void startTimer ()
 Speedrun timer functions.
 
void stopTimer ()
 
void pauseTimer (bool loading)
 
void unpauseTimer (bool loading)
 
void updateTimer ()
 
void reset ()
 
void playerHasChanged ()
 
std::string getTimerString ()
 
bool playerLoaded () const
 
bool isStoryModePaused () const
 
bool playerCanRun () const
 
bool isSpeedrunning () const
 
bool speedrunIsFinished () const
 
int getStoryModeTime () const
 
int getSpeedrunTime () const
 

Private Member Functions

void testPlayerRun ()
 
void pauseSpeedrunTimer ()
 
void pauseStoryModeTimer ()
 
void unpauseSpeedrunTimer ()
 
void unpauseStoryModeTimer ()
 
void updateSpeedrunTimer ()
 
void updateStoryModeTimer ()
 

Private Attributes

bool m_valid_speedrun_started
 
bool m_valid_speedrun_ended
 
bool m_story_mode_started
 
bool m_story_mode_ended
 
bool m_speedrun_pause_active
 
bool m_story_mode_pause_active
 
bool m_loading_pause
 
bool m_player_tested
 
bool m_player_can_speedrun
 
int m_speedrun_milliseconds
 
int m_story_mode_milliseconds
 
int m_stored_speedrun_milliseconds
 
int m_stored_story_mode_milliseconds
 
uint64_t m_speedrun_start
 
uint64_t m_speedrun_end
 
uint64_t m_speedrun_pause_start
 
uint64_t m_story_mode_start
 
uint64_t m_story_mode_end
 
uint64_t m_story_mode_pause_start
 
uint64_t m_speedrun_total_pause_time
 
uint64_t m_story_mode_total_pause_time
 

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