3 #include <SFML/Graphics.hpp>
The class that manages the game time.
Definition: TimeManager.hpp:11
void pause()
Pause the timer.
Definition: TimeManager.cpp:46
sf::Time tempTime
The temporary object used for storing time while paused, goal scored or during half time.
Definition: TimeManager.hpp:79
int getTime()
Get the time in minutes as an integer.
Definition: TimeManager.cpp:24
void zero()
Set the time as zero.
Definition: TimeManager.cpp:58
void processTime()
Process the time in the game.
Definition: TimeManager.cpp:16
void resetTimer()
Reset the clock.
Definition: TimeManager.cpp:12
int vt
Definition: TimeManager.hpp:85
int t
Definition: TimeManager.hpp:84
sf::Time T
The Game time.
Definition: TimeManager.hpp:78
TimeManager()
Construct a new Time Manager object.
Definition: TimeManager.cpp:5
void resume()
Resume the paused timer.
Definition: TimeManager.cpp:50
~TimeManager()
Destroy the Time Manager object.
Definition: TimeManager.hpp:23
std::stringstream ss
The string stream used for returning the game time as a string.
Definition: TimeManager.hpp:81
std::string displayTimer()
Return the game time as a string that can simply be displayed.
Definition: TimeManager.cpp:28
void setTime(sf::Time timer)
Set the Time.
Definition: TimeManager.cpp:54
int s
Definition: TimeManager.hpp:86
int m
Definition: TimeManager.hpp:87
sf::Clock _clock
The clock for getting the current time.
Definition: TimeManager.hpp:77
Custom namespace used throughout the project.
Definition: AboutState.cpp:6