Skip to main content
Verticopolis engineGitHub

Module header

Module header 

Source
Expand description

The dynamic frame’s header slots, one name each. UNLOCKED holds the unlocked kinds as a bitmask by kind code in one double, with more than 32 bits in use: read bit k as Math.floor(mask / 2 ** k) % 2, since JavaScript’s bitwise operators cut a number to 32 bits. FRAME_SEQ counts the reader’s frames from 1: a host that sees it skip a number missed a frame, and asks for a full one before it applies another. DAY through WEEKEND_DAYS are the clock’s readings on the tower’s calendar (the day count, the day of the week, the weekend flag as 0 or 1, the quarter and the year, all counted from 0) and the calendar’s week and weekend lengths in days, so a host shows dates without doing the date arithmetic. BOMB_SEARCH_SEQ is 0 while no bomb search runs and otherwise moves with every change to it, so a host rereads the search only when it moved.

Constants§

BOMBS_DETONATED
BOMB_SEARCH_SEQ
DAY
DAY_OF_WEEK
EXPLOSION_FX_FLOOR
EXPLOSION_FX_SEQ
EXPLOSION_FX_X
FIRES_GUT_ROOMS
FIRES_STARTED
FRAME_SEQ
FULL
IS_WEEKEND
LOG_SEQ
MEAL_OVERLAY_REVISION
META_REVISION
MINUTES
MONEY
ON_HOUR_RUNS
PENDING_CHOICE
PEOPLE
POPULATION
QUARTER
ROOMS
SANTA_FX_SEQ
STAR
THIEF_FX_CAUGHT
THIEF_FX_FLOOR
THIEF_FX_SEQ
TOWER_REVISION
TRANSPORTS
TREASURE_FX_FLOOR
TREASURE_FX_SEQ
TREASURE_FX_X
UNITS
UNLOCKED
VIP_FX_SEQ
WEATHER
WEEKEND_DAYS
WEEK_DAYS
YEAR