5#ifndef DCPP_I_TIMER_HPP_INCLUDED
6#define DCPP_I_TIMER_HPP_INCLUDED
8#include <duckcpp/core/engine/IReferenceCounted.hpp>
Base class of most objects of the Duckcpp Engine.
Definition IReferenceCounted.hpp:46
Interface for getting and manipulating the virtual time.
Definition ITimer.hpp:15
virtual dcpp::uint32_kt getTime() const =0
Returns current virtual time in milliseconds.
virtual void tick()=0
Advances the virtual time.
virtual dcpp::float32_kt getSpeed() const =0
Returns current speed of the timer.
virtual dcpp::uint32_kt getRealTime() const =0
Returns current real time in milliseconds of the system.
virtual void setSpeed(dcpp::float32_kt speed=1.0f)=0
Sets the speed of the timer.
virtual void start()=0
Starts the virtual timer.
virtual void setTime(dcpp::uint32_kt time)=0
sets current virtual time
virtual bool isStopped() const =0
Returns if the virtual timer is currently stopped.
virtual void stop()=0
Stops the virtual timer.
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72