$search
Navigator node timer class. More...
#include <ntimer.h>
Public Member Functions | |
virtual void | Cancel (void) |
Cancel timer. | |
virtual bool | Check (void) |
Return true if timer has expired. | |
NavTimer () | |
Constructor. | |
virtual void | Restart (double duration) |
Restart timer. | |
virtual void | Start (double duration) |
Start timer. | |
virtual | ~NavTimer () |
Protected Attributes | |
double | time_remaining |
bool | timer_running |
Navigator node timer class.
This class is specific to the navigator node.
Definition at line 22 of file ntimer.h.
virtual void NavTimer::Cancel | ( | void | ) | [inline, virtual] |
virtual bool NavTimer::Check | ( | void | ) | [inline, virtual] |
Return true if timer has expired.
Called once per cycle while timer is running. Skipped cycles do not contribute to timer expiration. That allows timers to pause while the vehicle is pausing. It should not immediately begin passing after pausing behind a stopped vehicle, for example.
virtual void NavTimer::Restart | ( | double | duration | ) | [inline, virtual] |
virtual void NavTimer::Start | ( | double | duration | ) | [inline, virtual] |
double NavTimer::time_remaining [protected] |
bool NavTimer::timer_running [protected] |