cc.journeyman.the-great-game.time

TODO: write docs

canonical-ordering-of-houses

The canonical ordering of religious houses.

date-string

(date-string game-time)

Return a correctly formatted date for this game-time in the calendar of the Great Place.

day

(day game-time)

Day of the eight-day week represented by this game-time.

day-of-year

macro

(day-of-year game-time)

The day of the year represented by this game-time, ignoring leap years.

days-in-season

TODO: write docs

days-in-week

This world has an eight day week.

days-of-week

The eight-day week of the game world. This differs from the canonical ordering of houses in that it omits the eye.

game-day-length

The Java clock advances in milliseconds, which is fine. But we need game-days to be shorter than real world days. A Witcher 3 game day is 1 hour 36 minutes, or 96 minutes, which is presumably researched. Round it up to 100 minutes for easier calculation.

game-start-time

The start time of this run.

game-time

(game-time)(game-time timestamp)

With no arguments, the current game time. If a Java timestamp value is passed (as a long), the game time represented by that value.

now

(now)

For now, we’ll use Java timestamp for time; ultimately, we need a concept of game-time which allows us to drive day/night cycle, seasons, et cetera, but what matters about time is that it is a value which increases.

season

(season game-time)

TODO: write docs

seasons-in-year

Nine seasons in a year, one for each house (although the order is different.

seasons-of-year

The ordering of seasons in the year is different from the canonical ordering of the houses, for reasons of the agricultural cycle.

waiting-day?

Does this game-time represent a waiting day?

week

(week game-time)

Week of season represented by this game-time.

weeks-in-season

To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.

weeks-of-season

To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.