All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
star::Timer Class Referencefinal

#include <Timer.h>

Collaboration diagram for star::Timer:
Collaboration graph

Public Member Functions

 Timer ()
 Timer (double targetTime, bool countingDown, bool loop, std::function< void()> func, bool paused=false)
 ~Timer ()
 Timer (const Timer &yRef)
Timeroperator= (const Timer &yRef)
bool Update (const Context &context)
void SetPaused (bool paused)
void SetCountingDown (bool countingDown)
void SetLoop (bool looping)
void Reset (bool paused=false)
void SetTargetTime (double targetTime, bool reset=true, bool paused=false)
void SetFunction (std::function< void()> func)
int GetCurrentMinutes () const
int GetCurrentSeconds () const
int GetCurrentTotalSeconds () const
double GetCurrentAccurateTime () const

Constructor & Destructor Documentation

star::Timer::Timer ( )
star::Timer::Timer ( double  targetTime,
bool  countingDown,
bool  loop,
std::function< void()>  func,
bool  paused = false 
star::Timer::~Timer ( )
star::Timer::Timer ( const Timer yRef)

Member Function Documentation

double star::Timer::GetCurrentAccurateTime ( ) const
int star::Timer::GetCurrentMinutes ( ) const
int star::Timer::GetCurrentSeconds ( ) const
int star::Timer::GetCurrentTotalSeconds ( ) const
Timer & star::Timer::operator= ( const Timer yRef)
void star::Timer::Reset ( bool  paused = false)
void star::Timer::SetCountingDown ( bool  countingDown)
void star::Timer::SetFunction ( std::function< void()>  func)
void star::Timer::SetLoop ( bool  looping)
void star::Timer::SetPaused ( bool  paused)
void star::Timer::SetTargetTime ( double  targetTime,
bool  reset = true,
bool  paused = false 
bool star::Timer::Update ( const Context context)

The documentation for this class was generated from the following files: