TimeManipulator.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "TimeId.hpp"
4 
5 namespace iv
6 {
7 
8 class Instance;
9 class TimeSystem;
10 
12 {
13 public:
14  TimeManipulator( Instance * inst );
15  Instance * instance();
16 
22  void speed( TimeId time_type, double speed );
23  double speed( TimeId time_type );
24 
25  void game_update_period( TimeId time_type, int period_ms );
26  int game_update_period( TimeId time_type );
27 
28 private:
29  Instance * inst;
30  TimeSystem * ts;
31 };
32 
33 }