iv::TimeManipulator Class Reference
#include <TimeManipulator.hpp>
Public Member Functions | |
| TimeManipulator (Instance *inst) | |
| Instance * | instance () |
| void | speed (TimeId time_type, double speed) |
| double | speed (TimeId time_type) |
| void | game_update_period (TimeId time_type, int period_ms) |
| int | game_update_period (TimeId time_type) |
Detailed Description
Definition at line 11 of file TimeManipulator.hpp.
Constructor & Destructor Documentation
◆ TimeManipulator()
| iv::TimeManipulator::TimeManipulator | ( | Instance * | inst | ) |
Definition at line 7 of file TimeManipulator.cpp.
Member Function Documentation
◆ instance()
| Instance * iv::TimeManipulator::instance | ( | ) |
Definition at line 13 of file TimeManipulator.cpp.
◆ speed() [1/2]
| void iv::TimeManipulator::speed | ( | TimeId | time_type, |
| double | speed | ||
| ) |
Speed very close to 0 will stop frame updates. Positive speed will have frame updates in usual rate (not affected by speed). Negative speed is not allowed.
Definition at line 18 of file TimeManipulator.cpp.
◆ speed() [2/2]
| double iv::TimeManipulator::speed | ( | TimeId | time_type | ) |
Definition at line 24 of file TimeManipulator.cpp.
◆ game_update_period() [1/2]
| void iv::TimeManipulator::game_update_period | ( | TimeId | time_type, |
| int | period_ms | ||
| ) |
Definition at line 32 of file TimeManipulator.cpp.
◆ game_update_period() [2/2]
| int iv::TimeManipulator::game_update_period | ( | TimeId | time_type | ) |
Definition at line 40 of file TimeManipulator.cpp.
The documentation for this class was generated from the following files:
- ivorium_systems/TimeSystem/TimeManipulator.hpp
- ivorium_systems/TimeSystem/TimeManipulator.cpp

