19#ifndef HEADER_STORY_MODE_TIMER_HPP
20#define HEADER_STORY_MODE_TIMER_HPP
28 bool m_valid_speedrun_started, m_valid_speedrun_ended;
29 bool m_story_mode_started, m_story_mode_ended;
30 bool m_speedrun_pause_active, m_story_mode_pause_active;
33 bool m_player_can_speedrun;
36 int m_speedrun_milliseconds;
37 int m_story_mode_milliseconds;
39 int m_stored_speedrun_milliseconds;
40 int m_stored_story_mode_milliseconds;
42 uint64_t m_speedrun_start;
43 uint64_t m_speedrun_end;
44 uint64_t m_speedrun_pause_start;
46 uint64_t m_story_mode_start;
47 uint64_t m_story_mode_end;
48 uint64_t m_story_mode_pause_start;
50 uint64_t m_speedrun_total_pause_time;
51 uint64_t m_story_mode_total_pause_time;
55 void pauseSpeedrunTimer();
56 void pauseStoryModeTimer();
57 void unpauseSpeedrunTimer();
58 void unpauseStoryModeTimer();
59 void updateSpeedrunTimer();
60 void updateStoryModeTimer();
69 void pauseTimer(
bool loading);
70 void unpauseTimer(
bool loading);
74 void playerHasChanged();
75 std::string getTimerString();
76 bool playerLoaded()
const {
return m_player_tested; }
77 bool isStoryModePaused()
const {
return m_story_mode_pause_active; }
78 bool playerCanRun()
const {
return m_player_can_speedrun; }
79 bool isSpeedrunning()
const {
return m_valid_speedrun_started; }
80 bool speedrunIsFinished()
const {
return m_valid_speedrun_ended; }
81 int getStoryModeTime()
const {
return m_story_mode_milliseconds; }
82 int getSpeedrunTime()
const {
return m_speedrun_milliseconds; }
Definition: story_mode_timer.hpp:26
void startTimer()
Speedrun timer functions.
Definition: story_mode_timer.cpp:102
Declares the general types that are used by the network.