Skip to Content
The Alchemy Project

struct LIGHT_WHEEL

The ring of five lights above the rocks as it spins to its next light. More…

Declared in altmiller_cave.c.

Fields

NameDescription
Sint16phaseWHEEL_SPEEDING_UP to WHEEL_STOPPED
Sint16ticksticks into the phase
Sint16unusednothing reads or writes it
Uint16angle
Uint16speed
Uint16travelHow far the ring has turned since its last click

Description

The ring of five lights above the rocks as it spins to its next light. Angles are 16-bit turns, and the light at the top is the chosen one.

struct LIGHT_WHEEL

Referenced by AltmillerCaveLightWheel, AltmillerCaveLightWheelState, scAltmillerCaveSpinLights(), scAltmillerCaveTurnRock() and scInit().

Definition at line 307 of file altmiller_cave.c.

Fields in detail

phase

Sint16 phase

WHEEL_SPEEDING_UP to WHEEL_STOPPED

ticks

Sint16 ticks

ticks into the phase

unused

Sint16 unused

nothing reads or writes it

angle

Uint16 angle

speed

Uint16 speed

travel

Uint16 travel

How far the ring has turned since its last click