Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

timeline



This library handles various things related to passage of the in-game time.

Methods

Variables

baseYear (1988)

the base starting year in game.

DEFAULT_TIMESCALE_MULTIPLIER (0.75)

the multiplier for the speed at which time passes

WEEKS_IN_MONTH (4)

amount of weeks in a month.

MONTHS_IN_YEAR (12)

amount of months in a year.

WEEKS_IN_YEAR (48)

amount of weeks in a year.

DAYS_IN_WEEK (5)

amount of days in a week.

DAYS_IN_MONTH (20)

amount of days in a month.

DAYS_IN_YEAR (240)

amount of days in a year.

realSpeed

the current speed.

realProgressTime

frame time * speed multiplier.

MONTH_NAMES

list of month names. Sorted chronologically.

Events

NEW_DAY

fired when a new day begins.

NEW_WEEK

fired when a new week begins.

NEW_MONTH

fired when a new month begins.

NEW_YEAR

fired when a new year begins.

SPEED_CHANGED

fired when the speed gets changed.

PAUSED_TIMELINE

fired when pausing the timeline.

UNPAUSED_TIMELINE

fired when unpausing the timeline.

NEW_TIMELINE

fired when the timeline (day, week, month or year) is changed.

TIME_SET

changed when the time is set.