Skip to main content
Verticopolis engineGitHub

Module clock

Module clock 

Source
Expand description

Game time: the Clock on Simulation::clock, the GameMode a game is started in, and the two calendars.

A game day is 1,440 game minutes. The canon calendar is the 1994 original’s short one (a 3-day week with a 1-day weekend, 3-day quarters, 12-day years); the real-world calendar has 7-day weeks, 90-day quarters and 360-day years. Classic games always run canon.

Structs§

Calendar
The lengths a calendar gives the week, the quarter and the year, in days.
Clock
The game clock.

Enums§

CalendarKind
Which calendar a game runs on.
GameMode
The two ways to play, chosen when a game starts.

Constants§

CANON
The 1994 original’s calendar, which Classic always runs.
REAL_WORLD
The real-world calendar a Modern game may choose.

Functions§

resolve_calendar
The calendar a game in mode runs: Classic always runs canon, and Modern runs the one the player chose.