forked from rpbpolis/spic-prj-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Time.hpp
38 lines (31 loc) · 883 Bytes
/
Time.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef TIME_H_
#define TIME_H_
namespace spic {
/**
* @brief Class representing game time.
*/
class Time {
public:
/**
* @brief The interval in seconds from the last frame to the current one (Read Only)
* @spicapi
*/
static double DeltaTime();
/**
* @brief The scale at which time passes.
* @return time scale value
* @spicapi
*/
static double TimeScale();
/**
* @brief The scale at which time passes.
* @param newTimeScale The new value for the time scale.
* @spicapi
*/
static void TimeScale(double newTimeScale);
private:
static double deltaTime;
static double timeScale;
};
}
#endif // TIME_H_