|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
10 #ifndef TIMER_GAME_TICK_H
11 #define TIMER_GAME_TICK_H
13 #include "../gfx_type.h"
28 using TElapsed = uint;
static constexpr TimerGameTick::Ticks CARGO_AGING_TICKS
Cycle duration for aging cargo.
static TickCounter counter
Monotonic counter, in ticks, since start of game.
Storage class for Ticks constants.
Timer that represents the game-ticks.
uint64_t TickCounter
The type that the tick counter is stored in.
static constexpr TimerGameTick::Ticks INDUSTRY_CUT_TREE_TICKS
Cycle duration for lumber mill's extra action.
static constexpr TimerGameTick::Ticks INVALID_TICKS
Representation of an invalid number of ticks.
static constexpr TimerGameTick::Ticks INDUSTRY_PRODUCE_TICKS
Cycle duration for industry production.
static constexpr TimerGameTick::Ticks STATION_LINKGRAPH_TICKS
Cycle duration for cleaning dead links.
static constexpr TimerGameTick::Ticks TOWN_GROWTH_TICKS
Cycle duration for towns trying to grow (this originates from the size of the town array in TTD).
int32_t Ticks
The type to store ticks in.
static constexpr TimerGameTick::Ticks TICKS_PER_SECOND
Estimation of how many ticks fit in a single second.
static const uint MILLISECONDS_PER_TICK
The number of milliseconds per game tick.
static constexpr TimerGameTick::Ticks STATION_RATING_TICKS
Cycle duration for updating station rating.
static constexpr TimerGameTick::Ticks DAY_TICKS
1 day is 74 ticks; TimerGameCalendar::date_fract used to be uint16_t and incremented by 885.
static constexpr TimerGameTick::Ticks STATION_ACCEPTANCE_TICKS
Cycle duration for updating station acceptance.