PropaneTimer Class Reference

Basic one-way timer for game events. More...

#include <PropaneTimers.h>

Inheritance diagram for PropaneTimer:

PropaneAutoResetTimer List of all members.

Public Member Functions

float getTime ()
 Return the current time used.
virtual bool update (float delta)
 Update the timer; delta is in seconds. Returns TRUE if this update tripped the timer.
void reset ()
 Reset the timer and start over.
void setLimit (float lim)
 Set the limit where the timer will trip.
float percentComplete ()
 Check the percent completed of this timer.
void setIncrements (bool incr)
 Set whether or not the timer increments or decrements.
 PropaneTimer (float limit, bool increment)
 Construct with a limit and the option to increment.
 PropaneTimer ()
 Construct with nothing.
virtual ~PropaneTimer ()
 Destruct.

Protected Attributes

float timer
 The current time.
float limit
 The limit (when decrementing, resetting will set this to it, otherwise it will set to 0 and count up to this limit).
bool increments
 Toggle if it's incrementing or decrementing.

Detailed Description

Basic one-way timer for game events.


The documentation for this class was generated from the following files:
Generated on Thu Aug 31 20:26:03 2006 for Propane Injector by  doxygen 1.4.7