1#ifndef ALCHEMY_DISPLAY_TRANSITION_H
2#define ALCHEMY_DISPLAY_TRANSITION_H
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
The display transition state as the centre-line transition and the dissolve read it: the dissolve's t...
u8 ditherToggle
DisplayTransitionState's page: the dissolve flips it each frame and never reads it.
u8 unk000[0x508]
DisplayTransitionState's pages; not named here.
s8 start
the value's first step
u16 value
The progress, moved from start to end over duration frames: bit 5 says whether the dissolve fills or ...
u8 unk52c[13]
DisplayTransitionState's centreX to unk538; not named here.
s8 duration
frames; 0 when the value is not moving
s8 end
the value's last step
u8 paletteNibbles[0x22]
DisplayTransitionState's solidTile, as 4-bit pixels two a byte: the dissolve sets two more each frame...
The display transition state (heap block 31): two pages of window edges for every line,...
u16 value
The progress, moved from start to end over duration frames: bit 5 says whether the transition opens o...
u8 page
the pages entry shown; the next is built in the other
s16 active
WININ, or WINOUT by mode: 1 when a transition starts.
u8 unk538
not named by TBS code
s8 nextMode
The mode taken when the value reaches its end; 0 ends the transition.
s8 end
the value's last step; 64 hides BG1 to BG3 and sprites
s8 start
the value's first step
u16 mode
The window transition's shape: modes are listed at DisplayTransition_UpdateScanlineTable.
s16 mask
WINOUT, or WININ by mode: 0x3f3f or 63 when a transition starts.
u16 pages[2][322]
Window edges, two pages: WININ and WINOUT, then a WIN0H and WIN1H pair, each (left << 8 | right),...
u32 solidTile[8]
The dissolve's solid tile, one 8 by 8 tile of 4-bit pixels.
s32 centreX
16.16 fixed-point pixels: the centre of the ellipse around a point (mode 8), set by the Reveal effect...
s8 duration
frames; 0 when the value is not moving
s32 centreY
as centreX: the target's z less its y
The map work's display fields that transitions use: its display control bits and the lines where the ...
u16 irqSecondLine
scanlines; secondLine as the VCount interrupt reads it
u16 firstLine
scanlines: where the screen is hidden, 200 when it is not
u8 unk016[0xea]
map work fields no transition names
u32 unk000[5]
map work fields no transition names
u16 irqFirstLine
scanlines; firstLine as the VCount interrupt reads it
u16 secondLine
scanlines: where the screen is shown again, 250 when it is not hidden
u16 irqPhase
The VCount interrupt's phase: 0 waiting for a line above 159, 1 neither line passed,...
u16 dispcnt
Display control bits ORed into DISPCNT; DisplayState_ClearFlags clears those of backgrounds 1 to 3.
The integer types, TRUE, UNUSED and the fixed-address macros.