#include <timer.h>
Collaboration diagram for TIMER:

Public Member Functions | |
| TIMER () | |
| ~TIMER () | |
| void | Load () |
| void | Reset () |
| void | Lap (bool storelastlap) |
| float | GetTimer () |
| void | TickTimer (float timefactor, float fps) |
| void | ResetBest () |
| void | ResetLast () |
| void | Draw () |
Private Member Functions | |
| void | SecsToSecsMin (double t, float &secs, int &min) |
Private Attributes | |
| double | time |
| double | pretime |
| double | lastlap |
| double | bestlap |
| TEXTURE_HANDLE | timerbox |
| bool | loaded |
Definition at line 52 of file timer.h.
|
|
Definition at line 27 of file timer.cpp. References bestlap, SETTINGS::GetSettingsDir(), lastlap, loaded, pretime, settings, and time. |
|
|
Definition at line 45 of file timer.cpp. References timerbox, and TEXTURE_HANDLE::Unload(). |
|
|
Definition at line 95 of file timer.cpp. References UTILITY::Draw2D(), font, GAMESTATE::GetGameState(), pretime, FONT::Print(), SecsToSecsMin(), STAGING_TIME, state, STATE_STAGING, timerbox, and utility. Referenced by VAMOSWORLD::DrawTopLevel(). |
|
|
Definition at line 73 of file timer.cpp. References time. |
|
|
Definition at line 54 of file timer.cpp. References bestlap, SETTINGS::GetSettingsDir(), lastlap, settings, and time. |
|
|
Definition at line 192 of file timer.cpp. References TEXTURE_HANDLE::Load(), loaded, and timerbox. Referenced by ChangeDisplay(), and InitGameData(). |
|
|
Definition at line 186 of file timer.cpp. Referenced by LoadWorld(), REPLAY::PlayStart(), ResetWorld(), and REPLAY::Start(). |
|
|
Definition at line 171 of file timer.cpp. References bestlap, SETTINGS::GetSettingsDir(), and settings. Referenced by LoadWorld(). |
|
|
Definition at line 181 of file timer.cpp. References lastlap. Referenced by LoadWorld(). |
|
||||||||||||||||
|
Definition at line 165 of file timer.cpp. Referenced by Draw(). |
|
||||||||||||
|
Definition at line 78 of file timer.cpp. References GAMESTATE::GetGameState(), pretime, GAMESTATE::SetGameState(), STAGING_TIME, state, STATE_PLAYING, STATE_STAGING, and time. Referenced by Update(). |
|
|
Definition at line 58 of file timer.h. Referenced by Lap(), ResetBest(), and TIMER(). |
|
|
Definition at line 57 of file timer.h. Referenced by Lap(), ResetLast(), and TIMER(). |
|
|
|
|
|
Definition at line 56 of file timer.h. Referenced by Draw(), Reset(), TickTimer(), and TIMER(). |
|
|
Definition at line 55 of file timer.h. Referenced by GetTimer(), Lap(), Reset(), TickTimer(), and TIMER(). |
|
|
|
1.4.6