UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::system::Task Class Reference

#include <ugdk/system/task.h>

Classes

struct  CallableAdapter< void >
 

Public Member Functions

template<typename Callable >
 Task (Callable c, double priotity=0.5)
 
 ~Task ()
 
double priority () const
 
bool operator() (double dt)
 
bool operator< (const Task &other) const
 

Constructor & Destructor Documentation

template<typename Callable >
ugdk::system::Task::Task ( Callable  c,
double  priotity = 0.5 
)
inline

Constructs a new Task, with given callable and priority. Priority is tipically in the range [0, 1], and smaller priorities are executed before.

See also
TaskPlayer
ugdk::system::Task::~Task ( )
inline

Member Function Documentation

bool ugdk::system::Task::operator() ( double  dt)
inline
bool ugdk::system::Task::operator< ( const Task other) const
inline
double ugdk::system::Task::priority ( ) const
inline

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