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
10
class
Timer
11
{
12
private
:
13
int
seconds;
14
sf::Clock clock;
15
sf::Text timerText;
16
sf::Font font;
17
18
public
:
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
Timer::draw
void draw(sf::RenderWindow &window)
Definition
Timer.cpp:60
Timer::update
void update()
Definition
Timer.cpp:32
Timer::Timer
Timer(int startSeconds, const std::string &fontPath)
Definition
Timer.cpp:4
Timer::updateTimerText
void updateTimerText()
Definition
Timer.cpp:19
EchosOfTime
Timer.h
Generated by
1.13.2