News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::Timer class Reference

Zap::Timer Class Reference

#include <timer.h>


Public Member Functions

 Timer (U32 period=0)
bool update (U32 timeDelta)
U32 getCurrent ()
F32 getFraction ()
void reset ()
void reset (U32 newCounter, U32 newPeriod=0)

Private Attributes

U32 mPeriod
U32 mCurrentCounter


Constructor & Destructor Documentation

Zap::Timer::Timer U32  period = 0  )  [inline]
 


Member Function Documentation

bool Zap::Timer::update U32  timeDelta  )  [inline]
 

U32 Zap::Timer::getCurrent  )  [inline]
 

F32 Zap::Timer::getFraction  )  [inline]
 

void Zap::Timer::reset  )  [inline]
 

void Zap::Timer::reset U32  newCounter,
U32  newPeriod = 0
[inline]
 


Field Documentation

U32 Zap::Timer::mPeriod [private]
 

U32 Zap::Timer::mCurrentCounter [private]