diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2022-06-22 17:41:59 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2022-06-22 17:41:59 -0400 |
commit | 5e3a2492c7bb73daa4e27398daaf490d09980ff3 (patch) | |
tree | 75178d823d596b6a898002c3f1d45b9ceede0e1e /include/timeman.hpp | |
download | systemviewer-5e3a2492c7bb73daa4e27398daaf490d09980ff3.tar.gz systemviewer-5e3a2492c7bb73daa4e27398daaf490d09980ff3.tar.bz2 systemviewer-5e3a2492c7bb73daa4e27398daaf490d09980ff3.zip |
Base system viewer with data loaded from csv files
Diffstat (limited to 'include/timeman.hpp')
-rw-r--r-- | include/timeman.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/timeman.hpp b/include/timeman.hpp new file mode 100644 index 0000000..ac5113e --- /dev/null +++ b/include/timeman.hpp @@ -0,0 +1,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 |