|
OpenTTD Source 20260208-master-g43af8e94d0
|
Timer that represents the game-ticks. More...
#include <timer_game_tick.h>
Data Structures | |
| struct | TPeriod |
| struct | TStorage |
Public Types | |
| enum class | Priority : uint8_t { None , CompetitorTimeout } |
| Different levels of priority to run the timers in. More... | |
| using | Ticks = int32_t |
| The type to store ticks in. | |
| using | TickCounter = uint64_t |
| The type that the tick counter is stored in. | |
| using | TElapsed = uint |
Static Public Attributes | |
| static TickCounter | counter = 0 |
| Monotonic counter, in ticks, since start of game. | |
Timer that represents the game-ticks.
It will pause when the game is paused.
Definition at line 22 of file timer_game_tick.h.
| using TimerGameTick::TElapsed = uint |
Definition at line 57 of file timer_game_tick.h.
| using TimerGameTick::TickCounter = uint64_t |
The type that the tick counter is stored in.
Definition at line 25 of file timer_game_tick.h.
| using TimerGameTick::Ticks = int32_t |
The type to store ticks in.
Definition at line 24 of file timer_game_tick.h.
|
strong |
Different levels of priority to run the timers in.
| Enumerator | |
|---|---|
| None | These timers can be executed in any order; the order is not relevant. |
| CompetitorTimeout | Considering starting a new competitor/AI. |
Definition at line 28 of file timer_game_tick.h.
|
static |
Monotonic counter, in ticks, since start of game.
Definition at line 62 of file timer_game_tick.h.
Referenced by _GenerateWorld(), AfterLoadGame(), AnimationBase< Tbase, Tspec, Tobj, Textra, GetCallback, Tframehelper >::AnimateTile(), AnimateTile_Town(), Vehicle::BeginLoading(), NewGRFProfiler::BeginResolve(), Gamelog::Change(), TimetableWindow::DrawSummaryPanel(), GenerateDefaultSaveName(), GetCurrentNetworkServerGameInfo(), GetDateFromStartTick(), GetGlobalVariable(), GetStartTickFromDate(), Vehicle::IsWaitingForUnbunching(), Vehicle::LeaveStation(), Vehicle::LeaveUnbunchingDepot(), LoadNewGRF(), TimetableWindow::OnQueryTextFinished(), RunTileLoop(), SurveyTimers(), TileLoop_Town(), UpdateVehicleTimetable(), and VehicleEnterDepot().