EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Timer.h
Go to the documentation of this file.
1#pragma once
2#ifndef TIMER_H
3#define TIMER_H
4
5#include <SFML/Graphics.hpp>
6#include <SFML/System.hpp>
7#include <iostream>
8#include <sstream>
9
10class Timer
11{
12private:
13 int seconds;
14 sf::Clock clock;
15 sf::Text timerText;
16 sf::Font font;
17
18public:
19 Timer(int startSeconds, const std::string& fontPath);
20 void updateTimerText();
21 void update();
22 void update(int instantTimeLost);
23 void draw(sf::RenderWindow& window);
24};
25#endif
void draw(sf::RenderWindow &window)
Definition Timer.cpp:60
void update()
Definition Timer.cpp:32
Timer(int startSeconds, const std::string &fontPath)
Definition Timer.cpp:4
void updateTimerText()
Definition Timer.cpp:19