move class Clock to a separate unit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef UTIL_CLOCK_HPP_
|
||||
#define UTIL_CLOCK_HPP_
|
||||
|
||||
namespace util {
|
||||
class Clock {
|
||||
int tickRate;
|
||||
int tickParts;
|
||||
|
||||
float tickTimer = 0.0f;
|
||||
int tickId = 0;
|
||||
int tickPartsUndone = 0;
|
||||
public:
|
||||
Clock(int tickRate, int tickParts);
|
||||
|
||||
bool update(float delta);
|
||||
|
||||
int getParts() const;
|
||||
int getPart() const;
|
||||
int getTickRate() const;
|
||||
int getTickId() const;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // UTIL_CLOCK_HPP_
|
||||
Reference in New Issue
Block a user