Orxonox  0.0.5 Codename: Arcturus
Namespaces | Functions | Variables
Timer.cc File Reference

Implementation of the Timer class. More...

#include "Timer.h"
#include <set>
#include <boost/bimap.hpp>
#include <functional>
#include "util/Clock.h"
#include "core/CoreIncludes.h"
#include "core/command/ConsoleCommandIncludes.h"
#include "core/command/CommandExecutor.h"
#include "core/command/Executor.h"
#include "core/command/Functor.h"
#include "tools/interfaces/TimeFactorListener.h"

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Functions

unsigned int orxonox::addDelayedCommand (Timer *timer, float delay, const std::string &command)
 Helper function, used by delay() and delayreal() to add a delayed command. More...
 
unsigned int orxonox::delay (float delay, const std::string &command)
 Console-command: Calls another console command after delay seconds (game time). More...
 
unsigned int orxonox::delayreal (float delay, const std::string &command)
 Console-command: Calls another console command after delay seconds (real time) More...
 
void orxonox::executeDelayedCommand (Timer *timer, const std::string &command)
 Helper function for delay(), executes the command and destroys the timer. More...
 
void orxonox::killdelay (unsigned int handle)
 Console-command: Kills a delayed command with given handle. More...
 
void orxonox::killdelays ()
 Console-command: Kills all scheduled commands that were delayed using delay(). More...
 
 orxonox::RegisterClassNoArgs (Timer)
 
 orxonox::RegisterClassNoArgs (RealTimer)
 
 orxonox::SetConsoleCommand ("delay",&delay).argumentCompleter(1
 
 orxonox::SetConsoleCommand ("delayreal",&delayreal).argumentCompleter(1
 
 orxonox::SetConsoleCommand ("killdelay",&killdelay)
 
 orxonox::SetConsoleCommand ("killdelays",&killdelays)
 

Variables

static unsigned int orxonox::delayHandleCounter = 0
 
static boost::bimap< unsigned int, Timer * > orxonox::delaytimers
 

Detailed Description

Implementation of the Timer class.