blob: ac5113ee560b4665e7bb4b8757d06e2da0b645ca (
plain) (
blame)
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
|
#ifndef TIME_MANAGER_H
#define TIME_MANAGER_H 1
#include "util.hpp"
#include "units.hpp"
#include "straw.hpp"
#include "window.hpp"
class TimeMan {
static unit::Time m_time;
static unit::Time m_step;
static bool m_auto;
static bool m_changed;
public:
static void init();
static void update(int c);
static void draw();
static unit::Time time() { return m_time; }
static bool automatic() { return m_auto; }
static void interrupt() { m_auto = false; }
static bool changed() { return m_changed; }
};
#endif
|