Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_internal.h

What every part of the battle_effect object shares: its includes, the canvas's and the shared sheets' sizes, the modes of the bodies several effects play, and the functions and tables the parts reach across each other. More…

Included by battle_effect.c.

Structures

NameDescription
structSTREAK_POINTA point of a streak: x, y and z.
structPLUNGE_STREAKOne of Cruel Ruin's 256 streaks: its head and tail and how it is turned.
structELEMENT_STREAKS_STATEThe element streaks' state, which btEffectStartElementStreaks allocates in the HEAP_SLOT_BATTLE_EFFECT heap slot in place of the battle effect state.
structRUIN_OBJECTAn EFFECT_SPR as Cruel Ruin reads its OAM attribute 2: its tile, priority and palette, as fields or as one halfword.
structDROPLET_BUFFERThe map cell buffer holds WIN0's line table and then the droplets Douse's drops throw up.
structMESH_TRIANGLEA mesh triangle: its three vertex numbers and the texture coordinates of each corner.

Macros

NameDescription
#defineEFFECT_DISPCNTThe battle screen's display mode while an effect plays: background mode 1 with BG0 to BG2, sprites and both windows on.
#defineFIXED_INTEGER_PART (v) FIXEDtoINT((Sint32)(v))
#defineEFFECT_BLEND_ADD BLEND_ALPHA(BLEND_WEIGHT_MAX, BLEND_WEIGHT_MAX)The canvas added to the battle under it: both blend weights whole.
#defineEFFECT_BLEND_CANVAS (level) BLEND_ALPHA(level, BLEND_WEIGHT_MAX)The canvas at level sixteenths over the whole battle under it.
#defineCANVAS_BLEND_LEVEL 14The canvas's usual weight over the battle, in sixteenths: every canvas opens with it.
#defineELEMENT_BLEND_LEVEL 12The element pillar's and element burst's canvas weight over the battle.
#defineELEMENT_SPIRAL_MOTES 128The motes the element pillar and element burst set up in PARTICLES; the burst leaves them undrawn.
#defineWINDOW_EDGE_RIGHT ((Uint16 *)MapGridMetatileBuffer)The map cell buffer as btEffectBuildWindowEdgeTable reads it: window 0's right edge, how far each of its lines is set in from that edge, and the right edge it builds for every screen line.
#defineWINDOW_EDGE_INSETS (RamMapMetatileBuffer + 2)
#defineWINDOW_EDGE_INSET_LINES 128
#defineWINDOW_EDGE_LINES (WINDOW_EDGE_INSETS + WINDOW_EDGE_INSET_LINES)
#definePARTICLES ((PARTICLE *)RamMapMetatileBuffer)The particles an effect keeps in the map cell buffer, from its start.
#defineEXTRA_PARTICLES ((PARTICLE *)(RamMapMetatileBuffer + 16384))The particles an effect keeps in the map cell buffer from its second 16 KB on, past PARTICLES or the pictures and meshes it keeps in the first: a second, larger table, always reached at its fixed address, where the effects that throw more sparks, motes or trails than the state's 64 particles keep them.
#defineOBJ_TILES (sprite)The VRAM address of a sprite's tiles, from its VRAM cache entry.
#defineDMA_CONTROL_HALF 5Index of DMAxCNT_H, the control half, in a channel's 16-bit registers.
#definePARTICLE_POOL_COUNT 1024The particles the map cell buffer holds when an effect lays its particles over it from the start.
#defineNEREID_BURST_DROPS 256Nereid's drops burst up, in btEffectRunNereid and in the unused copy of it: every free one of the first NEREID_BURST_DROPS as the columns gather, then NEREID_DROPS_A_TICK a tick while they rise.
#defineNEREID_DROPS_A_TICK 16
#defineMEGAERA_OBJECTS 11The sprites that draw Megaera, in her summon and in her formation.
#defineCANVAS_SIZE 128The canvas: 128x128 pixels, one byte each, in its heap slot and in VRAM at BG_CHAR_BLOCK(1) (CANVAS_BYTES).
#defineCANVAS_TILES (CANVAS_SIZE / 8)The canvas's rows and columns of 8x8 tiles.
#defineCANVAS_PIXEL_OFFSET (x, y)The byte of canvas pixel (x, y): the canvas is laid out in 8x8 tiles, row by row, each tile 64 bytes row by row.
#defineCANVAS_TILE_BYTES (8 * 8)The bytes of one 8x8 tile of the canvas; a row of pixels steps from one tile to the next by CANVAS_TILE_BYTES - 8.
#defineOBJ_32X32_8BPP_BYTES (32 * 32)The bytes of a 32x32 sprite's tiles in 256 colours, and in 16.
#defineOBJ_32X32_4BPP_BYTES (32 * 32 / 2)
#defineOBJ_64X64_8BPP_BYTES (64 * 64)The bytes of a 64x64 sprite's tiles in 256 colours, and in 16.
#defineOBJ_64X64_4BPP_BYTES (64 * 64 / 2)
#defineOBJ_16X16_4BPP_BYTES (16 * 16 / 2)The bytes of a 16x16 sprite's tiles in 16 colours.
#defineCANVAS_ROW_OFFSET (y) ((((y) & 7) << 3) + (((y) >> 3) << 10))The byte of the first pixel of canvas row y, y not negative.
#defineCANVAS_LEVEL_BRIGHTEST 63The brightest canvas level: the additive blitters and CANVAS_COPY_AND_BRIGHTEN stop at it.
#defineBATTLE_VIEW_TOP 16The battle view, under the top window and over the menus: screen lines 16 to 135.
#defineBATTLE_VIEW_HEIGHT 120
#defineBATTLE_VIEW_BOTTOM (BATTLE_VIEW_TOP + BATTLE_VIEW_HEIGHT)
#defineGRADIENT_BLUE_LINES 15The backdrop gradients Azul and Coatlicue write over the battle view, a colour a line from BATTLE_VIEW_TOP - 1: each channel a level darker every so many lines down, blue every 15, green every 16 and red every 17.
#defineGRADIENT_GREEN_LINES 16
#defineGRADIENT_RED_LINES 17
#defineEFFECT_WRITE_CANVAS_MAP_ROW (row, column, offset)Writes one row of BG2's map for the canvas, two tiles at a time.
#defineSUMMON_OPENING_TICKS 52Three summons open alike (Eclipse, Daedalus and Flora): the battle flashes away over SUMMON_OPENING_TICKS, and at SUMMON_OPENING_LOAD_TICK their sky and their sprites load.
#defineSUMMON_OPENING_LOAD_TICK 27
#defineEFFECT_SET_BATTLE_WINDOWS ()Windows 0 and 1 both cover the battle view: the full width, lines 16 to 135.
#defineCANVAS_VIEW_BYTES (CANVAS_SIZE * BATTLE_VIEW_HEIGHT)The canvas's first BATTLE_VIEW_HEIGHT lines, which the battle view shows: what most of this game's effects clear and fill, leaving the last 8.
#defineNARROW_CANVAS_PARTY_X (DISPLAY_WIDTH - CANVAS_SIZE)How far right the narrow canvas is set to show over the party: against the screen's right edge.
#defineSUMMON_PROJECTION_CENTER_Y 240Where the summons centre the projection while their figures fly, lower than the battle's BATTLE_PROJECTION_CENTER_Y.
#defineBACKGROUND_DARKEN_TICKS 24The ticks the battle background darkens behind an effect's canvas (state->fadeFrame, btEffectDarkenBackgroundStep).
#defineBACKGROUND_DARKENED_LEVEL BACKGROUND_DARKEN_TICKSThe level btBackgroundLoadStub darkens the battle's own background to as it comes back after an effect: as dark as the canvas's fade left it.
#defineSHEET_PALETTE_COLORS 64A sprite sheet resource opens with its 64 colours, ahead of its compressed pictures.
#defineSHEET_PALETTE_BYTES (SHEET_PALETTE_COLORS * 2)
#defineLOAD_BG_PALETTE (resource)Loads a sprite sheet's colours into the background palette.
#definePARTICLE_DAMPING_NONE DAMPING_SCALEThe damping that keeps a particle's whole speed.
#definePICTURE_BYTES (name) (name##_WIDTH * name##_HEIGHT)The bytes of a sprite sheet picture, one byte a pixel, from its name's _WIDTH and _HEIGHT.
#defineEFFECT_DRAW_PICTURE (draw, canvas, sheet, name, x, y)Draws picture name of sheet at its own size, its top left at (x, y).
#defineTARGET_STRIKE_BITE_Y 56A bite's half pictures (BlueDropletSheet's closing fangs, each drawn beside its mirror): the canvas row they start at, and their size.
#defineTARGET_STRIKE_BITE_WIDTH 18
#defineTARGET_STRIKE_BITE_HEIGHT 48
#defineBATTLE_BACKGROUND_WIDTH 256The battle background's image as BG1 shows it from BG character block 2, one byte a pixel.
#defineBATTLE_BACKGROUND_HEIGHT 120
#defineBATTLE_BACKGROUND_BYTES
#defineBG_SCROLL_WRAP (1 << 16)A background's scroll (BG_SCROLL) is a halfword: a negative scroll is held BG_SCROLL_WRAP above itself, and read back by taking it away.
#defineMAP_ENTRY_PAIR (left, right) ((Uint32)(right) << 16 | (left))Two entries of a background map in one word: left, then the one to its right.
#defineBG1_CLEAR_TILE 1023The tile BG1 shows around a picture of its own, the last a map entry can name.
#defineBG1_BLOCK2_FIRST_TILE (2 * BG_CHAR_SIZE / TILE_SIZE_8BPP)BG character block 2's first tile, counted from BG1's character base.
#definePALETTE_BANK_BYTES 32The bytes of one 16-colour palette.
#defineCOLOR_PAIR (color) ((color) << 16 | (color))A word of two palette entries, both color, to fill a palette a word at a time.
#defineMODEL_SHADE_INVISIBLE (-64)A model's shade (RENDER_MODEL.shade) is added to each of its pixels' canvas levels: at this or below, nothing of the model is left to draw, and the effects skip it.
#defineCOLOR_LEVELS_CAP (red, green, blue)A colour's three levels held at RGB_LEVEL_MAX at most; CLAMP also holds them at 0 at least.
#defineCOLOR_LEVELS_CLAMP (red, green, blue)
#defineCOLOR_STEP_DOWN (Steps a colour's levels, red, green and blue, down toward a target's by step in each channel that is more than a step above it.
#defineMODEL_ONE_SIDED 2RENDER_MODEL.flags that the rasterizer kernels read: a one-sided model draws only the faces wound one way round on the screen, clockwise with MODEL_CLOCKWISE and anticlockwise without it, and skips the others.
#defineMODEL_CLOCKWISE 1
#defineEFFECT_VIEW_FROM_CAMERA (camera)Starts a tick's 3D projection from the battle camera.
#defineGLINT_SET_BYTESThe bytes of the six glint pictures that open the tornado sprite sheet.
#defineEFFECT_DRAW_FLARE (draw, canvas, sheet, x, y, size)Draws flare picture size, a square, centred on (x, y).
#defineREAPER_SHEET_RAISED_WIDTH 57The reaper in CounterRevealSheet, which Condemn and Mortal Danger decode: the reaper with its scythe raised, then swung, then the red crescent the swing leaves.
#defineREAPER_SHEET_RAISED_HEIGHT 98
#defineREAPER_SHEET_SWUNG_WIDTH 99
#defineREAPER_SHEET_SWUNG_HEIGHT 69
#defineREAPER_SHEET_CRESCENT_WIDTH 128
#defineREAPER_SHEET_CRESCENT_HEIGHT 91
#defineRED_CRESCENT_FADE_A_WIDTH 128RedCrescentSheetA: the swing's crescent fading in four pictures.
#defineRED_CRESCENT_FADE_A_HEIGHT 91
#defineRED_CRESCENT_FADE_B_WIDTH 128
#defineRED_CRESCENT_FADE_B_HEIGHT 59
#defineRED_CRESCENT_FADE_C_WIDTH 122
#defineRED_CRESCENT_FADE_C_HEIGHT 29
#defineRED_CRESCENT_FADE_D_WIDTH 76
#defineRED_CRESCENT_FADE_D_HEIGHT 25
#defineSLASH_PICTURE_SIZE 120The slash pictures as wide and tall as the canvas's view: StarBurstSheet's, CrescentSheet's and the reveal masks.
#defineLIGHTNING_BOLT_WIDTH 24Closing bolts and lightning columns use the same 24x120 pictures.
#defineLIGHTNING_BOLT_HEIGHT 120
#defineLIGHTNING_BOLT_PICTURE_BYTES PICTURE_BYTES(LIGHTNING_BOLT)
#defineBLUE_FLAME_COLUMN_WIDTH 17BlueFlameSheet: the column of flame, then the flame that splashes from it, twice its width.
#defineBLUE_FLAME_COLUMN_HEIGHT 104
#defineBLUE_FLAME_SPLASH_WIDTH 34
#defineBLUE_FLAME_SPLASH_HEIGHT 65
#defineWAVE_WIDTH 48WaveSheet's six pictures, BlueArcSheetA and B's six, and YellowOrbSheet's.
#defineWAVE_HEIGHT 16
#defineBLUE_ARC_WIDTH 48
#defineBLUE_ARC_HEIGHT 72
#defineYELLOW_ORB_WIDTH 40
#defineYELLOW_ORB_HEIGHT 48
#defineYELLOW_ORB_PACKED_WIDTH (YELLOW_ORB_WIDTH / 2)The yellow orb as btEffectPackYellowOrbs packs it, every second byte.
#defineYELLOW_ORB_PACKED_HEIGHT YELLOW_ORB_HEIGHT
#defineYELLOW_ORB_PICTURES 6
#defineFIRE_STREAK_WIDTH 48FireStreakSheet's six pictures and FireBurstSheet's.
#defineFIRE_STREAK_HEIGHT 72
#defineFIRE_BURST_WIDTH 40
#defineFIRE_BURST_HEIGHT 80
#defineMERCURY_SMALL_DJINNI_HEIGHT 34The small Djinn sprite sheets' pictures are SMALL_DJINNI_WIDTH wide; Mercury's and Venus's are shorter than SMALL_DJINNI_HEIGHT.
#defineVENUS_SMALL_DJINNI_HEIGHT 38
#defineFIRE_BLOB_WIDTH 48FireBlobSheet's blobs and CrystalSheet's crystal.
#defineFIRE_BLOB_HEIGHT 32
#defineCRYSTAL_WIDTH 32
#defineCRYSTAL_HEIGHT 64
#defineCRYSTAL_SHARD_PICTURES PICTURE_BYTES(CRYSTAL)CrystalSheet's shard pictures, after its crystal, and the shards of PrismShardStarts a crystal breaks into.
#defineSHARDS_PER_CRYSTAL 16
#defineBOULDER_WIDTH 34BoulderSheet's boulder, its first picture, and its shard pictures after it.
#defineBOULDER_HEIGHT 62
#defineBOULDER_SHARD_PICTURES (BOULDER_WIDTH * BOULDER_HEIGHT)
#defineSHARD_TURN 96A shard turns through its three pictures, one each SHARD_TURN of its variant.
#defineSTAT_REDUCTION_SHARD_PICTURES 9600PaletteRampImage's shard pictures (drawn through StatChangeShardPictures), where the stat reduction and the Sword Card decode them in the sprite sheet, followed by DIMMED_COPIES - 1 copies of them, each darker than the one before.
#defineSTAT_REDUCTION_SHARD_BYTES 696bytes in each copy
#defineLIGHTNING_PILLAR_WIDTH 48LightningPillarSheet's pillar, in two pictures.
#defineLIGHTNING_PILLAR_HEIGHT 112
#defineFIRE_PILLAR_WIDTH 34FirePillarSheetA: the pillar of fire, then two flames.
#defineFIRE_PILLAR_HEIGHT 104
#defineFIRE_PILLAR_FLAME_WIDTH 20
#defineFIRE_PILLAR_FLAME_HEIGHT 37
#defineSPIRAL_WIDTH 32SpiralSheet's pictures.
#defineSPIRAL_HEIGHT 32
#defineCARD_WIDTH 32A card's picture, as the Sleep, Baffle, Death and Sword Cards and the Bramble, Frost, Flame and Thunder Cards draw it.
#defineCARD_HEIGHT 64
#defineSHEEP_WIDTH 32SheepCardSheet's sheep, four pictures of it tumbling after its card.
#defineSHEEP_HEIGHT 32
#defineFLAMEBALL_WIDTH 40FlameballSheet and FireballSheet's pictures.
#defineFLAMEBALL_HEIGHT 64
#defineRUNE_HALF_WIDTH 24Each half of RuneSheet's rune, the second drawn mirrored.
#defineRUNE_HALF_HEIGHT 48
#defineRUNE_TEXTURE_SIZE 64The 64x64 texture Flash Force and Void Beam build: the rune's two halves side by side, the second mirrored, eight pixels in from the top left.
#defineRUNE_TEXTURE_RUNE (8 * RUNE_TEXTURE_SIZE + 8)
#defineDJINNI_WIDTH 40A Djinni's picture: each frame of the full Djinn sprite sheets (VenusDjinnSheet and its kind), and the one picture of the small sprite sheets.
#defineDJINNI_HEIGHT 40
#defineSMALL_DJINNI_WIDTH 20
#defineSMALL_DJINNI_HEIGHT 40
#defineSMOKE_PUFF_WIDTH 24The pictures of the sprite sheets several effects share, each sprite sheet's pictures all one size: SmokeSheet's puffs, FlashBurstSheet's bursts, SkullSheet's skulls and the tornado strips after TornadoSheet's glints.
#defineSMOKE_PUFF_HEIGHT 48
#defineSMOKE_PUFF_TICKS (6 * 4)A puff of SmokeSheet's lives through its six pictures, four ticks each.
#defineFLASH_BURST_WIDTH 32
#defineFLASH_BURST_HEIGHT 64
#defineFLASH_BURST_PICTURE_COUNT 6FlashBurstSheet's six pictures: a white flash turning to a fireball that burns out to embers.
#defineBLUE_BUBBLE_WIDTH 24BlueBeamSheet: a blue bubble, a small splash of blue light the bubble's size, then a large splash.
#defineBLUE_BUBBLE_HEIGHT 24
#defineBLUE_LARGE_SPLASH_WIDTH 42
#defineBLUE_LARGE_SPLASH_HEIGHT 42
#defineCLOUD_PUFF_WIDTH 32BlueCloudPuffSheet: four 32x32 puffs of cloud.
#defineCLOUD_PUFF_HEIGHT 32
#defineSKULL_WIDTH 24
#defineSKULL_HEIGHT 24
#defineTORNADO_STRIP_WIDTH 40
#defineTORNADO_STRIP_HEIGHT 32
#defineDAGGER_WIDTH 24The pictures of DaggerSheet, ShieldSheet, GlowOrbSheet, VioletStreakSheet and WispSheet.
#defineDAGGER_HEIGHT 40
#defineSHIELD_WIDTH 40
#defineSHIELD_HEIGHT 40
#defineGLOW_ORB_WIDTH 40
#defineGLOW_ORB_HEIGHT 40
#defineVIOLET_STREAK_WIDTH 32
#defineVIOLET_STREAK_HEIGHT 64
#defineWISP_WIDTH 64
#defineWISP_HEIGHT 32
#defineVORTEX_WIDTH 24VortexSheet's six pictures and HeartSheet's heart.
#defineVORTEX_HEIGHT 48
#defineHEART_WIDTH 22
#defineHEART_HEIGHT 42
#defineWATER_WAVE_WIDTH 32WaterSpraySheet: the wave, then the splash's pictures.
#defineWATER_WAVE_HEIGHT 32
#defineWATER_SPLASH_WIDTH 48
#defineWATER_SPLASH_HEIGHT 48
#defineBATTLE_EFFECT_STATE_SIZE 31612The bytes an effect's state is lent: more than struct BATTLE_EFFECT_STATE holds.
#defineMOTE_SET_BYTES 770The bytes of one set of the ten mote pictures: 2 * (1 + 4 + ...
#defineDIMMED_COPIES 8A picture's dimmed copies: DIMMED_COPIES of it, copy i with every level capped at DIMMED_COPY_CAP(i), 7 levels lower than the copy before, copy 0 not at all.
#defineDIMMED_COPY_CAP (copy) (CANVAS_LEVEL_BRIGHTEST + 1 - (copy) * 7)
#defineEFFECT_CAP_LEVEL (level, cap)Caps a colour level at cap, and at 0 from below.
#defineFLARE_SET_BYTES 1540The bytes of BlueGlowSheet's ten flare pictures, 2 to 20 pixels square: 4 * (1 + 4 + ...
#defineBATTLE_SHEET_BYTES (FLARE_SET_BYTES + 10)The battle sheet (HEAP_SLOT_BATTLE_SHEET) the casting impacts, the plain attacks and Cruel Ruin decode their glows into: room for BlueGlowSheet's flares, the largest of them, with ten bytes to spare.
#defineMOTE_PICTURES 10
#defineSTRIKE_KIND_SLASH 0The two kinds of target strike (TargetStrikeStyles).
#defineSTRIKE_KIND_BITE
#defineSTRIKE_SMOKE 1A target strike style's extras.
#defineSTRIKE_ABSORB 2motes fly out of the target and back into the user
#defineSTRIKE_GLINTS 4glints sparkle around the target
#defineSTRIKE_SPARKS 8each hit scatters sparks
#defineSTRIKE_HEAVY 16one heavy hit: a big shake and the target recoils
#defineSTRIKE_FLASH 32as heavy, with flash pictures for the smoke
#defineSTRIKE_STAR 64a star swells on the target
#defineSTRIKE_COLOR_BLUE 0The palettes a target strike's background takes (TARGET_STRIKE_COLOR).
#defineSTRIKE_COLOR_LIME 1LimePalette
#defineSTRIKE_COLOR_PINK 2PinkPalette
#defineSTRIKE_COLOR_EMBER 3EmberStreakSheet's
#defineSTRIKE_COLOR_MARS 4MarsDjinnSheet's
#defineSTRIKE_COLOR_LIGHTNING 5LightningBoltSheet's
#defineSTRIKE_COLOR_ORANGE 6OrangePaletteB
#defineEFFECT_WIN0_LAYERSWindow 0 shows the battle view: BG0 to BG2, the sprites and blending.
#defineEFFECT_WINOUT (WINOUT_WIN01_BG0 | WINOUT_WIN01_CLR | WINOUT_WINOBJ_ALL)Outside the battle view: BG0 and blending only.
#defineEFFECT_START_NARROW_CANVAS (bgControl)Opens the canvas layer at its own width: BG2 shows it one pixel a pixel.
#defineEFFECT_STRIKE_TARGET (effect, i, ticks, motion)Strikes target i: it flashes white in its damage pose and is knocked back by motion.
#defineEFFECT_CLIP_BOUNDS (COMPOSITE_CLIP_X | COMPOSITE_CLIP_Y)A blitter that clips its rectangles to the canvas.
#defineALT_BLITTER (RamHeapSlots->ramCodePaired)The second blitter, the drawing function in the paired heap slot.
#defineEFFECT_LOAD_BLITTER (slot, flags, mode)Builds a blitter for the canvas in heap slot slot, for one clip, mirror and blend mode (BLITTER_ADDITIVE to BLITTER_COPY): where both are constants they go packed into one word to btEffectLoadBlitter, the shorter call, and otherwise to btEffectBuildBlitter as they are, as every glint draw and mirrored pair that picks its flags or its mode at run time needs.
#defineEFFECT_SET_TRANSFER (state, mode, value)Sets what the canvas transfer leaves in the canvas after each copy.
#defineEFFECT_START_TRANSFER (state, mode, value)Sets the transfer, then starts copying the canvas to VRAM once a tick.
#defineEFFECT_PRESENT_CANVAS (state) ((state)->transferPending = 1, sySynch(1))Presents the canvas and waits for the next tick.
#defineWAIT_TRANSFER (state)Waits until a VBlank has passed since the one that last copied the canvas.
#defineEFFECT_END_TICK (state)The usual end of an effect's tick: counts down the targets' flash timers, then presents the canvas.
#defineEFFECT_RELEASE_BLITTERS ()Frees the two blitters, the second first.
#defineEFFECT_FINISH_CANVAS ()The usual end of a canvas effect: the transfer, the blitters, then the canvas layer.
#defineEFFECT_FINISH_CANVAS_ONE_BLITTER ()The same for an effect that drew through one blitter.
#defineMOTE_SIZE_MAX 10The largest of the ten mote pictures.
#defineEFFECT_DRAW_MOTE (draw, canvas, sheet, x, y, size)Draws mote picture size (1 to MOTE_SIZE_MAX: size pixels wide, twice that tall), centred across x and standing on y.
#defineEFFECT_FREE_PARTICLES (i, particles, count)Marks particles[0] to particles[count - 1] free: a particle whose variant is -1 is not drawn or moved until an effect gives it a life.
#defineEFFECT_SHOW_WIDE_CANVAS (top)Shows the canvas stretched to twice its width, top sixteenths of its colour added over what lies under it.
#defineCANVAS_WAVE_BG2X (sway) ((sway) >> 10)A line's 16.16 sideways sway as its BG2X value in state->bg2xLines, which the wave HBlank DMA writes line by line.
#defineEFFECT_SHOW_DAMAGE (hitSound) btPlaybackStartStub(hitSound)Lets the battle show the damage, playing hitSound as the targets react: 0 keeps the one queued, and HIT_SOUND_NONE plays none where the effect has played its own.
#defineHIT_SOUND_NONE (-1)
#defineTINT_KEEP (-1)Passed to btEffectTintBattler as its palette, pose or timer slot: leave that one as it is.
#defineSTAMP_TILES (state)The 64x64 stamp Haures draws in 256 colours: the VRAM address of its sprite's tiles, two words before the state's end, past what struct BATTLE_EFFECT_STATE names, and the picture drawn for them, the 4 KB before transferMode.
#defineSTAMP_CANVAS (state)
#defineTHORN_MIRRORED 1A thorn's kind in ThornKinds.
#defineTHORN_SMALL 232 pixels wide, not 48

Enumerations

NameDescription
enumMODEL_KIND { MODEL_END, MODEL_SOLID, MODEL_SOLID_MAX, MODEL_SOLID_ADDITIV … }RENDER_MODEL.kind: the rasterizer kernel btRenderDrawModelList copies into IWRAM to draw a model, and how it puts each pixel on the canvas.
enumREAPER_SHEET_PICTURE { REAPER_SHEET_RAISED, REAPER_SHEET_SWUNG, REAPER_SHEET_CRESCE … }Where each picture starts in ReaperSheet, in bytes.
enumRED_CRESCENT_PICTURE { RED_CRESCENT_FADE_A, RED_CRESCENT_FADE_B, RED_CRESCENT_FADE_ … }Where each picture starts in RedCrescentSheetA, in bytes.
enumTARGET_STRIKE_COLUMN { TARGET_STRIKE_KIND, TARGET_STRIKE_HITS, TARGET_STRIKE_FLAGS, … }The columns of TargetStrikeStyles, one row a style.
enumTARGET_STRIKE_STYLE { TARGET_STRIKE_STYLE_BLUE_SPARK_BITES, TARGET_STRIKE_STYLE_LI … }The target strike styles, rows of TargetStrikeStyles: The Broken Seal's twelve, then this game's own.
enumCANVAS_WIPE_DIRECTION { CANVAS_WIPE_DOWN, CANVAS_WIPE_ACROSS }Which way btEffectWipeCanvas sweeps.
enumCANVAS_FILL { CANVAS_WIPE_FILL, CANVAS_WIPE_CLEAR }What btEffectWipeCanvas leaves behind it.
enumTUMBLING_QUADS_MODE { TUMBLING_QUADS_BALM, TUMBLING_QUADS_TINDER, TUMBLING_QUADS_P … }The tumbling quads' modes (btEffectRunTumblingQuads), each named for the effect that plays it.
enumGASP_MODE { GASP_MODE_GASP, GASP_MODE_UNUSED, GASP_MODE_REFLUX, GASP_MOD … }The gasp family's modes (btEffectRunGaspFamily), each named for the effect that plays it.
enumTWISTING_COLUMN_MODE { TWISTING_COLUMN_WHORL, TWISTING_COLUMN_GALE, TWISTING_COLUMN … }The twisting column's modes (btEffectRunTwistingColumn), each named for the effect that plays it.
enumBALL_LIGHTNING_MODE { BALL_LIGHTNING_THUNDER_MINE, BALL_LIGHTNING_EARTH_FORCE }The ball lightning's modes (btEffectRunBallLightning).
enumDJINNI_CHARGE_MODE { DJINNI_CHARGE_CORE, DJINNI_CHARGE_CANNON }The Djinni charge's modes (btEffectRunDjinniCharge).
enumHEAVY_BLOW_MODE { HEAVY_BLOW_HEAVY_DIVIDE, HEAVY_BLOW_STRONG_HIT }The heavy blow's modes (btEffectRunHeavyBlow).
enumDJINNI_SIGN_MODE { DJINNI_SIGN_RIME, DJINNI_SIGN_HAZE }The Djinni sign's modes (btEffectRunDjinniSign).
enumCARD_KIND { CARD_SLEEP, CARD_BAFFLE, CARD_DEATH, CARD_SWORD }The cards (btEffectRunCards).
enumELEMENT_CARD_KIND { CARD_BRAMBLE, CARD_FROST, CARD_FLAME, CARD_THUNDER }The element cards (btEffectRunElementCards).
enumBREATH_KIND { BREATH_BEAM, BREATH_ROLLING_FLAME, BREATH_PIKE, BREATH_BLAST }The breaths (btEffectRunBreaths).
enumRUSHING_STRIKE_MODE { RUSHING_STRIKE_UNUSED, RUSHING_STRIKE_BRUTE_FORCE, RUSHING_S … }The rushing strike's sparks' palettes (btEffectRunRushingStrike), each named for the effect that first plays it; Bone Charge plays Stun Muscle's.
enumMIRRORED_WALL_MODE { MIRRORED_WALL_SPASM, MIRRORED_WALL_BERSERK, MIRRORED_WALL_RE … }The mirrored wall's modes (btEffectRunMirroredWall), each named for the effect that plays it.
enumSPARK_GROUPS_MODE { SPARK_GROUPS_NOVA, SPARK_GROUPS_DYNAMITE, SPARK_GROUPS_RISIN … }Where btEffectRunSparkGroups' bursts go off.
enumCAMERA_PHASE { CAMERA_PHASE_IDLE, CAMERA_PHASE_TICK_DONE, CAMERA_PHASE_HALF … }state->cameraPhase, which btCameraApplyPhasedDelta and the effects that turn the camera through it (Fire, Froth) pass between them.
enumFLURRY_MODE { FLURRY_BEAR_CLAW, FLURRY_BACTERIA_RUSH, FLURRY_FREEBITE_RUSH … }btEffectRunFlurry's modes, by the abilities that play them: the rows of FlurryStyles.
enumFLURRY_ARC { FLURRY_ARCS_AND_WAVES, FLURRY_ARCS }A flurry's arcs, its FLURRY_ARC_SHEET.
enumFLURRY_PAL { FLURRY_PALETTE_MARS_DJINNI, FLURRY_PALETTE_LIME, FLURRY_PALE … }Whose palette a flurry takes, its FLURRY_PALETTE.
enumFLURRY_EXTRA_KIND { FLURRY_EXTRA_NONE, FLURRY_EXTRA_GLINTS, FLURRY_EXTRA_RIPPLE }What else a flurry plays around its target, its FLURRY_EXTRA.

Functions

NameDescription
void *btEffectSpriteAcquire (Sint32 width, Sint32 height, Uint32 shape, Sint32 mode)Takes the first free sprite of the actor system's pool with a new animation entry.
void *btEffectSpriteCreateWithTiles (Sint32 width, Sint32 height, Sint32 attributes, Sint32 flags)Makes an effect sprite with tiles of its own in object VRAM: a free VRAM cache entry and the first free effect sprite of the 64, as btEffectSpriteAcquire takes, set up for fdSpriteStartAnimationStub.
extern void (*constBattleEffectHandlers [])(BATTLE_EFFECT_PARM *args)One handler for each battle effect, by effect less one; 0 where none.
voidbtEffectAdvanceScrollOnInterval (void)battle_effect_display.c
voidbtEffectConfigureEffectDisplay (void)Puts the battle screen back into the display state every effect starts from and ends with.
voidbtEffectAdvanceBg2OnInterval (void)Slides the affine BG2 a step every few frames.
voidbtEffectStartCanvasLayer (Sint32 bgControl)battle_effect_canvas.c
voidbtEffectEndCanvasLayer (void)Closes the canvas layer.
voidbtEffectCountDownBattlerTints (void)Counts down the actors' flash timers.
voidbtEffectStartTiledCanvas (Sint32 bgControl)Opens the canvas layer with the canvas repeated across a wrapping map.
voidbtEffectStartTiledCanvasFilled (Sint32 bgControl)Opens the canvas layer as btEffectStartTiledCanvas does, with the canvas's top right tile in the rest of each row in place of its top left.
voidbtEffectProcessPendingBlock2Transfer (void)The same for a picture drawn in the canvas's heap slot: a plain copy takes all of BATTLE_BACKGROUND_BYTES, while the clear, the fade and the darkening take only its first CANVAS_VIEW_BYTES.
voidbtDisplayApplyBg2Affine (void)Writes the effect's BG2 scale to BG2PA and BG2PD and its reference point to BG2X and BG2Y.
voidbtEffectSetupCanvasTileMap (void)Sets up the canvas tile map on BG1.
voidbtEffectHideBg1AndRestoreBackdrop (void)Marks the transition done and shows the battle view again.
voidbtEffectTransferFullScreenImage (void)Copies a picture the size of the battle background from the map cell buffer to BG character block 2 once the effect has finished a tick, as transferMode says.
voidbtEffectDrawClippedCanvasLine ( Sint32 x0, Sint32 y0, Sint32 x1, Sint32 y1, Sint32 color)Draws a line on the canvas, keeping the brighter colour where it crosses what is drawn.
voidbtEffectBuildCanvasTilemap (void)Writes BG1's map to show a picture CANVAS_SIZE wide from BG character block 2, as btTransitionBuildFlatTilemap does for the battle background: four rows of blank entries, two of BG1_CLEAR_TILE, then the picture's tiles in order, CANVAS_TILES rows of them, each row closed with BG1_CLEAR_TILE.
voidbtEffectProcessPendingStampTransfer (void)Copies the stamp's picture to its sprite's tiles once the effect has drawn it, then clears the picture.
voidbtEffectBuildCanvasBlitters (Sint32 flip, DRAW_RECTANGLE *out)Fetches the max and additive blitters, flipped or not.
voidbtEffectUpdatePhasePalette (Sint32 frame, Sint32 redPhase, Sint32 greenPhase, Sint32 bluePhase)battle_effect_prism.c
voidbtCameraApplyPhasedDelta (void)Turns the battle camera's yaw by the effect's delta: every VBlank turns it at least half the delta, so it keeps turning on frames that end no tick of the effect.
voidbtEffectShowLivingTargets (BATTLE_EFFECT_PARM *args)battle_effect_dispatch.c
voidbtEffectCallNoOperation (Sint32 count)Calls the empty btEffectNoOperation count times: a busy delay.
voidbtEffectBuildWindowEdgeTable (void)Builds window 0's right edge for every line and restarts the DMA that writes it.
voidbtEffectTintBattler ( Sint32 unitId, Sint32 palette, Sint32 pose, Sint32 timerSlot, Sint32 ticks)Shows a battler in a palette and a pose, for ticks ticks counted in timer slot timerSlot; TINT_KEEP leaves any of them as it is.
voidbtEffectSetupBlendedDisplay (void)Shows the battle background, as dark as the canvas's fade left it, behind a cleared canvas, and fades out the action's sound effects.
voidbtEffectRunImpair (BATTLE_EFFECT_PARM *args)battle_effect_stat_change.c
voidbtEffectRunDull (BATTLE_EFFECT_PARM *args)A dagger appears over each target and breaks into shards that fade through darker copies, in the glow orb's colours.
voidbtEffectRunWeaken (BATTLE_EFFECT_PARM *args)A shield appears over each target and breaks into fading shards, in the pink burst's colours.
voidbtEffectCreateSprites (Sint32 count, Sint32 spriteId, Uint32 priority)battle_effect_eruption.c
voidbtParticleAdvanceWithGravity3D (PARTICLE *step, Sint32 damping, Sint32 gravity)advance_with_gravity.s
voidbtParticleAdvanceWithGravity2D (PARTICLE *step, Sint32 damping, Sint32 gravity)Moves a particle one tick on the screen: its velocity scaled by damping sixty-fourths, then gravity added to its y speed.
voidbtEffectRunDjinniEntrance (BATTLE_EFFECT_PARM *effect, Uint32 packed, Sint32 *screen, Sint32 *world)battle_effect_projectiles.c
voidbtEffectSetApproachMotion (Sint32 id, Sint32 targetId, Sint32 ticks, Sint32 rate)Sends a battler leaping rate percent of the way toward another, to arrive in the given ticks.
voidbtResourceLoadAndDecompress (Sint32 id, void *dest, Sint32 skipPalette, Sint32 copyPalette)battle_effect_djinn_attacks.c
voidbtCameraShake (Sint32 rangeX, Uint32 rangeY)Shakes the camera while state->shakeFrame lasts.
voidbtCameraApplyVerticalShake (Sint32 range)Shakes the battle view up and down only, by a random offset within range, while the effect's shake lasts.
SPR_ANIMATION *btAnimationObjectAllocateEmpty (void)battle_effect_gaia.c
voidbtEffectStartActorMotion (Sint32 id, Sint32 force, Sint32 acceleration, Sint32 speedLimit, Sint32 velocityY, Sint32 percent)battle_effect_beams.c
voidbtEffectRunCriticalHit (BATTLE_EFFECT_PARM *effect)A critical hit: motes of light close in on the attacker as it hangs in its leap, then a crescent slash sweeps across the first target and sparks fly from it.
voidbtEffectRunAttackSlash (BATTLE_EFFECT_PARM *effect)A plain attack: a slash or streak sweeps from the user over its first target, a yellow orb flashes over the target and sparks fly off.
voidbtRenderBuildQuadStrip (struct STRIP_QUAD *quad, Sint32 width, Sint32 height, Sint32 count)battle_effect_charon.c
voidbtPaletteMirrorBgColors (void)battle_effect_ulysses.c
voidbtGraphicsLoadGreyRamp (void)Fills BG palette colours 1 to 63, the canvas's levels, with a grey ramp, each level i / 2.
voidbtEffectRunSwirlSwipe (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_spider_web.c
voidbtEffectPosProjectBattler (Sint32 id, SCREEN_POINT *pos)battle_effect_positions.c
voidbtEffectGetTargetsMidpoint (SCREEN_POINT *pos)The middle between the first and the last target.
voidbtEffectPosProjectSprite (Sint32 id, SCREEN_POINT *pos)Projects a unit's sprite onto the screen, raised by half its height, 16 pixels higher.
voidbtMeshBuildGrid (MESH_TRIANGLE *triangles, Sint32 columns, Sint32 rows, Sint32 cellWidth, Sint32 cellHeight)battle_effect_meteor_blow.c
voidbtEffectArmMeteorBlowPaletteDMA (void)Meteor Blow's horizontal-blank callback, the same function as battle_effect_starfield_fall.c's btEffectArmPaletteHBlankDMA: stops DMA 0, then arms it to copy one BG palette word per scanline from the line table in the effect state, so the backdrop's colour changes down the screen.
voidbtEffectRunCastingImpact (BATTLE_EFFECT_PARM *action, Sint32 kind)battle_effect_casting_impact.c
voidbtEffectStepPaletteToResource (Sint32 resource)Steps the background colours one shade toward a resource's palette.
voidbtEffectWipeCanvas (Sint32 direction, Sint32 fill)battle_effect_canvas_wipe.c
voidbtEffectPlaceFormationSprites (Sint32 formation, Sint32 x, Sint32 z)battle_effect_starfield_fall.c
voidbtEffectRunImpactBurst (Sint32 formation, Sint32 x, FIXED y)Opens an impact flash and scatters sparks and fragments, keeping the effect's sprites in formation for the first 36 ticks.
voidbtEffectArmPaletteHBlankDMA (void)Streams the fall's backdrop colours into colour 0, one each line.
voidbtEffectRunFallingSword (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_titan_blade.c
voidbtEffectRunFlashingStrike (BATTLE_EFFECT_PARM *effect, Sint32 variant)battle_effect_thrash.c
voidbtPictureMirrorIntoQuadrants (Uint8 *src, Uint8 *dest, Sint32 width, Sint32 height)battle_effect_undead_sword.c
voidbtEffectRunWaterSheet (BATTLE_EFFECT_PARM *effect, Sint32 mode)The body of Dreamtide and Watery Grave: a sheet of water (a 16 by 8 grid of vertices, its mesh built here) rolls in under the targets in waves while the camera turns; Dreamtide strikes the first target with two splashes at tick 17, Watery Grave strikes every target at ticks 17 and 46 while puffs of smoke bob on the water.
voidbtEffectRunWindFunnel (BATTLE_EFFECT_PARM *effect, Sint32 mode)The body of Waft and Aroma: after the Jupiter Djinni's entrance a small Djinni bobs and rises, while three funnels of wind, each a band whose head moves and whose tail follows where the head has been, twist over the targets and take on Waft's cyan or Aroma's tan; Waft strikes the first target at tick 28, Aroma touches each target in turn, four ticks apart.
voidbtEffectRunHeavyBlow (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_heavy_divide.c
voidbtEffectRunBallLightning (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_thunder_mine.c
voidbtEffectRunTwistingColumn (BATTLE_EFFECT_PARM *effect, Uint32 mode)battle_effect_whorl.c
voidbtEffectRunDjinniCharge (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_djinni_charge.c
voidbtEffectRunDjinniSign (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_rime.c
voidbtEffectRunGaspFamily (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_gasp.c
voidbtEffectFillWhiteBand (void)battle_effect_raging_heat.c
voidbtEffectBuildRepeatingTilemap (void)battle_effect_star_mine.c
voidbtEffectRunRushingStrike (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_rushing_strike.c
voidbtEffectRunMirroredWall (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_mirrored_wall.c
voidbtEffectRunGeyser (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_vengeance.c
voidbtEffectRunStarSwarm (BATTLE_EFFECT_PARM *effect, Sint32 mode)Swarms of stars over the targets.
voidbtEffectRunBubbleColumn (BATTLE_EFFECT_PARM *effect)Unused: only btEffectStartBubbleColumn plays it.
voidbtEffectRunElementCards (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_legend.c
voidbtEffectRunCards (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_cards.c
voidbtCanvasBlitMirroredQuarters (void *src, Sint32 x, Sint32 y, Sint32 size)battle_effect_breaths.c
voidbtEffectRunBreaths (BATTLE_EFFECT_PARM *effect, Sint32 mode)The breaths (Beam, Rolling Flame, Ghost Soldier, Pike Assault and Blast Breath): motes gather at the user's mouth, then burst out of it as sparks while a flash grows there.
voidbtEffectRunCrescentSlash (BATTLE_EFFECT_PARM *effect, Sint32 mode)The crescent slash of Human Hunt and Echo Cut.
voidbtEffectRunLeapingStrike (BATTLE_EFFECT_PARM *effect, Sint32 mode)battle_effect_planet_diver.c
voidbtEffectRunBallAttack (BATTLE_EFFECT_PARM *effect)battle_effect_liquifier.c
voidbtIrisWipeScreen (Uint8 side, Uint8 speed, void (*midpoint)(void))battle_effect_odyssey.c
voidbtIrisRestoreBattle (void)Iris's teardown: sets each target back on the ground at the battle origin with the usual bounce, frees the battle background, centres the projection again, reloads the sprites' basic colours and brings back the battle's own backdrop.
voidbtEffectBuildSteepShadeRampWave (Uint8 *table, Uint32 count, Uint32 repeats, Sint32 scale)As btEffectBuildShadeRampWave, at twice the step.
RENDER_MODEL *btRenderAllocateModelList (Sint32 count)battle_effect_render.c
voidbtRenderTransformVertices (const void *corners, void *vertices, Sint32 count)Copies the ARM vertex kernel into a heap block and runs it: count packed Sint8 vertices through the current transform into screen coordinates.
voidbtEffectRunMysticFlame (BATTLE_EFFECT_PARM *args)Glowing orbs spiral in on each target.
voidbtColorBufferScaleStub (void *src, void *dest, Sint32 scale, Sint32 count)Functions of other modules the parts call, through their stub calls.
voidfdRenderApplyProjectedPlacementStub (SPR *sprite, Sint32 *pos, Sint32 *scale, Sint32 mode)
voidbtMotionApplyKnockbackStub (Sint32 actor, Sint32 motion)Knocks a unit back as the knockback variant (BATTLE_KNOCKBACK) says (btMotionApplyKnockback).
Sint32fdSpriteStartAnimationStub (void *object, Sint32 value)Starts an animation on a sprite, unless the sprite plays it already.
voidbtActorSpawnObjectsForListStub (Sint16 *list, Sint32 mode)Readies the sprites of the listed units and destroys every other unit's.
voidbtBackgroundLoadStub (Sint32 mode, Sint32 resource, Sint32 level)Loads a battle background, its palette darkened by level sixtieths.
voidbtBackgroundSetModeStub (Sint32 mode, Sint32 resource, Sint32 speed)Switches the battle background's display mode, darkened by fade.
voidbtBackgroundSetPaletteLevelStub (Sint32 background, Sint32 level)Darkens the battle background's palette by level sixtieths; 0 restores it.
voidbtCameraSetViewAtPairMidpointStub (Sint32 actor, Sint32 target, Sint32 ticks)Turns the battle camera, over ticks ticks, to look at the point between two units.
voidbtCameraSetViewStub (Sint32 x, Sint32 depth, Sint32 y, Sint32 zoom)Points the battle camera at (x, depth, y) with a zoom in percent.
voidbtObjectPutStub (void)Readies every unit's sprites, destroying those of units no longer in the battle, and sets each unit's pose again.
voidbtObjectSpawnObjectsForListStub (Sint16 *unitIds, Sint32 refreshPoses, Sint32 releaseOthers)Spawns the battle objects of a list of units.
voidbtPlaybackStartStub (Sint32 sound)Starts playback of the action's targets as the blow lands, with sound as the hit's sound.
Sint32btSpriteHasHeavyImpactStub (Sint32 enemyId)Whether an enemy's sprite takes the heavy impact.
Sint32btUnitGetEffectHeightStub (Sint32 unit)Returns the height above a unit where its battle effects play, in 16.16 pixels.
void *btActorGetSpriteStub (void *object, Sint32 index)Returns sprite recordIndex of a unit's motion object, or null.
voidbtObjectDestroySpritesStub (Sint32 actor)Destroys a unit's sprites, its status icon and shadow with them.
voidfdSpriteRemoveAnimationStub (void *record, Sint32 entry)Removes a sprite animation from a sprite and clears it.
voidfdActorShadowLoadTilesStub (void)Loads the actors' shadow tiles.
voidfdActorShadowFreeTilesStub (void)Frees the actors' shadow tiles.
voidbtEffectRunFlurry (BATTLE_EFFECT_PARM *args, Sint32 mode)battle_effect_flurry.c, which calls it before its definition
Uint32syHeapGetRemainingIWRAM (void)The IWRAM bytes left to allocate, declared unsigned here because btRenderCopyTextureToIWRAM compares it as unsigned, though the function returns a signed number.

Variables

NameDescription
extern const SCALEEclipseDragonScaleEclipse's scale for the dragon's sprites, and Cruel Ruin's for its summon, one to one.
extern const SCALECruelRuinUnitScaleCruel Ruin's scale for the summon, copied each tick before it is placed.
extern const SCALEZaganUnitScaleZagan's scale, one to one.
extern const SCALEProcneUnitScalethe comets' unit scale
extern Uint16BattleEffectMotePictures []Where each size of mote and of flare starts in its sprite sheet, in bytes.
extern Uint16BattleEffectFlarePictures []Each flare size's picture: its byte offset in the spark sprite sheet, by size less one.
extern const Uint16CruelRuinCirclePictures []Where each of Cruel Ruin's circles starts in its sprite sheet.
extern Uint16BattleEffectSparklePictures []The pictures several effects share: the sparkles, the ember puff that rises in six pictures, and the six glints, with their sizes and offsets.
extern Uint8BattleEffectSparkleSizes []Each sparkle picture's side, in pixels.
extern Uint8BattleEffectEmberStreakPictureWidths []EmberStreakSheet's six pictures, a puff of flame drawing out into a trail of embers as it rises: each one's width, in pixels.
extern Uint8BattleEffectEmberStreakPictureHeights []Each ember streak picture's height, in pixels.
extern Uint8BattleEffectEmberStreakPictureBiasY []How far below its anchor each ember streak picture's top goes, in pixels: the bottoms stay within ten pixels of 64 below.
extern Uint16BattleEffectEmberStreakPictures []Each ember streak picture's byte offset in the sheet.
extern Uint16BattleEffectGlintPictures []Each glint picture's byte offset in the sprite sheet.
extern Uint8BattleEffectGlintPictureWidths []Each glint picture's width, in pixels.
extern Uint8BattleEffectGlintPictureHeights []Each glint picture's height, in pixels.
extern Uint8SpireShardWidths []Spire's shard pictures.
extern Uint8SpireShardHeights []Each shard picture's height, in pixels.
extern Uint16SpireShardPictures []Each shard picture's byte offset in Spire's sprite sheet.
extern Uint16StatChangeShardPictures []The stat change's shard pictures.
extern Uint8StatChangeShardWidths []Each shard picture's width, in pixels.
extern Uint8StatChangeShardHeights []Each shard picture's height, in pixels.
extern Uint8ReaperPictureX []Where the Death Card's Reaper draws its seven panels, seven x for each side.
extern Uint8ReaperPictureY []The reaper's seven panels: their y in the canvas, in pixels.
extern Uint8IceCounts []Ice's shards and ticks, and Douse's drops, by variant.
extern Uint8DouseCounts []Douse's drops, four bytes for each variant: the drops that fall, the droplets each splashes into, their spacing in pixels and the ticks (battle_effect_falling.c's DOUSE_ macros).
extern Sint8StreakStyles []The streaks' styles, and the struck target's tremble.
extern Sint8StreakTremble []The struck target's sideways tremble, in pixels, one a tick.
extern Uint8TargetStrikeStyles [][7]The target strikes: their styles (TARGET_STRIKE_COLUMN), the slash pictures and how far each reaches, the bite's stages and the glints' flips.
extern Uint8TargetStrikeWidths []Each slash picture's width, in pixels.
extern Uint8TargetStrikeHeights []Each slash picture's height, in pixels.
extern Uint16TargetStrikePictures []Each Target Strike picture's byte offset in Target Strike's sprite sheet.
extern Uint8TargetStrikeReach []How far each slash picture reaches past its middle, in pixels.
extern Uint8TargetStrikeBiteStages []Which stage of the closing fangs each bite picture shows.
extern Uint8TargetStrikeGlintDrawFlags []The flips a glint may be drawn with, one picked at random.
extern Uint8ShatteringOpeningPieceWidths []The 33 pieces the screen shatters into as Death Plunge opens: their pictures and where they start.
extern Uint8ShatteringOpeningPieceHeights []Each piece picture's height, in pixels.
extern Uint16ShatteringOpeningPiecePictures []Each piece picture's byte offset in Death Plunge's sprite sheet.
extern Uint8ShatteringOpeningPieceStartX []Each piece's starting x, in pixels.
extern Uint8ShatteringOpeningPieceStartY []Each piece's starting y, in pixels.
extern Sint8ElementBurstSparkX []The element burst's four corner sparks: their places and flips.
extern Sint8ElementBurstSparkY []The four corner sparks: their y about the target, in pixels.
extern Uint8ElementBurstGlintFlips []The four corner sparks' flips.
extern const MODEL_VERTEXCruelRuinStreakCorners []Cruel Ruin: the streak's corners, the discs' turns, the pillars, the blasts, and each streak's start, size, path and roll.
extern const Uint16CruelRuinDiscPitches []Each disc's pitch, in 65,536ths of a turn.
extern const Uint16CruelRuinDiscYaws []Each disc's yaw, in 65,536ths of a turn.
extern const Uint8CruelRuinRibbonSways []How far each of Cruel Ruin's two ribbons sways, in pixels.
extern const Uint8CruelRuinRibbonWidths []Each ribbon's width at its base, in pixels.
extern const Uint8CruelRuinBlastTicks []The tick each blast goes off on.
extern const Uint8CruelRuinBlastSizes []Each blast's size, in pixels.
extern const Uint8CruelRuinBlastX []Each blast's x, in pixels.
extern const Uint8CruelRuinBlastY []Each blast's y, in pixels.
extern const Uint8CruelRuinStreakStarts []The tick each streak starts on.
extern const Uint8CruelRuinStreakSizes []Each streak's size, in pixels.
extern const Uint8CruelRuinStreakX []Each streak's x, in pixels.
extern const Uint8CruelRuinStreakStepX []Each streak step's x, in pixels.
extern const Uint8CruelRuinStreakStepY []Each streak step's y, in pixels.
extern const Uint8CruelRuinStreakEndY []Each streak end's y, in pixels.
extern const Sint32CruelRuinStreakRolls []Each streak's roll as it falls.
extern const Uint8EclipseGlintFlips []Eclipse: the glints' flips, the dragon's sprites that take new tiles as it turns and their places, the canvas's fills, and the rings.
extern const Uint8EclipseTileObjects []The dragon's sprites that take their tiles anew as it turns.
extern const Uint8EclipseFillTicks []The ticks the canvas is filled anew on, a level from EclipseFillLevels each time.
extern const Uint32EclipseFillLevels []The level the canvas is filled with at each of EclipseFillTicks.
extern const Uint8EclipseObjectX []Each sprite's x, in pixels.
extern const Uint8EclipseObjectZ []Each sprite's depth, in pixels.
extern const Uint8EclipseRingGrowth []How fast each ring grows: its scale gains this many 64ths a tick, from a quarter.
extern const Sint8EclipseRingHeights []How far each ring sits along its band's axis, in the band's own pixels before the ring is scaled and stretched.
extern Uint8FormChangeWaveStarts []The form change's four waves: when each starts, how fast it grows and how far it is stretched.
extern Uint8FormChangeWaveGrowth []How fast each wave grows: its scale gains this many times 2000/65536 a tick, from a quarter.
extern Uint8FormChangeWaveStretch []How much taller than wide each wave is drawn, multiplying its scale.
extern Uint8PrismShardStarts []Prism's crystal and the shards it breaks into: their places and pictures.
extern Uint8PrismShardWidths []Each shard picture's width, in pixels.
extern Uint8PrismShardHeights []Each shard picture's height, in pixels.
extern Sint32PrismShardPictures []Each crystal shard picture's byte offset in Prism's sprite sheet.
extern Uint8GatheringLightsCounts []The gathering lights' motes for each target, and the ticks before the targets' share, by mode.
extern Uint8DjinnBeamsMotePictures []The Djinn beams: the motes' pictures as they sway, and the beam head's three pictures.
extern Uint16DjinnBeamsHeadPictures []The beam's head, EarthWallSheet's three half walls of flame (the mirrored wall's EARTH_WALL_ pictures): their byte offsets in the sheet.
extern Uint8DjinnBeamsHeadWidths []Each head picture's width, in pixels.
extern Uint8DjinnBeamsHeadHeights []Each head picture's height, in pixels.
extern Sint8LobbedShellsStyles []The lobbed shells: each style's record (LOBBED_SHELLS_SHATTER and the rest), and the shards' pictures.
extern Uint8LobbedShellsShardWidths []Each shard picture's width, in pixels.
extern Uint8LobbedShellsShardHeights []Each shard picture's height, in pixels.
extern Uint16LobbedShellsShardPictures []Each shard picture's byte offset in the sprite sheet.
extern Uint8CondemnPictureX []Where Condemn draws its seven pictures of the reaper and his crescent, by side.
extern Uint8CondemnPictureY []The reaper's panels: their y in the canvas, in pixels, seven for each side.
extern Sint32BindVertex []Bind's triangles: the first corner of each.
extern Sint32BindTriangleStrikeVertex []The striking triangle's first corner, (0, 24, 0), in pixels; the same as BindVertex, read by the strike's own code.
extern Sint32StarPoints []The star's ring: its points and radii, alternating.
extern Uint8StarRadii []The ring radii, alternating, in pixels.
extern Uint8ProcneGridX []Procne: the grid her nine sprites sit on, the four strikes' ticks and a strike's three pictures.
extern Uint8ProcneGridY []The grid Procne's nine sprites sit on: each one's depth, in pixels.
extern Uint16ProcneTicks []The ticks of the four comet strikes.
extern Uint8ProcnePictureWidths []A strike's three pictures: their widths, in pixels.
extern Uint8ProcnePictureHeights []A strike's three pictures: their heights, in pixels.
extern Uint8ProcnePictureBiasY []A strike's three pictures: how far each is raised above its mark, in pixels.
extern Uint16ProcnePictures []A strike's three pictures: their byte offsets in the sprite sheet.
extern Uint8TiamatEmberSpeeds []Tiamat: the embers' speeds and sizes, a spark's two pixels, and the flame streak's six pictures.
extern Uint8TiamatSparkPixels []A spark's picture: one pixel wide and two tall, both at level 32.
extern Uint8TiamatEmberSizes []Each grain's size: the width of its mote picture, in pixels, which is twice as tall.
extern Uint8TiamatEmberStreakWidths []The ember streak's pictures again, as Tiamat's fireballs read them: the same as BattleEffectEmberStreakPictureWidths and the three tables after it, Tiamat keeping its own copy among its tables.
extern Uint8TiamatEmberStreakHeights []Each ember streak picture's height, in pixels.
extern Uint8TiamatEmberStreakBiasY []How far below its anchor each ember streak picture's top goes, in pixels.
extern Uint16TiamatEmberStreakPictures []Each ember streak picture's byte offset in the sheet.
extern Uint8NereidColumns []Nereid: the three water columns' feet and the falling sparks' gravity.
extern Sint32NereidGravity []Each falling spark's gravity, in pixels a tick each tick.
extern Uint8VorticesCounts [][2]The vortices: Froth's counts and the whirlwind's shapes, by variant (the FROTH_ and WHIRLWIND_ columns).
extern Uint8VorticesShapes [][3]Whirlwind, by variant: the WHIRLWIND_ columns.
extern Uint8PrismCounts []Prism's crystals, ticks and damage tick, by variant.
extern Uint16PlasmaSparks []Plasma: the sparks and shake of each lightning pillar, the columns, and the counts, by variant.
extern Uint8PlasmaColumns []The columns' x, in pixels, seven for each side.
extern Uint8PlasmaCounts []The lightning pillars, by variant.
extern Uint16SparkGroupsShapes [][5]The spark groups' shapes, by variant: sparks in a group, groups and each group's x.
extern Uint8PlasmaFlashPictures []Plasma's flash burst picture for each three ticks of a flash.
extern Uint8VolcanoCounts []Volcano's pillars of fire: how many, their depths and when each erupts.
extern Sint8VolcanoDepths [][4]Each pillar's depth on the field, in pixels, by variant.
extern Uint8VolcanoStartTicks []The tick each pillar erupts on.
extern Uint8TargetMotesGlintFlips []The target motes' glint flips.
extern const Uint16ZaganChargePoints [][2]Zagan: where his sprites sit as he charges and as he gallops, and his dust rings.
extern const Uint16ZaganGallopPoints [][2]Where each sprite of the galloping Zagan sits, x and y, in pixels.
extern const Uint8ZaganRingStarts []The tick each dust ring starts on, counted from the blow.
extern const Uint8ZaganRingGrowth []How fast each dust ring grows: its scale gains this many times 2000/65536 a tick.
extern const Sint8ZaganRingHeights []Each dust ring's height, in pixels.
extern Uint8CybeleObjectPoses []Cybele: her sprites' poses, and the pictures of her thorns, flowers, chips, sparks and blasts.
extern Uint16CybeleThornPictures []Each thorn picture's byte offset in Cybele's sprite sheet.
extern Uint8CybeleThornWidths []Each thorn picture's width, in pixels.
extern Uint8CybeleThornHeights []Each thorn picture's height, in pixels.
extern Uint16CybeleFlowerPictures []Each flower picture's byte offset in Cybele's sprite sheet.
extern Uint8CybeleFlowerSizes []Each flower's size, in pixels.
extern Uint16CybeleChipPictures []The same five pictures as CybeleThornPictures and the two tables after it, as the falling chips read them: each one's byte offset in Cybele's sprite sheet.
extern Uint8CybeleChipWidths []Each chip picture's width, in pixels.
extern Uint8CybeleChipHeights []Each chip picture's height, in pixels.
extern Uint16CybeleSparkPictures []Each spark picture's byte offset in Cybele's sprite sheet.
extern Uint8CybeleSparkSizes []Each spark's size, in pixels.
extern Uint16CybeleBlastPictures []BlastSheet's seven pictures, decoded behind YellowRingSheet at CYBELE_BLAST_PICTURES: each one's byte offset from the start of Cybele's pictures.
extern Uint16CybeleBlastSizes []Each blast picture's side, in pixels.
extern Uint8BoreasPoints [][2]Boreas: the crystals' points, the shake, his sprites' animations, and the pictures of the crystals, debris, spray, rising crystals and falls.
extern Sint8BoreasShakeOffsets []The shake after the block lands, in pixels, one a tick: y moves by it and x by as much the other way.
extern Uint16BoreasCrystalPictures []Each crystal picture's byte offset in Boreas's sprite sheet.
extern Uint8BoreasCrystalWidths []Each crystal picture's width, in pixels.
extern Uint8BoreasCrystalHeights []Each crystal picture's height, in pixels.
extern Uint8BoreasAnimations []The animations Boreas's sprites cycle through, one every four ticks.
extern Uint8BoreasDebrisWidths []Each debris picture's width, in pixels.
extern Uint8BoreasDebrisHeights []Each debris picture's height, in pixels.
extern Uint16BoreasDebrisPictures []Each debris picture's byte offset in Boreas's sprite sheet.
extern Uint8BoreasSprayWidths []Each spray picture's width, in pixels.
extern Uint8BoreasSprayHeights []Each spray picture's height, in pixels.
extern Uint16BoreasSprayPictures []Each spray picture's byte offset in Boreas's sprite sheet.
extern Uint16BoreasRisingCrystalPictures []The same three ice block pictures as BoreasCrystalPictures and the two tables after it, as the rising crystals read them: each one's byte offset in Boreas's sprite sheet.
extern Uint8BoreasRisingCrystalWidths []Each ice block picture's width, in pixels.
extern Uint8BoreasRisingCrystalHeights []Each ice block picture's height, in pixels.
extern Uint8BoreasFallWidths []The same three ice block pictures as BoreasCrystalPictures and the two tables after it, as the falling crystals read them: each one's width, in pixels.
extern Uint8BoreasFallHeights []Each ice block picture's height, in pixels.
extern Uint16BoreasFallPictures []Each ice block picture's byte offset in Boreas's sprite sheet.
extern Sint32DrainGravities []Drain's motes: their gravities, and their size by mode.
extern Uint8DrainMotesSizes []The mote's width, in pixels, by mode; it is drawn twice as tall.
extern Uint8QuakeTimings [][3]Quake's ticks, rise and shake, by variant.
extern Uint8FireCounts []Fire's counts by variant, and its flare pictures.
extern Uint8FireEmberStreakWidths []The ember streak's pictures again, as Fire's embers read them: the same as BattleEffectEmberStreakPictureWidths and the three tables after it, Fire keeping its own copy among its tables.
extern Uint8FireEmberStreakHeights []Each ember streak picture's height, in pixels.
extern Uint8FireEmberStreakBiasY []How far below its anchor each ember streak picture's top goes, in pixels.
extern Uint16FireEmberStreakPictures []Each ember streak picture's byte offset in the sheet.
extern Uint8FrostMoundSpots []Frost: where the mounds rise, its timings by variant, and the pictures of its motes, mounds and ice chips.
extern Uint8FrostTimings []Each variant's timing, three bytes (FROST_TIMING_MOTES, FROST_TIMING_COLUMNS, FROST_TIMING_BURST_TICK).
extern Uint8FrostMoteWidths []IceChipSheet's eight chips, after its three mounds, as Frost's motes read them: each one's width, in pixels.
extern Uint8FrostMoteHeights []Each ice chip picture's height, in pixels.
extern Uint16FrostMoteCells []Each ice chip picture's byte offset in the sheet.
extern Uint16FrostMoundPictures []Each mound picture's byte offset in Frost's sprite sheet.
extern Uint8FrostMoundHeights []Each mound picture's height, in pixels.
extern Uint8FrostChipWidths []The same eight ice chip pictures as FrostMoteWidths and the two tables after it, as Frost's chips read them: each one's width, in pixels.
extern Uint8FrostChipHeights []Each ice chip picture's height, in pixels.
extern Uint16FrostChipCells []Each ice chip picture's byte offset in the sheet.
extern Uint8RaySparks [][2]The sparks each of Ray's bolts throws a tick, by variant.
extern Uint8EruptionCounts [][3]Eruption's counts by variant, and its puffs' pictures.
extern Uint16EruptionPuffPictures []BlastSheet's seven pictures, an explosion flaring up and fading to smoke: each one's byte offset in the sheet.
extern Uint16EruptionPuffSizes []Each blast picture's side, in pixels; each is square.
extern Uint8BurstShowerGlintFlips []The burst shower's glint flips.
extern Sint32AtalantaUnitScale []Atalanta's sprites' scale, one to one.
extern Uint8GrowthVineWidths []Growth: the vines' and pillars' pictures, the columns by strength and where they root, how tall they grow, and the dust puffs.
extern Uint8GrowthHeightLimits []The tallest a column grows, in pixels, by column in threes.
extern Uint16GrowthVinePictures []Each vine picture's byte offset in Growth's sprite sheet.
extern Uint8GrowthPillarWidths []Each pillar picture's width, in pixels.
extern Uint16GrowthPillarPictures []Each pillar picture's byte offset in Growth's sprite sheet.
extern Uint8GrowthColumnCounts []The columns, by strength.
extern Uint8GrowthColumnX []Each column's root, its x in the canvas, in pixels.
extern Sint8GrowthPillarHeights []Each pillar picture's height, in pixels.
extern Sint8GrowthPuffWidths []Each puff picture's width, in pixels.
extern Uint8GrowthPuffHeights []Each puff picture's height, in pixels.
extern Uint16GrowthPuffPictures []Each dust puff picture's byte offset in Growth's sprite sheet.
extern const Sint8VineColumnOffsets []Each vine's x about the middle of the targets.
extern Uint8ThornKinds []Each thorn's kind (THORN_MIRRORED, THORN_SMALL).
extern Sint8ThornX []The thorns: where each roots, how many by strength, and the dust puffs as each bursts out.
extern Uint8ThornCounts []The thorns, by strength.
extern Sint8ThornPuffWidths []Each thorn puff picture's width, in pixels.
extern Uint8ThornPuffHeights []Each dust puff picture's height, in pixels, as a thorn bursts out.
extern Uint16ThornPuffPictures []Each thorn puff picture's byte offset in Growth's sprite sheet.
extern Uint8BoltCounts []Bolt: its sparks, glints, spread and bolts by strength, and how its glints are flipped and blended.
extern Uint8BoltGlintFlips []The flips a glint may be drawn with, one picked at random.
extern Uint8BoltGlintModes []How the glints are blended, by variant.
extern Uint8ProjectileVolleyCometHeights []The projectile volley: the comets' heights, each mode's record (enum VOLLEY_FIELD), the hit flash's pictures and spread, the pellets' pictures and the glints' flips.
extern Uint8ProjectileVolleyModes [][PROJECTILE_VOLLEY_COLUMNS]The projectile volley's modes, one row a mode (PROJECTILE_VOLLEY_MODE), one byte a column (VOLLEY_FIELD): the shots at each target, the ticks a shot takes to reach it, the ticks between shots and between targets, and the sparks each hit throws.
extern Uint8ProjectileVolleyFlashWidths []Each flash picture's width, in pixels.
extern Uint8ProjectileVolleyFlashHeights []Each flash picture's height, in pixels.
extern Uint8ProjectileVolleyFlashSteps []How far each step of the flash spreads, in pixels.
extern Uint8ProjectileVolleyFlashRises []How far each step of the flash rises, in pixels.
extern Uint16ProjectileVolleyFlashPictures []Each flash picture's byte offset in Projectile Volley's sprite sheet.
extern Uint16ProjectileVolleyPelletPictures []The four small ice chip pictures, as HailPictures gives them, the volley keeping its own copy: their byte offsets in the sheet.
extern Uint8ProjectileVolleyGlintFlips []The glints' flips, one picked at random.
extern const Uint8DjinnAttacksLaunchTicks []The ticks the Djinni throws its five flames on.
extern Uint8HailPictureWidths []Hail's four ice chip pictures.
extern Uint8HailPictureHeights []Each ice chip picture's height, in pixels.
extern Uint16HailPictures []Each ice chip picture's byte offset in the sheet, as FrostMoteCells' last four give them.
extern const Uint8GroundCrackleFlips []Ground: the crackles' flips, and the portals' pictures and places.
extern const Uint8GroundPortalWidths []Each portal picture's width, in pixels.
extern const Uint8GroundPortalHeights []Each portal picture's height, in pixels.
extern const Uint16GroundPortalPictures []Each portal picture's byte offset in Hail's sprite sheet.
extern const Uint8GroundPortalX []Each portal's x, in pixels.
extern const Uint8GroundPortalY []Each portal's y, in pixels.
extern const Uint8ThorTargetPalettes []Thor: the palettes a struck target flashes in, and the crackles' flips.
extern const Uint8ThorCrackleFlips []The flips a crackle may be drawn with, one picked at random.
extern Uint8SpireShardOffsets []Spire: where each shard sits in the boulder, the boulders' x and drop ticks, and how many by variant.
extern Sint8SpireRockX []Each boulder's x about the middle of the canvas, in pixels.
extern Uint8SpireDropTicks []The tick each boulder is dropped on; it lands SPIRE_FALL_TICKS later.
extern Uint8SpireRockCounts []The boulders, by variant.
extern Uint8FlurryStyles [][8]The flurries: their styles (FLURRY_COLUMN) and the glints' flips.
extern const Uint8FlurryGlintFlips []A glint's four flips.
extern Uint16GaiaRowPictures []Gaia: the growing wall's rows, the flame's pictures, the wall layer's shift and the late rocks.
extern Uint8GaiaRowWidths []The growing wall's nine rows: their widths, in pixels.
extern Uint16GaiaFlamePictures []The flame, EarthWallSheet's three half walls of flame as DjinnBeamsHeadPictures has them: their byte offsets where Gaia decodes the sheet.
extern Uint8GaiaFlameWidths []The flame's three pictures: their widths, in pixels.
extern Uint8GaiaFlameHeights []The flame's three pictures: their heights, in pixels.
extern Sint8GaiaBg2Shifts [][3]The wall layer's shift, in pixels, by side and variant.
extern Uint8GaiaLateRockColumns []The x of each rock that falls late, in pixels.
extern const Uint8UlyssesObjectX []Ulysses: where the mage's sprites sit, the summon's pictures, and where its six particles start.
extern const Uint8UlyssesObjectZ []Each sprite's depth, in pixels.
extern const Uint8UlyssesPictureWidths []Each Ulysses picture's width, in pixels.
extern const Uint8UlyssesPictureHeights []Each Ulysses picture's height, in pixels.
extern const Uint16UlyssesPictures []Each Ulysses picture's byte offset in Ulysses's sprite sheet.
extern const Sint8UlyssesParticleStarts [][5]Where each of the six particles starts: x and y in pixels, z in 1024ths of a pixel, and its x and y speeds in halves of a pixel a tick.
extern const Uint8SwirlSwipePictureWidths []The swirl swipe's six pictures: their sizes, pictures, x and rise.
extern const Uint8SwirlSwipePictureHeights []Each Swirl Swipe picture's height, in pixels.
extern const Uint16SwirlSwipePictures []The swirl's six pictures: their byte offsets; the tables after it give their x (six for each side), widths, rise and heights.
extern const Uint8SwirlSwipePictureX []Each picture's x, in pixels.
extern const Sint8SwirlSwipePictureBiasY []How far below its anchor each picture's top goes, in pixels.
extern const Uint8AzulPartPoints [][2]Azul: the points of the battlefield's shattered parts, and the serpent's sprites, early and late.
extern const SCALEAzulUnitScaleThe serpent's sprites' scale, one to one.
extern const Uint8AzulObjectX []Each sprite's x, in pixels.
extern const Uint8AzulObjectZ []Each sprite's depth, in pixels.
extern const SCALEAzulLateUnitScaleThe late sprites' scale, one to one.
extern const Sint8AzulLateObjectX []Each late sprite's x, in pixels.
extern const Sint8AzulLateObjectZ []Each late sprite's depth, in pixels.
extern Uint8BeamPictureWidths []The plain attacks' beam: its six pictures and how far each reaches.
extern Uint8BeamPictureHeights []Each slash picture's height, in pixels.
extern Uint16BeamPictures []Each slash picture's byte offset in the beam's pictures.
extern Uint8BeamPictureReaches []How far each slash picture reaches past its middle, in pixels.
extern const Uint8CastingImpactSquallGlintFlips []The casting impacts: glint flips, the bite's pictures, Raiden's Wrath's and Apocalypse's pictures and places, the ice chips, and Stun Jip's bands and Armor Crush's waves.
extern const Uint8CastingImpactSapGlintFlips []The flips a glint may be drawn with, one picked at random.
extern const Uint8CastingImpactBitePictures []The fangs' picture for each two of their first eight ticks, by number.
extern const Uint16CastingImpactRaidensWrathPictures []Each Raiden's Wrath picture's byte offset in the casting impacts' sprite sheet.
extern const Uint16CastingImpactRaidensWrathWidths []Each Raiden's Wrath picture's width, in pixels.
extern const Uint16CastingImpactRaidensWrathHeights []Each Raiden's Wrath picture's height, in pixels.
extern Uint16CastingImpactRaidensWrathX []Each Raiden's Wrath's x, in pixels.
extern Uint16CastingImpactRaidensWrathY []Each Raiden's Wrath's y, in pixels.
extern const Uint16CastingImpactApocalypsePictures []Each Apocalypse picture's byte offset in the casting impacts' sprite sheet.
extern const Uint16CastingImpactApocalypseWidths []Each Apocalypse picture's width, in pixels.
extern const Uint16CastingImpactApocalypseHeights []Each Apocalypse picture's height, in pixels.
extern const Uint16CastingImpactApocalypseX []Each Apocalypse's x, in pixels.
extern Uint16CastingImpactApocalypseY []Each Apocalypse's y, in pixels.
extern const Uint16CastingImpactApocalypseBurstPictures []Each Apocalypse burst picture's byte offset in the casting impacts' sprite sheet.
extern const Uint8CastingImpactApocalypseBurstWidths []Each Apocalypse burst picture's width, in pixels.
extern const Uint8CastingImpactApocalypseBurstHeights []Each Apocalypse burst picture's height, in pixels.
extern Uint8CastingImpactApocalypseBurstPoints [][2]Each Apocalypse burst's point, x and y, in pixels.
extern const Uint16CastingImpactIceChipPictures []The four small ice chip pictures, as HailPictures gives them, the casting impacts keeping their own copy: their byte offsets in the sheet.
extern const Uint8CastingImpactStunBoltGlintFlips []The flips a glint may be drawn with, one picked at random.
extern const Uint8CastingImpactStunJipBandStarts []The tick each Stun Jip band starts on, counted from the impact's fourth tick.
extern const Uint8CastingImpactStunJipBandGrowth []How fast each Stun Jip band grows: its scale gains this many times 1500/65536 a tick.
extern const Sint8CastingImpactStunJipBandHeights []Each Stun Jip band's height, in pixels.
extern const Uint8CastingImpactArmorCrushWaveStarts []The tick each Armor Crush wave starts on, counted from the impact's fourth tick.
extern const Uint8CastingImpactArmorCrushWaveGrowth []How fast each Armor Crush wave grows: its scale gains this many times 2000/65536 a tick, from a quarter.
extern const Uint8CastingImpactArmorCrushWaveStretch []How much taller than wide each Armor Crush wave is drawn, multiplying its scale.
extern Uint8NereidCopyColumns []The unused copy of Nereid: its columns and gravity.
extern const Sint32NereidCopyGravity []Each falling spark's gravity, in pixels a tick each tick; the same as NereidGravity, the particle streams keeping their own copy.
extern const Uint8SummonFormationNereidX []The summons' sprite formations, each sprite's x and depth: Nereid's, Cybele's, Tiamat's two and Megaera's.
extern const Uint8SummonFormationNereidZ []The twelve-sprite formation: each sprite's depth, in pixels.
extern const Uint8SummonFormationCybeleX []The eight-sprite formation facing right: each sprite's x, in pixels.
extern const Uint8SummonFormationCybeleZ []The eight-sprite formation facing right: each sprite's depth, in pixels.
extern const Uint8SummonFormationTiamatAlternateX []The other eight-sprite formation: each sprite's x, in pixels.
extern const Uint8SummonFormationTiamatAlternateZ []The other eight-sprite formation: each sprite's depth, in pixels.
extern const Uint8SummonFormationTiamatX []The small eight-sprite formation: each sprite's x, in pixels.
extern const Uint8SummonFormationTiamatZ []The small eight-sprite formation: each sprite's depth, in pixels.
extern const Sint8SummonFormationMegaeraX []The wide formation: each sprite's x, in pixels.
extern const Uint8SummonFormationMegaeraZ []The wide formation: each sprite's depth, in pixels.
extern Uint8ImpactBurstPictureWidths []The impact burst's pictures.
extern Uint8ImpactBurstPictureHeights []Each impact burst picture's height, in pixels.
extern Uint16ImpactBurstPictures []Each impact burst picture's byte offset in Helm Splitter's sprite sheet.
extern Sint16StarfieldFallOrbitPoints [][3]The starfield fall: the orbiting sparks, the fireballs and the flash pictures.
extern Sint16StarfieldFallFireballPoints [][2]Each fireball's point, x and y, in pixels.
extern Uint16StarfieldFallFlashPictures []BlastSheet's seven pictures, as EruptionPuffPictures gives them, the particle streams keeping their own copy: each one's byte offset in the sheet.
extern Uint16StarfieldFallFlashSizes []Each blast picture's side, in pixels.
extern Uint8RamsesStatueColumns []Ramses: where each of the statue's sprites sits, and the puffs' pictures.
extern Uint8RamsesStatueRows []Each of the statue's sprites: its y in the statue, in pixels.
extern Uint16RamsesPuffPictures []BlastSheet's seven pictures, as EruptionPuffPictures gives them, Ramses keeping its own copy: each one's byte offset in the sheet.
extern Uint16RamsesPuffSizes []Each blast picture's side, in pixels.
extern Uint8RagnarokStrikeColumns []Ragnarok: the strikes' columns and the flash's pictures.
extern Uint8RagnarokFlashPictures []The flash burst's picture for each three ticks of a flash, by number.
extern Uint8TitanBladeFlashPictures []Titan Blade: the flash's pictures and the dust's gravities.
extern Sint32TitanBladeDustGravity []The dust's four gravities, in pixels a tick each tick.
extern const Uint8JudgmentShieldSprites []Judgment: the sprites its shield is copied into, and the shards' pictures.
extern const Uint16JudgmentShardPictures []Each shard picture's byte offset in Judgment's sprite sheet.
extern const Uint8JudgmentShardWidths []Each shard picture's width, in pixels.
extern const Uint8JudgmentShardHeights []Each shard picture's height, in pixels.
extern Uint8KirinColumns []Kirin: the row's x offsets and heights.
extern Uint8KirinRows []Each of Kirin's sprites: its y, in pixels.
extern Sint32NeptuneGravity []Neptune's spray: its four gravities.
extern const Uint16UndeadSwordPuffPictures []Undead Sword's sparks: their pictures and sizes.
extern const Uint16UndeadSwordPuffSizes []Each blast picture's side, in pixels; the six words after the seventh are never read.
extern const Uint8WindFunnelCounts []The wind funnels, by mode.
extern const Uint8DiamondBergRingStarts [4]Diamond Berg: its ripples, and its flashes' roll and pitch.
extern const Uint8DiamondBergRingGrowth [4]How fast each ripple grows: its scale gains this many times DIAMOND_BERG_RIPPLE_GROWTH a tick.
extern const Sint8DiamondBergRingHeights [4]Each ripple's height, in pixels.
extern const Sint16DiamondBergShardRolls [8]Each flash's roll.
extern const Sint16DiamondBergShardPitches [8]Each flash's pitch.
extern const Uint8GeodeWaveStarts []Geode's rings: when each starts, how fast it grows, and its height.
extern const Uint8GeodeWaveGrowth []How fast each wave grows: its scale gains this many times 2000/65536 a tick, from a half.
extern const Sint8GeodeWaveHeights []Each wave's height, in pixels.
extern Uint16SoulShatterSparkPictures []Soul Shatter's sparks: their pictures and sizes.
extern Uint16SoulShatterSparkSizes []Each blast picture's side, in pixels.
extern const Sint8SeracRowHeights []Serac: the spire's rings, and the ripples of mist.
extern const Sint8SeracRowRadii []The radii of the cone's rings, in pixels.
extern const Uint8SeracRingStarts []Each ripple's delay, in ticks.
extern const Uint8SeracRingGrowth []How fast each ripple grows: its scale gains this many times SERAC_RING_GROWTH a tick.
extern const Sint8SeracRingHeights []Each ripple's height, in pixels.
extern Uint8HeavyBlowStrikeTicks []The heavy blow: its strike tick and chips, by mode, and a chip's two pixels.
extern Uint8HeavyBlowChipCounts []The chips, by mode.
extern const Uint8HeavyBlowChipPixels []A chip's two pixels.
extern Sint16CoolColumnX []Cool: its columns of ice and its sparks.
extern Uint8CoolColumnStarts []The tick each column starts on.
extern Uint8CoolColumnHeights []Each column's full height, in pixels.
extern Uint8CoolColumnLeans []Each column's lean.
extern Uint16CoolSparkPictures []BlastSheet's seven pictures, as EruptionPuffPictures gives them, Cool keeping its own copy: each one's byte offset in the sheet.
extern Uint16CoolSparkSizes []Each blast picture's side, in pixels.
extern const Sint8WyrdCurseDropBounces []Wyrd Curse's drops: their bounce speeds.
extern const Uint8BoltTrailGlintFlips []The ball lightning's glint flips.
extern const Uint8MegaeraGlintFlips []Megaera's glints: their flips and how they are blended, by variant.
extern const Uint8MegaeraGlintModes []How the glints are blended, by variant.
extern const Sint32LightSurgeRingSizes [4]Light Surge's four rings: their full sizes, shades and sways.
extern const Sint8LightSurgeRingShades [4]Each ring's shade, before it dims.
extern Sint8LightSurgeRingSways [4]How far each ring sways, in pixels at the sway's widest.
extern const Uint8DjinniChargeEntranceFlags []The Djinni charge: the Djinni's entrance by mode, and the debris's gravities.
extern const Sint32DjinniChargeDebrisGravity [4]The debris's gravities, in pixels a tick each tick: negative, so it rises.
extern const Sint8GaspFamilyStreakSteps []The Gasp family: the streak's steps and mesh, and the counts by variant.
extern const Uint16GaspFamilyStreakMesh []The streak's mesh.
extern const Uint8GaspFamilyCounts []Gasp Family's counts, by variant.
extern Uint8CharonFlashTicks []The ticks Charon's canvas flashes.
extern const MODEL_VERTEXBattleEffectOctagonBandCorners []Models several effects share: a band's and a cylinder's corners.
extern const MODEL_VERTEXBattleEffectCylinderCorners []The ripple's 32 corners: a ring of sixteen below and one above.
extern const Uint16CastingImpactBandMesh []The casting impacts' band mesh.
extern const Uint16GeyserMesh []The geyser's mesh.
extern const Uint16BattleEffectCylinderMesh []The cylinder's mesh, the ripples and rings several effects spread.
extern const MODEL_VERTEXGeodeRingCorners []Geode's ring's corners.
extern const MODEL_VERTEXBattleEffectRingCorners []Models several effects share: a ring, a triangle, beams and squares, their corners and meshes.
extern const Uint16BattleEffectRingMesh []The ring's mesh.
extern const Uint16BattleEffectTriangleMesh []A solid triangle's mesh, as the solid renderers read it, a word a face: the face of corners 0, 1 and 2, and the empty face that ends it.
extern const MODEL_VERTEXBattleEffectTriangleCorners []A small triangle lying on the ground: its three corners.
extern const MODEL_VERTEXBattleEffectTaperedBeamCorners []A beam 127 tall, 12 wide at the top and 4 at its foot: its four corners.
extern const MODEL_VERTEXBattleEffectBeamCorners []A beam 127 tall and 12 wide standing on the origin: its four corners.
extern const MODEL_VERTEXBattleEffectLongBeamCorners []A beam 131 tall and 12 wide reaching below the origin: its four corners.
extern const MODEL_VERTEXBattleEffectSquareCorners []A 64 by 64 square about the origin: its four corners.
extern const MODEL_VERTEXBattleEffectStandingSquareCorners []A 64 by 64 square standing on the origin: its four corners.
extern MODEL_VERTEXLegendFanFlameCorners []A flame of Legend's fan: its corners.
extern const MODEL_VERTEXBattleEffectGroundSquareCorners []Models several effects share: a square on the ground, and the meshes of small squares and a column.
extern const Uint16BattleEffectSmallSquareMesh []A small square's mesh.
extern const Uint16BattleEffectSmallSquareMeshReversed []The small square's mesh with its triangles wound the other way.
extern const Uint16BattleEffectColumnMesh []A column's mesh.
extern const Uint16HeavyBlowSwordMesh []The heavy blow's sword mesh.
extern const Uint16BattleEffectTallMesh []A tall quad's mesh.
extern const Uint16HauresBandMesh []Haures's band mesh.
extern const Uint16CatastropheForkMesh []Catastrophe's burst mesh.
extern const Uint16BattleEffectSquareMesh []The square meshes several effects share.
extern const Uint16BattleEffectLargeSquareMesh []A large square's mesh.
extern const Uint16HauresBurstMesh []Haures's burst mesh.
extern Uint8HeartbreakSparkBurstWidths []Heartbreak: the burst of sparks at the figure's hand, and the heart in its fist burning away.
extern Uint8HeartbreakSparkBurstHeights []Each spark burst picture's height, in pixels.
extern Uint16HeartbreakSparkBurstPictures []Each spark burst picture's byte offset in Heartbreak's sprite sheet.
extern Uint8HeartbreakHeartBurnHeights []Each heart burn picture's height, in pixels.
extern Uint8HeartbreakHeartBurnY []Each heart burn picture's y, in pixels.
extern Uint16HeartbreakHeartBurnPictures []Each heart burn picture's byte offset in Heartbreak's sprite sheet.
extern const Uint8RagingHeatStyles [][4]Raging Heat's sparks, spread, rings and embers, by level.
extern Uint8JuggleStyles [][7]Juggle's styles, one row a mode.
extern const Uint8FloraPetalSizes []Flora: the glows' sizes and pictures, and when and where each ring of light opens and how it is turned.
extern const Uint16FloraPetalPictures []Each petal picture's byte offset in Flora's sprite sheet.
extern const Uint16FloraBloomTicks []The tick each ring of light starts on.
extern const Sint16FloraBloomRolls []Each ring of light's roll; the third, off the 256ths of a turn the others keep, is in 65,536ths.
extern const Sint16FloraBloomPitches []Each ring of light's pitch; the third is in 65,536ths of a turn.
extern const Sint8FloraBloomX []Each bloom's x, in pixels.
extern const Sint8FloraBloomY []Each bloom's y, in pixels.
extern const Uint16SabreDanceDaggerMesh []Sabre Dance's dagger: its mesh and corners.
extern const MODEL_VERTEXSabreDanceDaggerCorners []The dagger, 32 by 80 pixels from (-16, -16) to (16, 64), the point down: its four corners.
extern const Uint16FumeLevels [][FUME_COLUMNS]Fume's levels, one row a level (FUME_LEVEL_COLUMN).
extern const Sint32OceanFistDropGravity [4]Ocean Fist's early drops: their gravities.
extern const Sint32RushingStrikeScales []The rushing strike's streak scale, by mode.
extern const Sint32MirroredWallScales []The mirrored wall: its scale by mode and its bursts' shades.
extern const Sint32MirroredWallShades []The wall's shade, by mode.
extern Sint8DaedalusShakeOffsets []Daedalus: the shake, the birds' wing beats and drifts, the clatters, the rings, the leg, the splashes and the dives.
extern Uint8DaedalusWingBeatPictures []A bird's picture for each four ticks of its wing beat, by number.
extern Uint8DaedalusBirdStarts [][2]Where each bird starts, x and y in the canvas, in pixels.
extern Sint32DaedalusBirdSpeeds [][2]Each bird's speed, x and y, in 65,536ths of a pixel a tick: up and to the left.
extern Uint8DaedalusBirdTicks []The tick each bird appears on.
extern Uint16DaedalusClatterTicks []The ticks the machine clatters on.
extern Uint16DaedalusRingStarts []The tick each ring starts on.
extern Sint8DaedalusRingX []Each ring's x, in pixels.
extern Uint8DaedalusRightLegPoints [][2]Each sprite of the right leg: its point, x and y, in pixels.
extern Uint8DaedalusSplashPoints [][6][2]Each splash's point, x and y, in pixels.
extern Uint16DaedalusDiveStarts []The tick each particle starts on.
extern const Uint8DaedalusStrikeHitTicks []The seven ticks Daedalus's strikes land on.
extern const Uint8VengeanceArrowStrikes [][7]Which of Vengeance's seven arrows strike, by level.
extern const Uint16LifeShearPaleBladeMesh []Life Shear's scythe: its two blades' meshes and its corners.
extern const Uint16LifeShearOrangeBladeMesh []The orange blade's mesh.
extern const MODEL_VERTEXLifeShearBladeCorners []The scythe, 128 by 32 pixels: its four corners.
extern const Sint32GeyserDropGravity []The geyser's drops: their gravity and smallest picture, by mode (enum GEYSER_MODE).
extern const Sint8GeyserDropMinSizes []The drops' smallest picture size, by mode.
extern Uint8BubbleColumnPictureWidths []The unused bubble column's glowing oval, fifteen pictures.
extern Uint8BubbleColumnPictureHeights []The glowing oval's fifteen pictures: their heights, in pixels.
extern Uint16BubbleColumnPictures []The glowing oval's fifteen pictures: their byte offsets in the sprite sheet.
extern Uint8CoatlicuePictureWidths []Coatlicue: the bubbles' pictures, the bursts of bubbles, the ring's, flashes' and glows' ticks, and the coils.
extern Uint8CoatlicuePictureHeights []Each Coatlicue picture's height, in pixels.
extern Uint16CoatlicuePictures []Each Coatlicue picture's byte offset in Coatlicue's sprite sheet.
extern Uint16CoatlicueBurstTicks []The tick each burst of bubbles starts on.
extern Uint8CoatlicueBurstX []Each burst's x, in pixels.
extern Uint8CoatlicueBurstY []Each burst's y, in pixels.
extern Uint8CoatlicueBurstSpreadX []How widely each burst scatters in x, in pixels.
extern Uint8CoatlicueBurstSpacingY []How far apart each burst's bubbles start in y, in pixels.
extern Sint8CoatlicueBurstVelocityX []Each burst's speed in x, in 16ths of a pixel a tick.
extern Sint8CoatlicueBurstVelocityY []Each burst's speed in y, in 16ths of a pixel a tick.
extern Sint8CoatlicueBurstZ []Each burst's depth, in pixels.
extern Sint8CoatlicueBurstVelocityZ []Each burst's speed in depth, in 64ths of a pixel a tick.
extern Uint8CoatlicuePictureBias []The smallest bubble picture for each kind of bubble.
extern Uint16CoatlicueRingTicks []The tick each flash of the fire ring starts on.
extern Uint16CoatlicueFlashTicks []The ticks the screen flashes on.
extern Uint16CoatlicueGlowTicks []The tick the cog's glow starts on.
extern Uint8CoatlicueCoilStarts []The tick each coil starts to grow on.
extern Uint16CoatlicueCoilScales []Each coil's first scale, in 65,536ths.
extern Uint16CoatlicueCoilRolls []Each coil's roll as it starts; it turns a 256th of a turn a tick.
extern Uint16CoatlicueCoilGrowth []How fast each coil grows, in 65,536ths of its scale a tick.
extern Uint16CoatlicueCoilMaxScales []Each coil's largest scale, in 65,536ths.
extern const Uint16CatastropheFlashTicks []Catastrophe: the flashes, the demon's, armour's and mirrored demon's sprites, the bursts of lightning, the strikes and the glints.
extern const Uint16CatastropheFlashLengths []How long each flash of the first act lasts, in ticks.
extern const Uint8CatastropheDemonX []Each of the demon's sprites: its x, in pixels.
extern const Uint8CatastropheDemonZ []Each of the demon's sprites: its depth, in pixels.
extern const Uint8CatastropheArmourX []Each of the armour's sprites: its x, in pixels.
extern const Uint16CatastropheArmourZ []Each of the armour's sprites: its depth, in pixels.
extern const Uint8CatastropheMirroredDemonX []Each of the mirrored demon's sprites: its x, in pixels.
extern const Uint8CatastropheMirroredDemonZ []Each of the mirrored demon's sprites: its depth, in pixels.
extern const Uint16CatastropheForkStarts []The tick each fork of lightning strikes on.
extern const Uint8CatastropheForkX []Each fork's x, in pixels.
extern const Uint8CatastropheForkY []Each fork's y, in pixels.
extern const Uint8CatastropheForkPictures []Each fork's picture of lightning, by number.
extern const Uint16CatastropheCanvasFlashTicks []The ticks the canvas flashes on.
extern const Uint8CatastropheStrikeX []Each step's x, in pixels, a row of twelve for each strike.
extern const Uint8CatastropheStrikeY []Each step's y, in pixels, a row of twelve for each strike.
extern const Uint16CatastropheStrikeTicks []The strike ticks, a row of steps for each of the three strikes; 65535 ends a row, a tick that never comes.
extern const Uint8CatastropheStrikeSpeedsY []How fast each step's bolt falls, in quarters of a pixel a tick.
extern const Sint16CatastropheStrikeRolls []Each step's roll, in 256ths of a turn (the code shifts it into 65,536ths); 0 leaves the bolt where the step before put it.
extern const Sint16CatastropheStrikeTurns []How fast each step's bolt turns, in 32,768ths of a turn a tick.
extern const Sint16CatastropheStrikePictures []Which of the three jagged streak pictures each step draws; -1 draws none.
extern const Uint8CatastropheGlintFlips []The flips a glint may be drawn with, one picked at random.
extern const Sint16CatastropheBoltRolls []Each bolt's roll as it shoots out, in 65,536ths of a turn: scattered, all within a quarter turn of 0 either way.
extern const Uint8HauresParticleX []Haures: the particles, his scale, the wings' shapes and morphs, the parts and the bands.
extern Sint32HauresUnitScale []Haures's sprites' scale, one to one.
extern const Uint8HauresMoundShapes []The wings' shapes, 32 heights a shape, in pixels; the wings morph from one to the next.
extern Uint8HauresMoundMorphSteps []How many ticks each morph of the wings takes.
extern const Uint8HauresPartPoints []Each shard's points, its middle then its four corners, x and y in screen pixels.
extern const Uint8HauresBandStarts []The tick each band starts on.
extern Uint8HelmSplitterPictureWidths []Helm Splitter's pictures, and where each is drawn.
extern Uint8HelmSplitterPictureHeights []Each Helm Splitter picture's height, in pixels.
extern Uint16HelmSplitterPictures []Each Helm Splitter picture's byte offset in Helm Splitter's sprite sheet.
extern Sint8HelmSplitterPictureBiasX []How far right of its anchor each picture is drawn, in pixels, mirrored on the other side.
extern Sint8HelmSplitterPictureBiasY []How far below its anchor each picture's top goes, in pixels.
extern Uint8DragonCloudSparkCounts []How many of Dragon Cloud's embers are sparks, by variant.
extern Uint8ElementCardsTicks []The element cards: each card's length and how its sparks move.
extern SPARK_MOTIONElementCardsSparkMotions []How each card's sparks move.
extern Uint8TripleChompBiteTicks []Triple Chomp's three bites' ticks.
extern Uint8BreathTicks []The breaths: their lengths, bursts, glows, jaws and the ticks they hit.
extern Uint8BreathBurstTicks []The tick the burst starts on, by breath.
extern Uint8BreathMaxSizes []The glow's widest size, in pixels, by variant.
extern Uint8BreathRingStarts []The four jaws of variant 2, by breath: their start ticks; the tables after it give their growth and their x from the mouth.
extern Uint8BreathRingGrowth []How fast each jaw grows: its scale gains this many times BREATH_RING_GROWTH a tick.
extern Sint8BreathRingX []Each jaw's x from the mouth, in pixels.
extern Uint8BreathFlashTicks []The tick each breath hits the targets.
extern const Uint8TridentRingStarts []Trident: its rings, each trident's spin, the prong's corners and the glints' flips.
extern const Uint8TridentRingGrowth []How fast each ring grows: its scale gains this many times CYLINDER_RING_GROWTH a tick.
extern const Sint8TridentRingHeights []Each ring's height, in pixels.
extern const Sint32TridentSpins []Each bolt's roll as it spins in, then how far it rolls each tick, both in 65,536ths of a turn: scattered round the circle.
extern const MODEL_VERTEXTridentProngCorners []The prong's corners, as signed x, y and z.
extern const Uint8TridentGlintFlips []The flips a glint may be drawn with, one picked at random.
extern const Uint8LeapingStrikeWaveStarts []The leaping strike's waves and rings.
extern const Uint8LeapingStrikeWaveGrowth []How fast each wave grows: its scale gains this many times LEAPING_STRIKE_WAVE_GROWTH a tick, from a half.
extern const Sint8LeapingStrikeWaveHeights []Each wave's height, in pixels.
extern const Uint8LeapingStrikeRingStarts []The tick each ring starts on, counted from LEAPING_STRIKE_PILLAR_TICK.
extern const Uint8LeapingStrikeRingGrowth []How fast each ring grows: its scale gains this many times CYLINDER_RING_GROWTH a tick.
extern const Sint8LeapingStrikeRingHeights []Each ring's height, in pixels.
extern const Uint8MeteorBlowPictureWidths []Meteor Blow: its pictures, waves and rings.
extern const Uint8MeteorBlowPictureHeights []Each Meteor Blow picture's height, in pixels.
extern const Uint16MeteorBlowPictures []Each Meteor Blow picture's byte offset in Meteor Blow's sprite sheet.
extern const Uint8MeteorBlowWaveStarts []The tick each wave starts on, counted from METEOR_BLOW_BURST_TICK.
extern const Uint8MeteorBlowWaveGrowth []How fast each wave grows: its scale gains this many times 2000/65536 a tick.
extern const Uint8MeteorBlowWaveStretch []How much taller than wide each wave is drawn, multiplying its scale.
extern const Uint8MeteorBlowRingStarts []The tick each ring starts on, counted from the eighth.
extern const Uint8MeteorBlowRingGrowth []How fast each ring grows: its scale gains this many times 1500/65536 a tick.
extern const Sint8MeteorBlowRingHeights []Each ring's height, in pixels.
extern const MODEL_VERTEXLiquifierSplashCorners []Liquifier's fan of flames: a flame's corners, and when each starts and how high it rises.
extern const Uint8LiquifierSplashStarts []The tick each splash starts on.
extern const Uint8LiquifierSplashHeights []How tall each splash leaps, as a scale in 32nds.
extern const Uint8CanvasBurstFlamePictures []The canvas burst's flame picture for each three ticks of its life.
extern const Sint16MegiddoFlashPitches []Megiddo: its flashes' turns and starts, and its rays' turns and places.
extern const Sint16MegiddoFlashYaws []Each ring's yaw.
extern const Uint16MegiddoFlashStarts []The tick each of the five rings starts on.
extern const Sint16MegiddoRayPitches []Each ray's pitch.
extern const Sint16MegiddoRayYaws []Each ray's yaw.
extern const Sint16MegiddoRayRolls []Each ray's roll, mirrored on the other side; the third ray's, a little off its neighbours' 256ths of a turn, is in 65,536ths.
extern const Sint8MegiddoRayX []Each ray's x, in pixels.
extern const Sint8MegiddoRayY []Each ray's y, in pixels.
extern const Sint16OdysseyFlashPitches []Odyssey's flashes: their pitch and yaw.
extern const Sint16OdysseyFlashYaws []Each flash's yaw: Megiddo's first two rings', and a third nothing reads.
extern const Uint8MolochRingStarts [4]Moloch's rings: when each starts, how fast it grows, and its height.
extern const Uint8MolochRingGrowth []How fast each ring grows: its scale gains this many times 2000/65536 a tick, from a half.
extern const Sint8MolochRingHeights []Each ring's height, in pixels.
extern Sint32IrisSplashRadii []Iris: the splashes, the pillar and particle models, the sound ticks, the streaks, the drops, the strips and the cone.
extern const Uint8IrisSplashOffsetsY []How far below the splash's point its wider ring of drops is centred, in steps of two pixels: a large one's, then a small one's.
extern const Uint16IrisPillarMesh []The pillar's mesh.
extern const MODEL_VERTEXIrisParticleCorners []The particle's corners, as signed x, y and z.
extern const Uint16IrisParticleMesh []The particle's mesh.
extern const Uint8IrisPsynergySoundTicks []The ticks the Psynergy sound plays on.
extern const Uint16IrisDoorSoundTicks []The ticks the door sound plays on.
extern const Uint16IrisPowerUpSoundTicks []The ticks the power up sound plays on.
extern const Sint8IrisStreakX []Each streak's x as it sets out, in pixels.
extern const Uint8IrisStreakY []Each streak's y as it sets out, in pixels.
extern const Uint16IrisStreakAngles []Each streak's heading as it sets out, 0 straight up and DEGtoANG(90) to the right: each a little off one of those, by a number of 65,536ths of a turn.
extern const Sint16IrisStreakSpeeds []How far each streak's heading turns, in 65,536ths of a turn, two thirds of this a tick.
extern const Uint8IrisLineShades []The spray picture's columns, left to right: the level each is filled with, dimmest at the edges.
extern Sint32IrisMoteSizes []Each mote's size: the width of its mote picture, in pixels, which is twice as tall.
extern const Uint16IrisSplashStarts []The tick each splash starts on.
extern const Uint16IrisSplashEnds []The tick each splash ends on.
extern const Uint8IrisSplashX []Each splash's x, in pixels.
extern const Uint8IrisSplashY []Each splash's y, in pixels.
extern const Uint8IrisSplashSmall []Whether each splash is a small one.
extern const Uint8IrisDropSpeeds []How fast each drop rises, in half pixels a tick.
extern const Uint8IrisDropTicks []How long each drop rises, in ticks, from its splash's end.
extern const Uint8IrisDropPictureSteps []How many ticks each drop shows each picture.
extern const MODEL_VERTEXIrisLeftStripCorners []The left strip's corners, as signed x, y and z.
extern const MODEL_VERTEXIrisRightStripCorners []The right strip's corners, as signed x, y and z.
extern const Uint16IrisStripMesh []The strip's mesh.
extern const MODEL_VERTEXIrisConeCorners []The cone's corners, as signed x, y and z.
extern const Uint16IrisConeMesh []The cone's mesh.
extern Uint8MapGridMetatileBuffer []The map cell buffer at its own address, which the effects borrow: no map is loaded during a battle.
extern const Sint16ThorPoints [6][2]battle_effect_thor.c
extern const SCALEGaiaUnitScaleThe scale each of Gaia's rocks starts from before it grows.
extern const SPR_SCALEUlyssesParticleScaleA scale of one in 16.16 on both axes.
extern const SCALENeptuneUnitScalebattle_effect_neptune.c
extern const Sint8VoidBeamCorners [][2]battle_effect_thunder_mine.c
extern const SCALEFloraUnitScaleFlora's scale, one to one.
extern const SCALEDaedalusCanopyScaleThe scales of the forest canopy Daedalus flies over, of his machine's pieces and of his missiles.
extern const SCALEDaedalusMachineScaleThe scale of the pieces of Daedalus's machine.
extern const SCALEDaedalusMissileScaleThe scale of Daedalus's missiles, a tenth larger than their pictures.
extern const SCALECoatlicueUnitScalebattle_effect_vengeance.c: Coatlicue's figure's scale.
extern const SCALECatastropheUnitScalebattle_effect_catastrophe.c: Catastrophe's figure's scale.
extern const SCALEHauresChargeScaleHaures's scales as he charges, as he circles and as he opens.
extern const SCALEHauresOrbitScaleHaures's scale while he circles.
extern const SCALEHauresOpeningScaleHaures's scale in the opening, before it is flipped.
extern const Uint8MolochMoteSizes []Moloch's motes' sizes, by a mote's number's low three bits.
extern const SCALEIrisUnitScaleIris's scale while she rises.
extern const Uint32BlitterTemplate []The template btEffectBuildBlitter walks word by word to write a blitter (blitter_template.s); none of it runs where it is.
extern const Uint32BattleEffectMask []The pixel fragments btEffectBuildBlitter copies into its blitters, from blitter_fragments.c: Forward reads the picture left to right and Reverse right to left.
extern const Uint32BattleEffectCopyReverse []Copy, one pixel, right to left.
extern const Uint32BattleEffectCopyForward []Copy, one pixel, left to right.
extern const Uint32BattleEffectCopy8Reverse []Copy, a full cell's eight pixels, right to left.
extern const Uint32BattleEffectCopy8Forward []Copy, a full cell's eight pixels, left to right.
extern const Uint32BattleEffectTransparentReverse []Transparent, one pixel, right to left.
extern const Uint32BattleEffectTransparentForward []Transparent, one pixel, left to right.
extern const Uint32BattleEffectTransparent8Reverse []Transparent, a full cell's eight pixels, right to left.
extern const Uint32BattleEffectTransparent8Forward []Transparent, a full cell's eight pixels, left to right.
extern const Uint32BattleEffectMaxReverse []Max, one pixel, right to left.
extern const Uint32BattleEffectMaxForward []Max, one pixel, left to right.
extern const Uint32BattleEffectMax4Reverse []Max, four pixels (one canvas word), right to left; a full cell's row takes it twice.
extern const Uint32BattleEffectMax4Forward []Max, four pixels (one canvas word), left to right; a full cell's row takes it twice.
extern const Uint32BattleEffectAdditiveReverse []Additive, one pixel, right to left.
extern const Uint32BattleEffectAdditiveForward []Additive, one pixel, left to right.
extern const Uint32BattleEffectColorReverse []Additive, four pixels added a word at a time, right to left; a full cell's row takes it twice.
extern const Uint32BattleEffectColorForward []Additive, four pixels added a word at a time, left to right; a full cell's row takes it twice.
extern const Uint8btRenderFillMeshKernel []The model renderer's ARM functions, which run from IWRAM, each with its size in bytes (CodeSize) and, for three of them, in DMA words (CodeWords).
extern Uint8btRenderFillMeshKernelCodeSize []
extern const Uint8btRenderTransformKernel []
extern Uint8btRenderTransformKernelCodeSize []
extern const Uint8btRenderSolidKernel []MODEL_SOLID
extern const Uint8btRenderSolidMaxKernel []MODEL_SOLID_MAX
extern const Uint8btRenderSolidAdditiveKernel []MODEL_SOLID_ADDITIVE
extern const Uint8btRenderTexturedKernel []MODEL_TEXTURED
extern const Uint8btRenderTexturedMaxKernel []MODEL_TEXTURED_MAX
extern const Uint8btRenderTexturedAdditiveKernel []MODEL_TEXTURED_ADDITIVE
extern const Uint8btRenderShadedMaxKernel []MODEL_SHADED_MAX
extern const Uint8btRenderShadedAdditiveKernel []MODEL_SHADED_ADDITIVE
extern const Uint8btRenderShadedKernel []MODEL_SHADED
extern const Uint8btRenderTexturedNarrowKernel []MODEL_TEXTURED_NARROW
extern const Uint8btRenderSolidNarrowKernel []MODEL_SOLID_NARROW
extern Uint8btRenderSolidKernelCodeSize []
extern Uint8btRenderSolidMaxKernelCodeSize []
extern Uint8btRenderSolidAdditiveKernelCodeSize []
extern Uint8btRenderTexturedKernelCodeSize []
extern Uint8btRenderTexturedMaxKernelCodeSize []
extern Uint8btRenderTexturedAdditiveKernelCodeSize []
extern Uint8btRenderShadedMaxKernelCodeSize []
extern Uint8btRenderShadedAdditiveKernelCodeSize []
extern Uint8btRenderShadedKernelCodeSize []
extern Uint8btRenderTexturedNarrowKernelCodeSize []
extern Uint8btRenderSolidNarrowKernelCodeSize []
extern Uint8btRenderTexturedKernelCodeWords []
extern Uint8btRenderShadedKernelCodeWords []
extern Uint8btRenderTexturedNarrowKernelCodeWords []

Description

What every part of the battle_effect object shares: its includes, the canvas's and the shared sheets' sizes, the modes of the bodies several effects play, and the functions and tables the parts reach across each other. battle_effect.c includes it before the parts, and each part includes it too.

Macros in detail

EFFECT_DISPCNT

#define EFFECT_DISPCNT

The battle screen's display mode while an effect plays: background mode 1 with BG0 to BG2, sprites and both windows on.

Referenced by btEffectConfigureEffectDisplay(), btEffectOpenCanvasLayer(), btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunGeode(), btEffectRunIris(), btEffectRunShatteringOpening(), btEffectRunUlysses(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer() and btEffectStartElementStreaks().

Definition at line 133 of file battle_effect_internal.h.

FIXED_INTEGER_PART

#define FIXED_INTEGER_PART(v) FIXEDtoINT((Sint32)(v))

#define FIXED_INTEGER_PART(v) (((Sint16 *)&(v))[1])

Referenced by btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCatastrophe(), btEffectRunCoatlicue(), btEffectRunCool(), btEffectRunCruelRuin(), btEffectRunCybele(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunElementCards(), btEffectRunFallingSword(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunHail(), btEffectRunHaures(), btEffectRunHeartbreak(), btEffectRunHeavyBlow(), btEffectRunHurricane(), btEffectRunImpactBurst(), btEffectRunJuggle(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLegend(), btEffectRunLiquifier(), btEffectRunMars(), btEffectRunMegaera(), btEffectRunMercury(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunOceanFist(), btEffectRunOdyssey() and 27 more.

Definition at lines 140 and 142 of file battle_effect_internal.h.

EFFECT_BLEND_ADD

#define EFFECT_BLEND_ADD BLEND_ALPHA(BLEND_WEIGHT_MAX, BLEND_WEIGHT_MAX)

The canvas added to the battle under it: both blend weights whole.

Referenced by btEffectFillWhiteBand(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBoreas(), btEffectRunBreaths(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunEclipse(), btEffectRunElementCards(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunGround(), btEffectRunHaures(), btEffectRunHelmSplitter(), btEffectRunHurricane(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunJuggle() and 47 more.

Definition at line 146 of file battle_effect_internal.h.

EFFECT_BLEND_CANVAS

#define EFFECT_BLEND_CANVAS(level) BLEND_ALPHA(level, BLEND_WEIGHT_MAX)

The canvas at level sixteenths over the whole battle under it.

Referenced by btEffectConfigureEffectDisplay(), btEffectRunBladeRain(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCrystal(), btEffectRunDjinniEntrance(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFlora(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHeartbreak(), btEffectRunIris(), btEffectRunSpiderWeb(), btEffectRunStreakVolley(), btEffectRunThorn(), btEffectRunTorch(), btEffectRunUlysses(), btEffectRunWhirlwind(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap() and btEffectSetupCanvasWindows().

Definition at line 148 of file battle_effect_internal.h.

CANVAS_BLEND_LEVEL

#define CANVAS_BLEND_LEVEL 14

The canvas's usual weight over the battle, in sixteenths: every canvas opens with it.

Referenced by btEffectConfigureEffectDisplay(), btEffectRunFlora(), btEffectRunKirin(), btEffectRunUlysses(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap() and btEffectSetupCanvasWindows().

Definition at line 151 of file battle_effect_internal.h.

ELEMENT_BLEND_LEVEL

#define ELEMENT_BLEND_LEVEL 12

The element pillar's and element burst's canvas weight over the battle.

Referenced by btEffectRunElementBurst() and btEffectRunElementPillar().

Definition at line 153 of file battle_effect_internal.h.

ELEMENT_SPIRAL_MOTES

#define ELEMENT_SPIRAL_MOTES 128

The motes the element pillar and element burst set up in PARTICLES; the burst leaves them undrawn.

Referenced by btEffectRunElementBurst() and btEffectRunElementPillar().

Definition at line 156 of file battle_effect_internal.h.

WINDOW_EDGE_RIGHT

#define WINDOW_EDGE_RIGHT ((Uint16 *)MapGridMetatileBuffer)

The map cell buffer as btEffectBuildWindowEdgeTable reads it: window 0's right edge, how far each of its lines is set in from that edge, and the right edge it builds for every screen line.

Referenced by btEffectBuildWindowEdgeTable() and btEffectRunBoreas().

Definition at line 161 of file battle_effect_internal.h.

WINDOW_EDGE_INSETS

#define WINDOW_EDGE_INSETS (RamMapMetatileBuffer + 2)

Referenced by btEffectBuildWindowEdgeTable(), btEffectRunBoreas() and btEffectRunNeptune().

Definition at line 162 of file battle_effect_internal.h.

WINDOW_EDGE_INSET_LINES

#define WINDOW_EDGE_INSET_LINES 128

Referenced by btEffectBuildWindowEdgeTable(), btEffectRunBoreas() and btEffectRunNeptune().

Definition at line 163 of file battle_effect_internal.h.

WINDOW_EDGE_LINES

#define WINDOW_EDGE_LINES (WINDOW_EDGE_INSETS + WINDOW_EDGE_INSET_LINES)

Referenced by btEffectBuildWindowEdgeTable().

Definition at line 164 of file battle_effect_internal.h.

PARTICLES

#define PARTICLES ((PARTICLE *)RamMapMetatileBuffer)

The particles an effect keeps in the map cell buffer, from its start.

Referenced by btEffectRunAtalanta(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGeyser(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHeavyBlow(), btEffectRunHurricane(), btEffectRunImpactBurst(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLiquifier(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMegaera(), btEffectRunMercury(), btEffectRunMeteorBlow(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunOceanFist(), btEffectRunPlasma(), btEffectRunPlumeEdge(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunSparkGroups(), btEffectRunSpire(), btEffectRunStarfieldFall() and 10 more.

Definition at line 167 of file battle_effect_internal.h.

EXTRA_PARTICLES

#define EXTRA_PARTICLES ((PARTICLE *)(RamMapMetatileBuffer + 16384))

The particles an effect keeps in the map cell buffer from its second 16 KB on, past PARTICLES or the pictures and meshes it keeps in the first: a second, larger table, always reached at its fixed address, where the effects that throw more sparks, motes or trails than the state's 64 particles keep them.

Referenced by btEffectRunBallLightning(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDragonCloud(), btEffectRunEclipse(), btEffectRunElementCards(), btEffectRunGaspFamily(), btEffectRunHaures(), btEffectRunLegend(), btEffectRunRisingDragonEnemy(), btEffectRunRushingStrike() and btEffectRunTripleChomp().

Definition at line 173 of file battle_effect_internal.h.

OBJ_TILES

#define OBJ_TILES(sprite)

The VRAM address of a sprite's tiles, from its VRAM cache entry.

Referenced by btEffectRunCatastrophe(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunIris() and btEffectRunJudgment().

Definition at line 176 of file battle_effect_internal.h.

DMA_CONTROL_HALF

#define DMA_CONTROL_HALF 5

Index of DMAxCNT_H, the control half, in a channel's 16-bit registers.

Referenced by btEffectArmBg1HBlankDMA(), btEffectArmBg2AffineHBlankDMA(), btEffectArmMeteorBlowPaletteDMA(), btEffectArmPaletteHBlankDMA(), btEffectArmWin0HBlankDMA() and btEffectBuildWindowEdgeTable().

Definition at line 180 of file battle_effect_internal.h.

PARTICLE_POOL_COUNT

#define PARTICLE_POOL_COUNT 1024

The particles the map cell buffer holds when an effect lays its particles over it from the start.

Referenced by btEffectRunBolt(), btEffectRunEruption(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunLiquifier(), btEffectRunLobbedShells(), btEffectRunNeptune(), btEffectRunPlumeEdge(), btEffectRunRamses() and btEffectRunThorn().

Definition at line 184 of file battle_effect_internal.h.

NEREID_BURST_DROPS

#define NEREID_BURST_DROPS 256

Nereid's drops burst up, in btEffectRunNereid and in the unused copy of it: every free one of the first NEREID_BURST_DROPS as the columns gather, then NEREID_DROPS_A_TICK a tick while they rise.

Referenced by btEffectRunNereid() and btEffectRunNereidCopy().

Definition at line 188 of file battle_effect_internal.h.

NEREID_DROPS_A_TICK

#define NEREID_DROPS_A_TICK 16

Referenced by btEffectRunNereid() and btEffectRunNereidCopy().

Definition at line 189 of file battle_effect_internal.h.

MEGAERA_OBJECTS

#define MEGAERA_OBJECTS 11

The sprites that draw Megaera, in her summon and in her formation.

Referenced by btEffectPlaceFormationSprites() and btEffectRunMegaera().

Definition at line 191 of file battle_effect_internal.h.

CANVAS_SIZE

#define CANVAS_SIZE 128

The canvas: 128x128 pixels, one byte each, in its heap slot and in VRAM at BG_CHAR_BLOCK(1) (CANVAS_BYTES).

Referenced by btEffectDrawClippedCanvasLine(), btEffectFillWhiteBand(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCloudSwirl(), btEffectRunCool(), btEffectRunCriticalHit(), btEffectRunCrystal(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinniSign(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunHaures(), btEffectRunHealingMotes(), btEffectRunHurricane(), btEffectRunIris(), btEffectRunJuggle(), btEffectRunLifeShear(), btEffectRunLightSurge(), btEffectRunMeteorBlow(), btEffectRunMirroredWall(), btEffectRunRay(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStatBoost(), btEffectRunThor(), btEffectRunTorch(), btEffectRunTumblingQuads(), btEffectRunUndeadSword(), btEffectRunUnusedTriangleStrike(), btEffectRunVengeance(), btEffectRunVine(), btEffectRunZagan(), btEffectWipeCanvas() and btIrisWipeScreen().

Definition at line 195 of file battle_effect_internal.h.

CANVAS_TILES

#define CANVAS_TILES (CANVAS_SIZE / 8)

The canvas's rows and columns of 8x8 tiles.

Referenced by btEffectBuildCanvasTilemap(), btEffectOpenCanvasLayer(), btEffectRunBackgroundFadeIn(), btEffectRunShatteringOpening(), btEffectRunUlysses(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer(), btEffectStartElementStreaks(), btEffectStartTiledCanvas() and btEffectStartTiledCanvasFilled().

Definition at line 197 of file battle_effect_internal.h.

CANVAS_PIXEL_OFFSET

#define CANVAS_PIXEL_OFFSET(x, y)

The byte of canvas pixel (x, y): the canvas is laid out in 8x8 tiles, row by row, each tile 64 bytes row by row.

Referenced by btEffectDrawClippedCanvasLine(), btEffectFillWhiteBand(), btEffectRunCybele(), btEffectRunStarfieldFall() and btEffectWipeCanvas().

Definition at line 200 of file battle_effect_internal.h.

CANVAS_TILE_BYTES

#define CANVAS_TILE_BYTES (8 * 8)

The bytes of one 8x8 tile of the canvas; a row of pixels steps from one tile to the next by CANVAS_TILE_BYTES - 8.

Referenced by btEffectRunIris() and btIrisWipeScreen().

Definition at line 204 of file battle_effect_internal.h.

OBJ_32X32_8BPP_BYTES

#define OBJ_32X32_8BPP_BYTES (32 * 32)

The bytes of a 32x32 sprite's tiles in 256 colours, and in 16.

Referenced by btEffectRunAtalanta(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunJudgment() and btEffectRunNeptune().

Definition at line 206 of file battle_effect_internal.h.

OBJ_32X32_4BPP_BYTES

#define OBJ_32X32_4BPP_BYTES (32 * 32 / 2)

Referenced by btEffectRunCatastrophe(), btEffectRunCruelRuin() and btEffectRunDaedalus().

Definition at line 207 of file battle_effect_internal.h.

OBJ_64X64_8BPP_BYTES

#define OBJ_64X64_8BPP_BYTES (64 * 64)

The bytes of a 64x64 sprite's tiles in 256 colours, and in 16.

Referenced by btEffectProcessPendingStampTransfer(), btEffectRunCharon() and btEffectRunMegaera().

Definition at line 209 of file battle_effect_internal.h.

OBJ_64X64_4BPP_BYTES

#define OBJ_64X64_4BPP_BYTES (64 * 64 / 2)

Referenced by btEffectRunCharon().

Definition at line 210 of file battle_effect_internal.h.

OBJ_16X16_4BPP_BYTES

#define OBJ_16X16_4BPP_BYTES (16 * 16 / 2)

The bytes of a 16x16 sprite's tiles in 16 colours.

Referenced by btEffectRunFlora().

Definition at line 212 of file battle_effect_internal.h.

CANVAS_ROW_OFFSET

#define CANVAS_ROW_OFFSET(y) ((((y) & 7) << 3) + (((y) >> 3) << 10))

The byte of the first pixel of canvas row y, y not negative.

Referenced by btEffectRunIris().

Definition at line 214 of file battle_effect_internal.h.

CANVAS_LEVEL_BRIGHTEST

#define CANVAS_LEVEL_BRIGHTEST 63

The brightest canvas level: the additive blitters and CANVAS_COPY_AND_BRIGHTEN stop at it.

Referenced by btEffectBuildShadeRamp(), btEffectBuildShadeRampWave(), btEffectBuildSteepShadeRampWave(), btEffectDrawShadedDisc(), btEffectDrawShadedDiscQuarter(), btEffectFillWhiteBand(), btEffectRunAnnihilation(), btEffectRunAzul(), btEffectRunBallLightning(), btEffectRunBreaths(), btEffectRunBurstShower(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCrescentSlash(), btEffectRunCruelRuin(), btEffectRunDaedalusStrike(), btEffectRunDiamondBerg(), btEffectRunDragonFire(), btEffectRunEclipse(), btEffectRunFallingSword(), btEffectRunFirePuppet(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunHeartbreak(), btEffectRunHelmSplitter(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunLifeShear(), btEffectRunMegaera(), btEffectRunMegiddo(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunOdyssey(), btEffectRunPlumeEdge(), btEffectRunRadiantFire(), btEffectRunRisingDragon(), btEffectRunRisingDragonEnemy(), btEffectRunSerac(), btEffectRunSparkGroups(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunTorch() and 6 more.

Definition at line 217 of file battle_effect_internal.h.

BATTLE_VIEW_TOP

#define BATTLE_VIEW_TOP 16

The battle view, under the top window and over the menus: screen lines 16 to 135.

Referenced by btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunCoatlicue(), btEffectRunGeode(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunRamses(), btEffectRunRisingDragonEnemy(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunTrident(), btEffectRunUlysses(), btEffectRunVengeance() and btEffectSetupCanvasWindows().

Definition at line 221 of file battle_effect_internal.h.

BATTLE_VIEW_HEIGHT

#define BATTLE_VIEW_HEIGHT 120

Referenced by btEffectRunBoreas(), btEffectRunCybele(), btEffectRunHaures(), btEffectRunOceanFist() and btEffectRunVolcano().

Definition at line 222 of file battle_effect_internal.h.

BATTLE_VIEW_BOTTOM

#define BATTLE_VIEW_BOTTOM (BATTLE_VIEW_TOP + BATTLE_VIEW_HEIGHT)

Referenced by btEffectRunAzul(), btEffectRunMeteorBlow(), btEffectRunRamses(), btEffectRunStarfieldFall(), btEffectRunTrident() and btEffectRunVengeance().

Definition at line 223 of file battle_effect_internal.h.

GRADIENT_BLUE_LINES

#define GRADIENT_BLUE_LINES 15

The backdrop gradients Azul and Coatlicue write over the battle view, a colour a line from BATTLE_VIEW_TOP - 1: each channel a level darker every so many lines down, blue every 15, green every 16 and red every 17.

Referenced by btEffectRunAzul().

Definition at line 227 of file battle_effect_internal.h.

GRADIENT_GREEN_LINES

#define GRADIENT_GREEN_LINES 16

Referenced by btEffectRunAzul().

Definition at line 228 of file battle_effect_internal.h.

GRADIENT_RED_LINES

#define GRADIENT_RED_LINES 17

Referenced by btEffectRunAzul().

Definition at line 229 of file battle_effect_internal.h.

EFFECT_WRITE_CANVAS_MAP_ROW

#define EFFECT_WRITE_CANVAS_MAP_ROW(row, column, offset)

Writes one row of BG2's map for the canvas, two tiles at a time.

Referenced by btEffectOpenCanvasLayer(), btEffectRunBackgroundFadeIn(), btEffectStartCanvasLayer(), btEffectStartTiledCanvas() and btEffectStartTiledCanvasFilled().

Definition at line 232 of file battle_effect_internal.h.

SUMMON_OPENING_TICKS

#define SUMMON_OPENING_TICKS 52

Three summons open alike (Eclipse, Daedalus and Flora): the battle flashes away over SUMMON_OPENING_TICKS, and at SUMMON_OPENING_LOAD_TICK their sky and their sprites load.

Referenced by btEffectRunDaedalus(), btEffectRunEclipse() and btEffectRunFlora().

Definition at line 245 of file battle_effect_internal.h.

SUMMON_OPENING_LOAD_TICK

#define SUMMON_OPENING_LOAD_TICK 27

Referenced by btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora() and btEffectRunZagan().

Definition at line 246 of file battle_effect_internal.h.

EFFECT_SET_BATTLE_WINDOWS

#define EFFECT_SET_BATTLE_WINDOWS()

Windows 0 and 1 both cover the battle view: the full width, lines 16 to 135.

Referenced by btEffectConfigureEffectDisplay(), btEffectRunBackgroundFadeIn(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap() and btEffectSetupCanvasWindows().

Definition at line 249 of file battle_effect_internal.h.

CANVAS_VIEW_BYTES

#define CANVAS_VIEW_BYTES (CANVAS_SIZE * BATTLE_VIEW_HEIGHT)

The canvas's first BATTLE_VIEW_HEIGHT lines, which the battle view shows: what most of this game's effects clear and fill, leaving the last 8.

Referenced by btEffectProcessPendingBlock2Transfer(), btEffectRunBallLightning(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCriticalHit(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunEclipse(), btEffectRunFlashingStrike(), btEffectRunFormChange(), btEffectRunGeode(), btEffectRunHurricane(), btEffectRunLobbedShells(), btEffectRunMegaera(), btEffectRunMegiddo(), btEffectRunMoteFountain(), btEffectRunOdyssey(), btEffectRunRadiantFire(), btEffectRunSerac(), btEffectRunSpiderWeb(), btEffectRunUlysses() and btEffectRunZagan().

Definition at line 256 of file battle_effect_internal.h.

NARROW_CANVAS_PARTY_X

#define NARROW_CANVAS_PARTY_X (DISPLAY_WIDTH - CANVAS_SIZE)

How far right the narrow canvas is set to show over the party: against the screen's right edge.

Referenced by btEffectRunCurse(), btEffectRunDjinnBeams(), btEffectRunFrost(), btEffectRunGrowingColumns(), btEffectRunQuake(), btEffectRunRay(), btEffectRunSleep(), btEffectRunStatReduction(), btEffectRunThorn(), btEffectRunUlysses() and btEffectRunUnusedOrbitingSpirals().

Definition at line 260 of file battle_effect_internal.h.

SUMMON_PROJECTION_CENTER_Y

#define SUMMON_PROJECTION_CENTER_Y 240

Where the summons centre the projection while their figures fly, lower than the battle's BATTLE_PROJECTION_CENTER_Y.

Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunHaures(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunRisingDragonEnemy(), btEffectRunStarfieldFall(), btEffectRunThor(), btEffectRunZagan() and btIrisChangeBackdrop().

Definition at line 264 of file battle_effect_internal.h.

BACKGROUND_DARKEN_TICKS

#define BACKGROUND_DARKEN_TICKS 24

The ticks the battle background darkens behind an effect's canvas (state->fadeFrame, btEffectDarkenBackgroundStep).

Referenced by btEffectOpenCanvasLayer(), btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCriticalHit(), btEffectRunDaedalusStrike(), btEffectRunDjinniEntrance(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFormChange(), btEffectRunGaspFamily(), btEffectRunHealingMotes(), btEffectRunHeartbreak(), btEffectRunJudgment(), btEffectRunMegiddo(), btEffectRunNeptune(), btEffectRunOdyssey(), btEffectRunRamses(), btEffectRunRisingDragonEnemy(), btEffectRunSparkGroups(), btEffectRunStarSwarm(), btEffectRunStatBoost(), btEffectRunTargetStrike(), btEffectStartBubbleColumn(), btEffectStartElementStreaks() and btIrisRestoreBattle().

Definition at line 268 of file battle_effect_internal.h.

BACKGROUND_DARKENED_LEVEL

#define BACKGROUND_DARKENED_LEVEL BACKGROUND_DARKEN_TICKS

The level btBackgroundLoadStub darkens the battle's own background to as it comes back after an effect: as dark as the canvas's fade left it.

Referenced by btEffectEndCanvasLayer(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCondemn(), btEffectRunCruelRuin(), btEffectRunEclipse() and btEffectSetupBlendedDisplay().

Definition at line 271 of file battle_effect_internal.h.

SHEET_PALETTE_COLORS

#define SHEET_PALETTE_COLORS 64

A sprite sheet resource opens with its 64 colours, ahead of its compressed pictures.

Referenced by btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCybele(), btEffectRunDrainMotes(), btEffectRunEruption(), btEffectRunFlashingStrike(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunHaures(), btEffectRunJudgment(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunUlysses(), btEffectStepPaletteToResource(), btPaletteBrightenBgEntries() and btPaletteMirrorBgColors().

Definition at line 275 of file battle_effect_internal.h.

SHEET_PALETTE_BYTES

#define SHEET_PALETTE_BYTES (SHEET_PALETTE_COLORS * 2)

Referenced by btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBreak(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCrystal(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFirePuppet(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunGaia(), btEffectRunGeode(), btEffectRunHaunt(), btEffectRunHaures(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunHurricane(), btEffectRunJudgment(), btEffectRunLeapingStrike(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMegaera(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereidCopy(), btEffectRunPlumeEdge(), btEffectRunProjectileVolley(), btEffectRunRadiantFire() and 28 more.

Definition at line 276 of file battle_effect_internal.h.

LOAD_BG_PALETTE

#define LOAD_BG_PALETTE(resource)

Loads a sprite sheet's colours into the background palette.

Referenced by btEffectRunBreaths(), btEffectRunDjinniCharge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunJuggle(), btEffectRunLightSurge(), btEffectRunLiquifier(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunNirvana(), btEffectRunOceanFist(), btEffectRunPlasma(), btEffectRunProjectileVolley(), btEffectRunSerac(), btEffectRunSoulShatter(), btEffectRunSparkGroups(), btEffectRunStatBoost(), btEffectRunSwirlSwipe(), btEffectRunVolcano() and btEffectRunWaterSheet().

Definition at line 279 of file battle_effect_internal.h.

PARTICLE_DAMPING_NONE

#define PARTICLE_DAMPING_NONE DAMPING_SCALE

The damping that keeps a particle's whole speed.

Referenced by btEffectRunBallLightning(), btEffectRunBoreas(), btEffectRunCastingImpact(), btEffectRunCoatlicue(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDiamondBerg(), btEffectRunDragonCloud(), btEffectRunElementCards(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFlora(), btEffectRunHeavyBlow(), btEffectRunImpactBurst(), btEffectRunLiquifier(), btEffectRunMars(), btEffectRunPrism(), btEffectRunRagnarok(), btEffectRunSabreDance(), btEffectRunShatteringOpening(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStarSwarm(), btEffectRunStreakVolley(), btEffectRunTrident() and btEffectRunWyrdCurse().

Definition at line 286 of file battle_effect_internal.h.

PICTURE_BYTES

#define PICTURE_BYTES(name) (name##_WIDTH * name##_HEIGHT)

The bytes of a sprite sheet picture, one byte a pixel, from its name's _WIDTH and _HEIGHT.

Referenced by btEffectRunAnnihilation(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBladeRain(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunFallingSword(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFroth(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunHaures(), btEffectRunHealingMotes(), btEffectRunHeavyBlow(), btEffectRunHelmSplitter(), btEffectRunHurricane(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunIris(), btEffectRunJuggle(), btEffectRunLeapingStrike(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMegaera(), btEffectRunMegiddo(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunOceanFist(), btEffectRunPlumeEdge() and 27 more.

Definition at line 290 of file battle_effect_internal.h.

EFFECT_DRAW_PICTURE

#define EFFECT_DRAW_PICTURE(draw, canvas, sheet, name, x, y)

Draws picture name of sheet at its own size, its top left at (x, y).

Referenced by btEffectRunAtalanta(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunJudgment(), btEffectRunProjectileVolley(), btEffectRunVengeance() and btEffectRunWhiplash().

Definition at line 293 of file battle_effect_internal.h.

TARGET_STRIKE_BITE_Y

#define TARGET_STRIKE_BITE_Y 56

A bite's half pictures (BlueDropletSheet's closing fangs, each drawn beside its mirror): the canvas row they start at, and their size.

Referenced by btEffectRunCastingImpact() and btEffectRunTargetStrike().

Definition at line 298 of file battle_effect_internal.h.

TARGET_STRIKE_BITE_WIDTH

#define TARGET_STRIKE_BITE_WIDTH 18

Referenced by btEffectRunCastingImpact() and btEffectRunTargetStrike().

Definition at line 299 of file battle_effect_internal.h.

TARGET_STRIKE_BITE_HEIGHT

#define TARGET_STRIKE_BITE_HEIGHT 48

Referenced by btEffectRunCastingImpact() and btEffectRunTargetStrike().

Definition at line 300 of file battle_effect_internal.h.

BATTLE_BACKGROUND_WIDTH

#define BATTLE_BACKGROUND_WIDTH 256

The battle background's image as BG1 shows it from BG character block 2, one byte a pixel.

Referenced by btEffectConvertBackgroundToBlueRamp(), btEffectRunAzul() and btEffectRunGeode().

Definition at line 304 of file battle_effect_internal.h.

BATTLE_BACKGROUND_HEIGHT

#define BATTLE_BACKGROUND_HEIGHT 120

Referenced by btEffectConvertBackgroundToBlueRamp(), btEffectRunAzul(), btEffectRunGeode(), btEffectRunMegiddo() and btEffectRunRisingDragonEnemy().

Definition at line 305 of file battle_effect_internal.h.

BATTLE_BACKGROUND_BYTES

#define BATTLE_BACKGROUND_BYTES

Referenced by btEffectConvertBackgroundToBlueRamp(), btEffectProcessPendingBlock2Transfer(), btEffectRunBackgroundFadeIn(), btEffectRunMeteorBlow(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunUlysses() and btEffectTransferFullScreenImage().

Definition at line 306 of file battle_effect_internal.h.

BG_SCROLL_WRAP

#define BG_SCROLL_WRAP (1 << 16)

A background's scroll (BG_SCROLL) is a halfword: a negative scroll is held BG_SCROLL_WRAP above itself, and read back by taking it away.

Referenced by btEffectRunMegiddo() and btEffectRunRisingDragonEnemy().

Definition at line 310 of file battle_effect_internal.h.

MAP_ENTRY_PAIR

#define MAP_ENTRY_PAIR(left, right) ((Uint32)(right) << 16 | (left))

Two entries of a background map in one word: left, then the one to its right.

Referenced by btEffectBuildCanvasTilemap() and btEffectRunUlysses().

Definition at line 313 of file battle_effect_internal.h.

BG1_CLEAR_TILE

#define BG1_CLEAR_TILE 1023

The tile BG1 shows around a picture of its own, the last a map entry can name.

Referenced by btEffectBuildCanvasTilemap() and btEffectRunUlysses().

Definition at line 316 of file battle_effect_internal.h.

BG1_BLOCK2_FIRST_TILE

#define BG1_BLOCK2_FIRST_TILE (2 * BG_CHAR_SIZE / TILE_SIZE_8BPP)

BG character block 2's first tile, counted from BG1's character base.

Referenced by btEffectBuildCanvasTilemap() and btEffectRunUlysses().

Definition at line 318 of file battle_effect_internal.h.

PALETTE_BANK_BYTES

#define PALETTE_BANK_BYTES 32

The bytes of one 16-colour palette.

Referenced by btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunFlora() and btEffectRunIris().

Definition at line 320 of file battle_effect_internal.h.

COLOR_PAIR

#define COLOR_PAIR(color) ((color) << 16 | (color))

A word of two palette entries, both color, to fill a palette a word at a time.

Referenced by btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCruelRuin(), btEffectRunIris(), btEffectRunShatteringOpening() and btEffectRunZagan().

Definition at line 323 of file battle_effect_internal.h.

MODEL_SHADE_INVISIBLE

#define MODEL_SHADE_INVISIBLE (-64)

A model's shade (RENDER_MODEL.shade) is added to each of its pixels' canvas levels: at this or below, nothing of the model is left to draw, and the effects skip it.

Referenced by btEffectRunAzul(), btEffectRunBallLightning(), btEffectRunBreaths(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunLeapingStrike(), btEffectRunLegend(), btEffectRunLiquifier(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunOdyssey(), btEffectRunRagingHeat(), btEffectRunSerac(), btEffectRunTrident(), btEffectRunTripleChomp(), btEffectRunTwistingColumn(), btEffectRunWaterSheet(), btEffectRunWindFunnel() and btEffectRunZagan().

Definition at line 328 of file battle_effect_internal.h.

COLOR_LEVELS_CAP

#define COLOR_LEVELS_CAP(red, green, blue)

A colour's three levels held at RGB_LEVEL_MAX at most; CLAMP also holds them at 0 at least.

Referenced by btEffectRunCatastrophe(), btEffectRunCharon() and btEffectRunCruelRuin().

Definition at line 332 of file battle_effect_internal.h.

COLOR_LEVELS_CLAMP

#define COLOR_LEVELS_CLAMP(red, green, blue)

Referenced by btEffectRunCatastrophe() and btEffectRunCharon().

Definition at line 347 of file battle_effect_internal.h.

COLOR_STEP_DOWN

#define COLOR_STEP_DOWN(

Steps a colour's levels, red, green and blue, down toward a target's by step in each channel that is more than a step above it.

Referenced by btEffectRunCharon().

Definition at line 366 of file battle_effect_internal.h.

MODEL_ONE_SIDED

#define MODEL_ONE_SIDED 2

RENDER_MODEL.flags that the rasterizer kernels read: a one-sided model draws only the faces wound one way round on the screen, clockwise with MODEL_CLOCKWISE and anticlockwise without it, and skips the others.

Referenced by btEffectRunDjinniCharge(), btEffectRunEclipse(), btEffectRunGeode(), btEffectRunMegiddo() and btEffectRunSerac().

Definition at line 409 of file battle_effect_internal.h.

MODEL_CLOCKWISE

#define MODEL_CLOCKWISE 1

Referenced by btEffectRunDjinniCharge(), btEffectRunEclipse(), btEffectRunGeode(), btEffectRunMegiddo() and btEffectRunSerac().

Definition at line 410 of file battle_effect_internal.h.

EFFECT_VIEW_FROM_CAMERA

#define EFFECT_VIEW_FROM_CAMERA(camera)

Starts a tick's 3D projection from the battle camera.

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAttackSlash(), btEffectRunBreak(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunHaunt(), btEffectRunLobbedShells(), btEffectRunMoteFountain(), btEffectRunProcne(), btEffectRunQuake(), btEffectRunRisingDragon(), btEffectRunShiningStar(), btEffectRunStarfieldFall(), btEffectRunStarMine(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunUnusedOrbitingSpirals(), btEffectRunVolcano() and btUnitProjectToScreen().

Definition at line 413 of file battle_effect_internal.h.

GLINT_SET_BYTES

#define GLINT_SET_BYTES

The bytes of the six glint pictures that open the tornado sprite sheet.

Referenced by btEffectRunCastingImpact().

Definition at line 420 of file battle_effect_internal.h.

EFFECT_DRAW_FLARE

#define EFFECT_DRAW_FLARE(draw, canvas, sheet, x, y, size)

Draws flare picture size, a square, centred on (x, y).

Referenced by btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunCriticalHit(), btEffectRunDouse(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunNeptune(), btEffectRunStatBoost() and btEffectRunUnusedTriangleStrike().

Definition at line 424 of file battle_effect_internal.h.

REAPER_SHEET_RAISED_WIDTH

#define REAPER_SHEET_RAISED_WIDTH 57

The reaper in CounterRevealSheet, which Condemn and Mortal Danger decode: the reaper with its scythe raised, then swung, then the red crescent the swing leaves.

Referenced by btEffectRunCards(), btEffectRunCastingImpact() and btEffectRunCondemn().

Definition at line 435 of file battle_effect_internal.h.

REAPER_SHEET_RAISED_HEIGHT

#define REAPER_SHEET_RAISED_HEIGHT 98

Referenced by btEffectRunCards(), btEffectRunCastingImpact() and btEffectRunCondemn().

Definition at line 436 of file battle_effect_internal.h.

REAPER_SHEET_SWUNG_WIDTH

#define REAPER_SHEET_SWUNG_WIDTH 99

Definition at line 437 of file battle_effect_internal.h.

REAPER_SHEET_SWUNG_HEIGHT

#define REAPER_SHEET_SWUNG_HEIGHT 69

Definition at line 438 of file battle_effect_internal.h.

REAPER_SHEET_CRESCENT_WIDTH

#define REAPER_SHEET_CRESCENT_WIDTH 128

Definition at line 439 of file battle_effect_internal.h.

REAPER_SHEET_CRESCENT_HEIGHT

#define REAPER_SHEET_CRESCENT_HEIGHT 91

Definition at line 440 of file battle_effect_internal.h.

RED_CRESCENT_FADE_A_WIDTH

#define RED_CRESCENT_FADE_A_WIDTH 128

RedCrescentSheetA: the swing's crescent fading in four pictures.

Definition at line 453 of file battle_effect_internal.h.

RED_CRESCENT_FADE_A_HEIGHT

#define RED_CRESCENT_FADE_A_HEIGHT 91

Definition at line 454 of file battle_effect_internal.h.

RED_CRESCENT_FADE_B_WIDTH

#define RED_CRESCENT_FADE_B_WIDTH 128

Definition at line 455 of file battle_effect_internal.h.

RED_CRESCENT_FADE_B_HEIGHT

#define RED_CRESCENT_FADE_B_HEIGHT 59

Definition at line 456 of file battle_effect_internal.h.

RED_CRESCENT_FADE_C_WIDTH

#define RED_CRESCENT_FADE_C_WIDTH 122

Definition at line 457 of file battle_effect_internal.h.

RED_CRESCENT_FADE_C_HEIGHT

#define RED_CRESCENT_FADE_C_HEIGHT 29

Definition at line 458 of file battle_effect_internal.h.

RED_CRESCENT_FADE_D_WIDTH

#define RED_CRESCENT_FADE_D_WIDTH 76

Definition at line 459 of file battle_effect_internal.h.

RED_CRESCENT_FADE_D_HEIGHT

#define RED_CRESCENT_FADE_D_HEIGHT 25

Definition at line 460 of file battle_effect_internal.h.

SLASH_PICTURE_SIZE

#define SLASH_PICTURE_SIZE 120

The slash pictures as wide and tall as the canvas's view: StarBurstSheet's, CrescentSheet's and the reveal masks.

Referenced by btEffectRunCrescentSlash(), btEffectRunCriticalHit() and btEffectRunFlashingStrike().

Definition at line 476 of file battle_effect_internal.h.

LIGHTNING_BOLT_WIDTH

#define LIGHTNING_BOLT_WIDTH 24

Closing bolts and lightning columns use the same 24x120 pictures.

Referenced by btEffectRunBallLightning(), btEffectRunBolt(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunGaspFamily(), btEffectRunMegaera() and btEffectRunRay().

Definition at line 479 of file battle_effect_internal.h.

LIGHTNING_BOLT_HEIGHT

#define LIGHTNING_BOLT_HEIGHT 120

Referenced by btEffectRunBallLightning(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunGaspFamily() and btEffectRunRay().

Definition at line 480 of file battle_effect_internal.h.

LIGHTNING_BOLT_PICTURE_BYTES

#define LIGHTNING_BOLT_PICTURE_BYTES PICTURE_BYTES(LIGHTNING_BOLT)

Referenced by btEffectRunBallLightning(), btEffectRunBolt(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunGaspFamily(), btEffectRunMegaera() and btEffectRunRay().

Definition at line 481 of file battle_effect_internal.h.

BLUE_FLAME_COLUMN_WIDTH

#define BLUE_FLAME_COLUMN_WIDTH 17

BlueFlameSheet: the column of flame, then the flame that splashes from it, twice its width.

Referenced by btEffectRunCastingImpact(), btEffectRunMercury() and btEffectRunNeptune().

Definition at line 485 of file battle_effect_internal.h.

BLUE_FLAME_COLUMN_HEIGHT

#define BLUE_FLAME_COLUMN_HEIGHT 104

Referenced by btEffectRunCastingImpact(), btEffectRunMercury() and btEffectRunNeptune().

Definition at line 486 of file battle_effect_internal.h.

BLUE_FLAME_SPLASH_WIDTH

#define BLUE_FLAME_SPLASH_WIDTH 34

Referenced by btEffectRunCastingImpact(), btEffectRunMercury(), btEffectRunNeptune() and btEffectRunVenus().

Definition at line 487 of file battle_effect_internal.h.

BLUE_FLAME_SPLASH_HEIGHT

#define BLUE_FLAME_SPLASH_HEIGHT 65

Referenced by btEffectRunCastingImpact(), btEffectRunMercury(), btEffectRunNeptune() and btEffectRunVenus().

Definition at line 488 of file battle_effect_internal.h.

WAVE_WIDTH

#define WAVE_WIDTH 48

WaveSheet's six pictures, BlueArcSheetA and B's six, and YellowOrbSheet's.

Referenced by btEffectRunAttackSlash() and btEffectRunFlurry().

Definition at line 490 of file battle_effect_internal.h.

WAVE_HEIGHT

#define WAVE_HEIGHT 16

Referenced by btEffectRunAttackSlash() and btEffectRunFlurry().

Definition at line 491 of file battle_effect_internal.h.

BLUE_ARC_WIDTH

#define BLUE_ARC_WIDTH 48

Referenced by btEffectRunAttackSlash(), btEffectRunFlurry() and btEffectRunHaures().

Definition at line 492 of file battle_effect_internal.h.

BLUE_ARC_HEIGHT

#define BLUE_ARC_HEIGHT 72

Referenced by btEffectRunAttackSlash(), btEffectRunFlurry() and btEffectRunHaures().

Definition at line 493 of file battle_effect_internal.h.

YELLOW_ORB_WIDTH

#define YELLOW_ORB_WIDTH 40

Referenced by btEffectPackYellowOrbs(), btEffectRunAttackSlash(), btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunUlysses().

Definition at line 494 of file battle_effect_internal.h.

YELLOW_ORB_HEIGHT

#define YELLOW_ORB_HEIGHT 48

Referenced by btEffectPackYellowOrbs(), btEffectRunAttackSlash(), btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunUlysses().

Definition at line 495 of file battle_effect_internal.h.

YELLOW_ORB_PACKED_WIDTH

#define YELLOW_ORB_PACKED_WIDTH (YELLOW_ORB_WIDTH / 2)

The yellow orb as btEffectPackYellowOrbs packs it, every second byte.

Referenced by btEffectRunCastingImpact() and btEffectRunFlurry().

Definition at line 497 of file battle_effect_internal.h.

YELLOW_ORB_PACKED_HEIGHT

#define YELLOW_ORB_PACKED_HEIGHT YELLOW_ORB_HEIGHT

Referenced by btEffectRunCastingImpact() and btEffectRunFlurry().

Definition at line 498 of file battle_effect_internal.h.

YELLOW_ORB_PICTURES

#define YELLOW_ORB_PICTURES 6

Referenced by btEffectPackYellowOrbs(), btEffectRunCastingImpact() and btEffectRunFlurry().

Definition at line 499 of file battle_effect_internal.h.

FIRE_STREAK_WIDTH

#define FIRE_STREAK_WIDTH 48

FireStreakSheet's six pictures and FireBurstSheet's.

Referenced by btEffectRunAnnihilation() and btEffectRunCastingImpact().

Definition at line 502 of file battle_effect_internal.h.

FIRE_STREAK_HEIGHT

#define FIRE_STREAK_HEIGHT 72

Referenced by btEffectRunAnnihilation() and btEffectRunCastingImpact().

Definition at line 503 of file battle_effect_internal.h.

FIRE_BURST_WIDTH

#define FIRE_BURST_WIDTH 40

Referenced by btEffectRunAnnihilation().

Definition at line 504 of file battle_effect_internal.h.

FIRE_BURST_HEIGHT

#define FIRE_BURST_HEIGHT 80

Referenced by btEffectRunAnnihilation().

Definition at line 505 of file battle_effect_internal.h.

MERCURY_SMALL_DJINNI_HEIGHT

#define MERCURY_SMALL_DJINNI_HEIGHT 34

The small Djinn sprite sheets' pictures are SMALL_DJINNI_WIDTH wide; Mercury's and Venus's are shorter than SMALL_DJINNI_HEIGHT.

Referenced by btEffectRunDjinnHeal() and btEffectRunMercury().

Definition at line 508 of file battle_effect_internal.h.

VENUS_SMALL_DJINNI_HEIGHT

#define VENUS_SMALL_DJINNI_HEIGHT 38

Referenced by btEffectRunVenus().

Definition at line 509 of file battle_effect_internal.h.

FIRE_BLOB_WIDTH

#define FIRE_BLOB_WIDTH 48

FireBlobSheet's blobs and CrystalSheet's crystal.

Referenced by btEffectRunKirin().

Definition at line 511 of file battle_effect_internal.h.

FIRE_BLOB_HEIGHT

#define FIRE_BLOB_HEIGHT 32

Referenced by btEffectRunKirin().

Definition at line 512 of file battle_effect_internal.h.

CRYSTAL_WIDTH

#define CRYSTAL_WIDTH 32

Referenced by btEffectRunCastingImpact() and btEffectRunPrism().

Definition at line 513 of file battle_effect_internal.h.

CRYSTAL_HEIGHT

#define CRYSTAL_HEIGHT 64

Referenced by btEffectRunCastingImpact() and btEffectRunPrism().

Definition at line 514 of file battle_effect_internal.h.

CRYSTAL_SHARD_PICTURES

#define CRYSTAL_SHARD_PICTURES PICTURE_BYTES(CRYSTAL)

CrystalSheet's shard pictures, after its crystal, and the shards of PrismShardStarts a crystal breaks into.

Referenced by btEffectRunCastingImpact() and btEffectRunElementCards().

Definition at line 517 of file battle_effect_internal.h.

SHARDS_PER_CRYSTAL

#define SHARDS_PER_CRYSTAL 16

Referenced by btEffectRunCastingImpact() and btEffectRunPrism().

Definition at line 518 of file battle_effect_internal.h.

BOULDER_WIDTH

#define BOULDER_WIDTH 34

BoulderSheet's boulder, its first picture, and its shard pictures after it.

Referenced by btEffectRunSpire().

Definition at line 520 of file battle_effect_internal.h.

BOULDER_HEIGHT

#define BOULDER_HEIGHT 62

Referenced by btEffectRunSpire().

Definition at line 521 of file battle_effect_internal.h.

BOULDER_SHARD_PICTURES

#define BOULDER_SHARD_PICTURES (BOULDER_WIDTH * BOULDER_HEIGHT)

Referenced by btEffectRunCastingImpact(), btEffectRunSpire() and btEffectRunStoneJustice().

Definition at line 522 of file battle_effect_internal.h.

SHARD_TURN

#define SHARD_TURN 96

A shard turns through its three pictures, one each SHARD_TURN of its variant.

Referenced by btEffectRunCastingImpact(), btEffectRunDiamondBerg(), btEffectRunElementCards(), btEffectRunPrism() and btEffectRunSpire().

Definition at line 524 of file battle_effect_internal.h.

STAT_REDUCTION_SHARD_PICTURES

#define STAT_REDUCTION_SHARD_PICTURES 9600

PaletteRampImage's shard pictures (drawn through StatChangeShardPictures), where the stat reduction and the Sword Card decode them in the sprite sheet, followed by DIMMED_COPIES - 1 copies of them, each darker than the one before.

Referenced by btEffectRunCards() and btEffectRunStatReduction().

Definition at line 529 of file battle_effect_internal.h.

STAT_REDUCTION_SHARD_BYTES

#define STAT_REDUCTION_SHARD_BYTES 696

bytes in each copy

Referenced by btEffectRunCards() and btEffectRunStatReduction().

Definition at line 530 of file battle_effect_internal.h.

LIGHTNING_PILLAR_WIDTH

#define LIGHTNING_PILLAR_WIDTH 48

LightningPillarSheet's pillar, in two pictures.

Referenced by btEffectRunPlasma() and btEffectRunThor().

Definition at line 533 of file battle_effect_internal.h.

LIGHTNING_PILLAR_HEIGHT

#define LIGHTNING_PILLAR_HEIGHT 112

Referenced by btEffectRunPlasma() and btEffectRunThor().

Definition at line 534 of file battle_effect_internal.h.

FIRE_PILLAR_WIDTH

#define FIRE_PILLAR_WIDTH 34

FirePillarSheetA: the pillar of fire, then two flames.

Referenced by btEffectRunFallingSword(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunPlumeEdge() and btEffectRunVolcano().

Definition at line 536 of file battle_effect_internal.h.

FIRE_PILLAR_HEIGHT

#define FIRE_PILLAR_HEIGHT 104

Referenced by btEffectRunFallingSword(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunPlumeEdge() and btEffectRunVolcano().

Definition at line 537 of file battle_effect_internal.h.

FIRE_PILLAR_FLAME_WIDTH

#define FIRE_PILLAR_FLAME_WIDTH 20

Referenced by btEffectRunVolcano().

Definition at line 538 of file battle_effect_internal.h.

FIRE_PILLAR_FLAME_HEIGHT

#define FIRE_PILLAR_FLAME_HEIGHT 37

Referenced by btEffectRunVolcano().

Definition at line 539 of file battle_effect_internal.h.

SPIRAL_WIDTH

#define SPIRAL_WIDTH 32

SpiralSheet's pictures.

Referenced by btEffectRunUnusedOrbitingSpirals().

Definition at line 541 of file battle_effect_internal.h.

SPIRAL_HEIGHT

#define SPIRAL_HEIGHT 32

Referenced by btEffectRunUnusedOrbitingSpirals().

Definition at line 542 of file battle_effect_internal.h.

CARD_WIDTH

#define CARD_WIDTH 32

A card's picture, as the Sleep, Baffle, Death and Sword Cards and the Bramble, Frost, Flame and Thunder Cards draw it.

Referenced by btEffectRunCards().

Definition at line 545 of file battle_effect_internal.h.

CARD_HEIGHT

#define CARD_HEIGHT 64

Referenced by btEffectRunCards().

Definition at line 546 of file battle_effect_internal.h.

SHEEP_WIDTH

#define SHEEP_WIDTH 32

SheepCardSheet's sheep, four pictures of it tumbling after its card.

Referenced by btEffectRunCards() and btEffectRunSleep().

Definition at line 548 of file battle_effect_internal.h.

SHEEP_HEIGHT

#define SHEEP_HEIGHT 32

Referenced by btEffectRunCards() and btEffectRunSleep().

Definition at line 549 of file battle_effect_internal.h.

FLAMEBALL_WIDTH

#define FLAMEBALL_WIDTH 40

FlameballSheet and FireballSheet's pictures.

Referenced by btEffectRunCastingImpact(), btEffectRunJupiter(), btEffectRunLeapingStrike() and btEffectRunProjectileVolley().

Definition at line 552 of file battle_effect_internal.h.

FLAMEBALL_HEIGHT

#define FLAMEBALL_HEIGHT 64

Referenced by btEffectRunCastingImpact(), btEffectRunJupiter(), btEffectRunLeapingStrike() and btEffectRunProjectileVolley().

Definition at line 553 of file battle_effect_internal.h.

RUNE_HALF_WIDTH

#define RUNE_HALF_WIDTH 24

Each half of RuneSheet's rune, the second drawn mirrored.

Referenced by btEffectRunBind(), btEffectRunCastingImpact(), btEffectRunDjinniSign(), btEffectRunTwistingColumn(), btEffectRunUnusedTriangleStrike() and btEffectRunVoidBeam().

Definition at line 556 of file battle_effect_internal.h.

RUNE_HALF_HEIGHT

#define RUNE_HALF_HEIGHT 48

Referenced by btEffectRunBind(), btEffectRunCastingImpact(), btEffectRunDjinniSign(), btEffectRunTwistingColumn(), btEffectRunUnusedTriangleStrike() and btEffectRunVoidBeam().

Definition at line 557 of file battle_effect_internal.h.

RUNE_TEXTURE_SIZE

#define RUNE_TEXTURE_SIZE 64

The 64x64 texture Flash Force and Void Beam build: the rune's two halves side by side, the second mirrored, eight pixels in from the top left.

Referenced by btEffectRunCastingImpact(), btEffectRunDjinniSign(), btEffectRunTwistingColumn() and btEffectRunVoidBeam().

Definition at line 560 of file battle_effect_internal.h.

RUNE_TEXTURE_RUNE

#define RUNE_TEXTURE_RUNE (8 * RUNE_TEXTURE_SIZE + 8)

Referenced by btEffectRunCastingImpact(), btEffectRunDjinniSign(), btEffectRunTwistingColumn() and btEffectRunVoidBeam().

Definition at line 561 of file battle_effect_internal.h.

DJINNI_WIDTH

#define DJINNI_WIDTH 40

A Djinni's picture: each frame of the full Djinn sprite sheets (VenusDjinnSheet and its kind), and the one picture of the small sprite sheets.

Referenced by btEffectRunBind(), btEffectRunDjinnBeams(), btEffectRunDjinniSign(), btEffectRunGaspFamily(), btEffectRunHealingMotes(), btEffectRunSerac(), btEffectRunStatBoost() and btEffectRunTumblingQuads().

Definition at line 566 of file battle_effect_internal.h.

DJINNI_HEIGHT

#define DJINNI_HEIGHT 40

Referenced by btEffectRunBind(), btEffectRunDjinnBeams(), btEffectRunDjinniSign(), btEffectRunGaspFamily(), btEffectRunHealingMotes(), btEffectRunSerac(), btEffectRunStatBoost() and btEffectRunTumblingQuads().

Definition at line 567 of file battle_effect_internal.h.

SMALL_DJINNI_WIDTH

#define SMALL_DJINNI_WIDTH 20

Referenced by btEffectRunBurstShower(), btEffectRunCrystal(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGround(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunMercury(), btEffectRunProjectileVolley(), btEffectRunTwistingColumn(), btEffectRunVenus() and btEffectRunWindFunnel().

Definition at line 568 of file battle_effect_internal.h.

SMALL_DJINNI_HEIGHT

#define SMALL_DJINNI_HEIGHT 40

Referenced by btEffectRunBurstShower(), btEffectRunCrystal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGround(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunProjectileVolley(), btEffectRunTwistingColumn() and btEffectRunWindFunnel().

Definition at line 569 of file battle_effect_internal.h.

SMOKE_PUFF_WIDTH

#define SMOKE_PUFF_WIDTH 24

The pictures of the sprite sheets several effects share, each sprite sheet's pictures all one size: SmokeSheet's puffs, FlashBurstSheet's bursts, SkullSheet's skulls and the tornado strips after TornadoSheet's glints.

Referenced by btEffectRunBackstab(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunElementCards(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunHurricane(), btEffectRunLobbedShells(), btEffectRunProjectileVolley(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunTargetStrike() and btEffectRunWaterSheet().

Definition at line 574 of file battle_effect_internal.h.

SMOKE_PUFF_HEIGHT

#define SMOKE_PUFF_HEIGHT 48

Referenced by btEffectRunBackstab(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunElementCards(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunHurricane(), btEffectRunLobbedShells(), btEffectRunProjectileVolley(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunTargetStrike() and btEffectRunWaterSheet().

Definition at line 575 of file battle_effect_internal.h.

SMOKE_PUFF_TICKS

#define SMOKE_PUFF_TICKS (6 * 4)

A puff of SmokeSheet's lives through its six pictures, four ticks each.

Referenced by btEffectRunBackstab(), btEffectRunElementCards(), btEffectRunGaspFamily(), btEffectRunHurricane(), btEffectRunProjectileVolley() and btEffectRunTargetStrike().

Definition at line 577 of file battle_effect_internal.h.

FLASH_BURST_WIDTH

#define FLASH_BURST_WIDTH 32

Referenced by btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinniCharge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunFallingSword(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunLeapingStrike(), btEffectRunMegaera(), btEffectRunMoloch(), btEffectRunOceanFist(), btEffectRunPlumeEdge(), btEffectRunRagingHeat(), btEffectRunRagnarok(), btEffectRunRisingDragonEnemy(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunSparkGroups(), btEffectRunStarMine(), btEffectRunTargetStrike(), btEffectRunTrident() and btEffectRunTwistingColumn().

Definition at line 578 of file battle_effect_internal.h.

FLASH_BURST_HEIGHT

#define FLASH_BURST_HEIGHT 64

Referenced by btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinniCharge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunFallingSword(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunLeapingStrike(), btEffectRunMegaera(), btEffectRunMoloch(), btEffectRunOceanFist(), btEffectRunPlumeEdge(), btEffectRunRagingHeat(), btEffectRunRagnarok(), btEffectRunRisingDragonEnemy(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunSparkGroups(), btEffectRunStarMine(), btEffectRunTargetStrike(), btEffectRunTrident() and btEffectRunTwistingColumn().

Definition at line 579 of file battle_effect_internal.h.

FLASH_BURST_PICTURE_COUNT

#define FLASH_BURST_PICTURE_COUNT 6

FlashBurstSheet's six pictures: a white flash turning to a fireball that burns out to embers.

Referenced by btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunFormChange(), btEffectRunRisingDragonEnemy(), btEffectRunStarMine() and btEffectRunTwistingColumn().

Definition at line 582 of file battle_effect_internal.h.

BLUE_BUBBLE_WIDTH

#define BLUE_BUBBLE_WIDTH 24

BlueBeamSheet: a blue bubble, a small splash of blue light the bubble's size, then a large splash.

Referenced by btEffectRunBurstShower(), btEffectRunDouse() and btEffectRunProjectileVolley().

Definition at line 585 of file battle_effect_internal.h.

BLUE_BUBBLE_HEIGHT

#define BLUE_BUBBLE_HEIGHT 24

Referenced by btEffectRunBurstShower(), btEffectRunDouse() and btEffectRunProjectileVolley().

Definition at line 586 of file battle_effect_internal.h.

BLUE_LARGE_SPLASH_WIDTH

#define BLUE_LARGE_SPLASH_WIDTH 42

Referenced by btEffectRunDouse().

Definition at line 587 of file battle_effect_internal.h.

BLUE_LARGE_SPLASH_HEIGHT

#define BLUE_LARGE_SPLASH_HEIGHT 42

Referenced by btEffectRunDouse().

Definition at line 588 of file battle_effect_internal.h.

CLOUD_PUFF_WIDTH

#define CLOUD_PUFF_WIDTH 32

BlueCloudPuffSheet: four 32x32 puffs of cloud.

Referenced by btEffectRunCards() and btEffectRunSerac().

Definition at line 590 of file battle_effect_internal.h.

CLOUD_PUFF_HEIGHT

#define CLOUD_PUFF_HEIGHT 32

Referenced by btEffectRunCards() and btEffectRunSerac().

Definition at line 591 of file battle_effect_internal.h.

SKULL_WIDTH

#define SKULL_WIDTH 24

Referenced by btEffectRunCastingImpact(), btEffectRunHaunt() and btEffectRunHelmSplitter().

Definition at line 592 of file battle_effect_internal.h.

SKULL_HEIGHT

#define SKULL_HEIGHT 24

Referenced by btEffectRunCastingImpact(), btEffectRunHaunt() and btEffectRunHelmSplitter().

Definition at line 593 of file battle_effect_internal.h.

TORNADO_STRIP_WIDTH

#define TORNADO_STRIP_WIDTH 40

Referenced by btEffectRunCastingImpact() and btEffectRunWhirlwind().

Definition at line 594 of file battle_effect_internal.h.

TORNADO_STRIP_HEIGHT

#define TORNADO_STRIP_HEIGHT 32

Referenced by btEffectRunCastingImpact() and btEffectRunWhirlwind().

Definition at line 595 of file battle_effect_internal.h.

DAGGER_WIDTH

#define DAGGER_WIDTH 24

The pictures of DaggerSheet, ShieldSheet, GlowOrbSheet, VioletStreakSheet and WispSheet.

Referenced by btEffectRunCards(), btEffectRunStatBoost() and btEffectRunStatReduction().

Definition at line 598 of file battle_effect_internal.h.

DAGGER_HEIGHT

#define DAGGER_HEIGHT 40

Referenced by btEffectRunCards(), btEffectRunStatBoost() and btEffectRunStatReduction().

Definition at line 599 of file battle_effect_internal.h.

SHIELD_WIDTH

#define SHIELD_WIDTH 40

Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().

Definition at line 600 of file battle_effect_internal.h.

SHIELD_HEIGHT

#define SHIELD_HEIGHT 40

Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().

Definition at line 601 of file battle_effect_internal.h.

GLOW_ORB_WIDTH

#define GLOW_ORB_WIDTH 40

Referenced by btEffectRunDjinniCharge(), btEffectRunMars(), btEffectRunStatBoost() and btEffectRunTargetMotes().

Definition at line 602 of file battle_effect_internal.h.

GLOW_ORB_HEIGHT

#define GLOW_ORB_HEIGHT 40

Referenced by btEffectRunDjinniCharge(), btEffectRunMars(), btEffectRunStatBoost() and btEffectRunTargetMotes().

Definition at line 603 of file battle_effect_internal.h.

VIOLET_STREAK_WIDTH

#define VIOLET_STREAK_WIDTH 32

Referenced by btEffectRunStatBoost().

Definition at line 604 of file battle_effect_internal.h.

VIOLET_STREAK_HEIGHT

#define VIOLET_STREAK_HEIGHT 64

Referenced by btEffectRunStatBoost().

Definition at line 605 of file battle_effect_internal.h.

WISP_WIDTH

#define WISP_WIDTH 64

Referenced by btEffectRunAzul() and btEffectRunStatBoost().

Definition at line 606 of file battle_effect_internal.h.

WISP_HEIGHT

#define WISP_HEIGHT 32

Referenced by btEffectRunStatBoost().

Definition at line 607 of file battle_effect_internal.h.

VORTEX_WIDTH

#define VORTEX_WIDTH 24

VortexSheet's six pictures and HeartSheet's heart.

Definition at line 609 of file battle_effect_internal.h.

VORTEX_HEIGHT

#define VORTEX_HEIGHT 48

Definition at line 610 of file battle_effect_internal.h.

HEART_WIDTH

#define HEART_WIDTH 22

Referenced by btEffectRunBurstShower() and btEffectRunTargetMotes().

Definition at line 611 of file battle_effect_internal.h.

HEART_HEIGHT

#define HEART_HEIGHT 42

Referenced by btEffectRunBurstShower() and btEffectRunTargetMotes().

Definition at line 612 of file battle_effect_internal.h.

WATER_WAVE_WIDTH

#define WATER_WAVE_WIDTH 32

WaterSpraySheet: the wave, then the splash's pictures.

Referenced by btEffectRunHail(), btEffectRunNeptune(), btEffectRunNereid() and btEffectRunNereidCopy().

Definition at line 614 of file battle_effect_internal.h.

WATER_WAVE_HEIGHT

#define WATER_WAVE_HEIGHT 32

Referenced by btEffectRunHail(), btEffectRunNeptune(), btEffectRunNereid() and btEffectRunNereidCopy().

Definition at line 615 of file battle_effect_internal.h.

WATER_SPLASH_WIDTH

#define WATER_SPLASH_WIDTH 48

Referenced by btEffectRunNeptune().

Definition at line 616 of file battle_effect_internal.h.

WATER_SPLASH_HEIGHT

#define WATER_SPLASH_HEIGHT 48

Referenced by btEffectRunNeptune().

Definition at line 617 of file battle_effect_internal.h.

BATTLE_EFFECT_STATE_SIZE

#define BATTLE_EFFECT_STATE_SIZE 31612

The bytes an effect's state is lent: more than struct BATTLE_EFFECT_STATE holds.

Referenced by btEffectRunBackgroundFadeIn(), btEffectRunByIdRange(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFormChange(), btEffectRunFromTable(), btEffectRunShatteringOpening() and btEffectRunSummon().

Definition at line 621 of file battle_effect_internal.h.

MOTE_SET_BYTES

#define MOTE_SET_BYTES 770

The bytes of one set of the ten mote pictures: 2 * (1 + 4 + ... + 100).

Referenced by btEffectRunCharon(), btEffectRunEruption(), btEffectRunFromTable(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunStarfieldFall(), btEffectRunSummon(), btEffectRunSwirlingStars(), btEffectRunThor(), btEffectRunVoidBeam(), btIrisDrawDrop() and btIrisDrawSplash().

Definition at line 624 of file battle_effect_internal.h.

DIMMED_COPIES

#define DIMMED_COPIES 8

A picture's dimmed copies: DIMMED_COPIES of it, copy i with every level capped at DIMMED_COPY_CAP(i), 7 levels lower than the copy before, copy 0 not at all. Thor's ring darkens through copies of the mote pictures, a stat reduction's shards through copies of the shard.

Referenced by btEffectRunCards(), btEffectRunStatReduction() and btEffectRunThor().

Definition at line 629 of file battle_effect_internal.h.

DIMMED_COPY_CAP

#define DIMMED_COPY_CAP(copy) (CANVAS_LEVEL_BRIGHTEST + 1 - (copy) * 7)

Referenced by btEffectRunStatReduction() and btEffectRunThor().

Definition at line 630 of file battle_effect_internal.h.

EFFECT_CAP_LEVEL

#define EFFECT_CAP_LEVEL(level, cap)

Caps a colour level at cap, and at 0 from below.

Referenced by btEffectRunStatReduction() and btEffectRunThor().

Definition at line 632 of file battle_effect_internal.h.

FLARE_SET_BYTES

#define FLARE_SET_BYTES 1540

The bytes of BlueGlowSheet's ten flare pictures, 2 to 20 pixels square: 4 * (1 + 4 + ... + 100).

Definition at line 641 of file battle_effect_internal.h.

BATTLE_SHEET_BYTES

#define BATTLE_SHEET_BYTES (FLARE_SET_BYTES + 10)

The battle sheet (HEAP_SLOT_BATTLE_SHEET) the casting impacts, the plain attacks and Cruel Ruin decode their glows into: room for BlueGlowSheet's flares, the largest of them, with ten bytes to spare.

Referenced by btEffectRunByIdRange() and btEffectRunElementBurst().

Definition at line 645 of file battle_effect_internal.h.

MOTE_PICTURES

#define MOTE_PICTURES 10

Referenced by btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunDragonFire(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunIris(), btEffectRunNereid() and btEffectRunNereidCopy().

Definition at line 646 of file battle_effect_internal.h.

STRIKE_KIND_SLASH

#define STRIKE_KIND_SLASH 0

The two kinds of target strike (TargetStrikeStyles).

sideways slashes

Referenced by btEffectRunTargetStrike().

Definition at line 661 of file battle_effect_internal.h.

STRIKE_KIND_BITE

#define STRIKE_KIND_BITE

Referenced by btEffectRunTargetStrike().

Definition at line 662 of file battle_effect_internal.h.

STRIKE_SMOKE

#define STRIKE_SMOKE 1

A target strike style's extras.

each hit raises smoke puffs from the target's feet

Referenced by btEffectRunTargetStrike().

Definition at line 667 of file battle_effect_internal.h.

STRIKE_ABSORB

#define STRIKE_ABSORB 2

motes fly out of the target and back into the user

Referenced by btEffectRunTargetStrike().

Definition at line 668 of file battle_effect_internal.h.

STRIKE_GLINTS

#define STRIKE_GLINTS 4

glints sparkle around the target

Referenced by btEffectRunTargetStrike().

Definition at line 669 of file battle_effect_internal.h.

STRIKE_SPARKS

#define STRIKE_SPARKS 8

each hit scatters sparks

Referenced by btEffectRunTargetStrike().

Definition at line 670 of file battle_effect_internal.h.

STRIKE_HEAVY

#define STRIKE_HEAVY 16

one heavy hit: a big shake and the target recoils

Referenced by btEffectRunTargetStrike().

Definition at line 671 of file battle_effect_internal.h.

STRIKE_FLASH

#define STRIKE_FLASH 32

as heavy, with flash pictures for the smoke

Referenced by btEffectRunTargetStrike().

Definition at line 672 of file battle_effect_internal.h.

STRIKE_STAR

#define STRIKE_STAR 64

a star swells on the target

Referenced by btEffectRunTargetStrike().

Definition at line 673 of file battle_effect_internal.h.

STRIKE_COLOR_BLUE

#define STRIKE_COLOR_BLUE 0

The palettes a target strike's background takes (TARGET_STRIKE_COLOR).

BlueBeamSheet's

Referenced by btEffectRunTargetStrike().

Definition at line 676 of file battle_effect_internal.h.

STRIKE_COLOR_LIME

#define STRIKE_COLOR_LIME 1

LimePalette

Referenced by btEffectRunTargetStrike().

Definition at line 677 of file battle_effect_internal.h.

STRIKE_COLOR_PINK

#define STRIKE_COLOR_PINK 2

PinkPalette

Referenced by btEffectRunTargetStrike().

Definition at line 678 of file battle_effect_internal.h.

STRIKE_COLOR_EMBER

#define STRIKE_COLOR_EMBER 3

EmberStreakSheet's

Referenced by btEffectRunTargetStrike().

Definition at line 679 of file battle_effect_internal.h.

STRIKE_COLOR_MARS

#define STRIKE_COLOR_MARS 4

MarsDjinnSheet's

Referenced by btEffectRunTargetStrike().

Definition at line 680 of file battle_effect_internal.h.

STRIKE_COLOR_LIGHTNING

#define STRIKE_COLOR_LIGHTNING 5

LightningBoltSheet's

Referenced by btEffectRunTargetStrike().

Definition at line 681 of file battle_effect_internal.h.

STRIKE_COLOR_ORANGE

#define STRIKE_COLOR_ORANGE 6

OrangePaletteB

Referenced by btEffectRunTargetStrike().

Definition at line 682 of file battle_effect_internal.h.

EFFECT_WIN0_LAYERS

#define EFFECT_WIN0_LAYERS

Window 0 shows the battle view: BG0 to BG2, the sprites and blending.

Referenced by btEffectConfigureEffectDisplay(), btEffectOpenCanvasLayer(), btEffectRunBackgroundFadeIn(), btEffectRunBoreas(), btEffectRunCharon(), btEffectRunDaedalusStrike(), btEffectRunDouse(), btEffectRunGeode(), btEffectRunIce(), btEffectRunKirin(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunRamses(), btEffectRunShatteringOpening(), btEffectRunTrident(), btEffectRunVengeance(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer() and btEffectStartElementStreaks().

Definition at line 713 of file battle_effect_internal.h.

EFFECT_WINOUT

#define EFFECT_WINOUT (WINOUT_WIN01_BG0 | WINOUT_WIN01_CLR | WINOUT_WINOBJ_ALL)

Outside the battle view: BG0 and blending only.

Referenced by btEffectConfigureEffectDisplay(), btEffectRunBackgroundFadeIn(), btEffectRunShatteringOpening() and btEffectRunTrident().

Definition at line 718 of file battle_effect_internal.h.

EFFECT_START_NARROW_CANVAS

#define EFFECT_START_NARROW_CANVAS(bgControl)

Opens the canvas layer at its own width: BG2 shows it one pixel a pixel.

Referenced by btEffectRunAtalanta(), btEffectRunBladeRain(), btEffectRunCatastrophe(), btEffectRunCool(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDouse(), btEffectRunFrost(), btEffectRunGrowingColumns(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunMeteorBlow(), btEffectRunQuake(), btEffectRunSleep(), btEffectRunSpiderWeb(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStatReduction(), btEffectRunStoneJustice(), btEffectRunSwirlSwipe(), btEffectRunThor(), btEffectRunThorn(), btEffectRunUndeadSword(), btEffectRunUnusedOrbitingSpirals() and btEffectRunUnusedTriangleStrike().

Definition at line 721 of file battle_effect_internal.h.

EFFECT_STRIKE_TARGET

#define EFFECT_STRIKE_TARGET(effect, i, ticks, motion)

Strikes target i: it flashes white in its damage pose and is knocked back by motion.

Referenced by btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBolt(), btEffectRunCool(), btEffectRunDjinniCharge(), btEffectRunDragonCloud(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunGaspFamily(), btEffectRunGround(), btEffectRunHail(), btEffectRunHelmSplitter(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunMercury(), btEffectRunNeptune(), btEffectRunRagnarok(), btEffectRunRushingStrike(), btEffectRunSparkGroups(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunVenus() and btEffectRunWhirlwind().

Definition at line 726 of file battle_effect_internal.h.

EFFECT_CLIP_BOUNDS

#define EFFECT_CLIP_BOUNDS (COMPOSITE_CLIP_X | COMPOSITE_CLIP_Y)

A blitter that clips its rectangles to the canvas.

Referenced by btCanvasBlitMirroredQuarters(), btEffectBuildCanvasBlitters(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare() and 76 more.

Definition at line 732 of file battle_effect_internal.h.

ALT_BLITTER

#define ALT_BLITTER (RamHeapSlots->ramCodePaired)

The second blitter, the drawing function in the paired heap slot.

Referenced by btEffectRunCastingImpact(), btEffectRunCruelRuin() and btEffectRunTargetStrike().

Definition at line 735 of file battle_effect_internal.h.

EFFECT_LOAD_BLITTER

#define EFFECT_LOAD_BLITTER(slot, flags, mode)

Builds a blitter for the canvas in heap slot slot, for one clip, mirror and blend mode (BLITTER_ADDITIVE to BLITTER_COPY): where both are constants they go packed into one word to btEffectLoadBlitter, the shorter call, and otherwise to btEffectBuildBlitter as they are, as every glint draw and mirrored pair that picks its flags or its mode at run time needs.

Referenced by btCanvasBlitMirroredQuarters(), btEffectBuildCanvasBlitters(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire() and 78 more.

Definition at line 742 of file battle_effect_internal.h.

EFFECT_SET_TRANSFER

#define EFFECT_SET_TRANSFER(state, mode, value)

Sets what the canvas transfer leaves in the canvas after each copy.

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBoreas(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementCards(), btEffectRunFlora(), btEffectRunFormChange(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunHaures(), btEffectRunHeavyBlow(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunJuggle(), btEffectRunKirin(), btEffectRunLiquifier(), btEffectRunLobbedShells(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunMirroredWall(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunOdyssey(), btEffectRunPrism(), btEffectRunProjectileVolley(), btEffectRunRamses() and 12 more.

Definition at line 748 of file battle_effect_internal.h.

EFFECT_START_TRANSFER

#define EFFECT_START_TRANSFER(state, mode, value)

Sets the transfer, then starts copying the canvas to VRAM once a tick.

Referenced by btEffectRunAttackSlash(), btEffectRunBackgroundFadeIn(), btEffectRunBind(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDaedalusStrike(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHeartbreak(), btEffectRunHurricane(), btEffectRunImpactBurst(), btEffectRunIris(), btEffectRunJupiter(), btEffectRunLegend(), btEffectRunLifeShear(), btEffectRunLightSurge(), btEffectRunLiquifier(), btEffectRunMars() and 56 more.

Definition at line 752 of file battle_effect_internal.h.

EFFECT_PRESENT_CANVAS

#define EFFECT_PRESENT_CANVAS(state) ((state)->transferPending = 1, sySynch(1))

Presents the canvas and waits for the next tick.

Referenced by btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBind(), btEffectRunBoreas(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCloudSwirl(), btEffectRunCoatlicue(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCurse(), btEffectRunDaedalus(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunEclipse(), btEffectRunFirePuppet(), btEffectRunFlora(), btEffectRunFrost(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunRisingDragon(), btEffectRunRisingDragonEnemy(), btEffectRunSleep(), btEffectRunStarfieldFall(), btEffectRunStatReduction(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunThor(), btEffectRunUlysses(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike(), btEffectRunVengeance(), btEffectRunZagan(), btEffectWipeCanvas() and btIrisWipeScreen().

Definition at line 757 of file battle_effect_internal.h.

WAIT_TRANSFER

#define WAIT_TRANSFER(state)

Waits until a VBlank has passed since the one that last copied the canvas. DEAD: each test reads the count twice and drops the first read; the ROM keeps both loads.

Referenced by btEffectRunCruelRuin() and btEffectRunGaspFamily().

Definition at line 762 of file battle_effect_internal.h.

EFFECT_END_TICK

#define EFFECT_END_TICK(state)

The usual end of an effect's tick: counts down the targets' flash timers, then presents the canvas.

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCrystal(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDiamondBerg(), btEffectRunDjinniCharge(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGeode(), btEffectRunGeyser(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt() and 72 more.

Definition at line 767 of file battle_effect_internal.h.

EFFECT_RELEASE_BLITTERS

#define EFFECT_RELEASE_BLITTERS()

Frees the two blitters, the second first.

Referenced by btEffectRunAnnihilation(), btEffectRunAttackSlash(), btEffectRunBackgroundFadeIn(), btEffectRunBind(), btEffectRunBoreas(), btEffectRunBreaths(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGeyser(), btEffectRunHaunt(), btEffectRunHeartbreak(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunJuggle(), btEffectRunLobbedShells(), btEffectRunMegaera(), btEffectRunMoloch(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunSoulShatter(), btEffectRunStatBoost(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunUlysses(), btEffectRunUndeadSword(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike(), btEffectRunVoidBeam(), btEffectRunVolcano(), btEffectRunWhirlwind() and btEffectRunZagan().

Definition at line 771 of file battle_effect_internal.h.

EFFECT_FINISH_CANVAS

#define EFFECT_FINISH_CANVAS()

The usual end of a canvas effect: the transfer, the blitters, then the canvas layer.

Referenced by btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBladeRain(), btEffectRunCastingImpact(), btEffectRunDaedalus(), btEffectRunDjinnHeal(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunFallingSword(), btEffectRunFroth(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunJupiter(), btEffectRunLiquifier(), btEffectRunMars(), btEffectRunMercury(), btEffectRunNeptune(), btEffectRunOceanFist(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunRagingHeat(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunSerac(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunStarMine(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunThorn(), btEffectRunTorch(), btEffectRunVengeance(), btEffectRunVenus() and btEffectRunVine().

Definition at line 777 of file battle_effect_internal.h.

EFFECT_FINISH_CANVAS_ONE_BLITTER

#define EFFECT_FINISH_CANVAS_ONE_BLITTER()

The same for an effect that drew through one blitter.

Referenced by btEffectRunBallLightning(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunCards(), btEffectRunCatastrophe(), btEffectRunCrescentSlash(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementCards(), btEffectRunEruption(), btEffectRunFlora(), btEffectRunGround(), btEffectRunHaures(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLeapingStrike(), btEffectRunLegend(), btEffectRunLifeShear(), btEffectRunLightSurge(), btEffectRunMegiddo(), btEffectRunNirvana(), btEffectRunOdyssey(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRadiantFire(), btEffectRunSpire(), btEffectRunStoneJustice(), btEffectRunSwirlSwipe() and btEffectRunWhiplash().

Definition at line 783 of file battle_effect_internal.h.

MOTE_SIZE_MAX

#define MOTE_SIZE_MAX 10

The largest of the ten mote pictures.

Referenced by btEffectRunAstralBlast() and btEffectRunKirin().

Definition at line 789 of file battle_effect_internal.h.

EFFECT_DRAW_MOTE

#define EFFECT_DRAW_MOTE(draw, canvas, sheet, x, y, size)

Draws mote picture size (1 to MOTE_SIZE_MAX: size pixels wide, twice that tall), centred across x and standing on y.

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDrainMotes(), btEffectRunElementCards(), btEffectRunFire(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunHaures(), btEffectRunHealingMotes(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLegend(), btEffectRunLiquifier(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunOceanFist(), btEffectRunPlasma(), btEffectRunPlumeEdge(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRagingHeat(), btEffectRunRay(), btEffectRunShiningStar(), btEffectRunSparkGroups(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunTripleChomp(), btEffectRunTwistingColumn(), btEffectRunVenus(), btEffectRunVolcano(), btEffectRunWhiplash() and btEffectRunWyrdCurse().

Definition at line 792 of file battle_effect_internal.h.

EFFECT_FREE_PARTICLES

#define EFFECT_FREE_PARTICLES(i, particles, count)

Marks particles[0] to particles[count - 1] free: a particle whose variant is -1 is not drawn or moved until an effect gives it a life.

Referenced by btEffectRunBolt(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCards(), btEffectRunCharon(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunElementCards(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunHurricane(), btEffectRunJupiter(), btEffectRunLegend(), btEffectRunLightSurge(), btEffectRunLiquifier(), btEffectRunLobbedShells(), btEffectRunMercury(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunOceanFist(), btEffectRunOdyssey(), btEffectRunPlumeEdge(), btEffectRunRagingHeat(), btEffectRunRamses(), btEffectRunRisingDragon(), btEffectRunStarfieldFall(), btEffectRunStarMine(), btEffectRunThorn() and btEffectRunVenus().

Definition at line 802 of file battle_effect_internal.h.

EFFECT_SHOW_WIDE_CANVAS

#define EFFECT_SHOW_WIDE_CANVAS(top)

Shows the canvas stretched to twice its width, top sixteenths of its colour added over what lies under it.

Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunEclipse(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunRamses() and btEffectRunThor().

Definition at line 808 of file battle_effect_internal.h.

CANVAS_WAVE_BG2X

#define CANVAS_WAVE_BG2X(sway) ((sway) >> 10)

A line's 16.16 sideways sway as its BG2X value in state->bg2xLines, which the wave HBlank DMA writes line by line. BG2X counts 256ths of a canvas pixel, so a sway of toFIXED(n) moves the line n / 4 canvas pixels: n / 2 screen pixels where the canvas is shown at twice its width.

Referenced by btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunHaunt(), btEffectRunStreakVolley(), btEffectRunTargetMotes(), btEffectRunTorch() and btEffectRunUnusedOrbitingSpirals().

Definition at line 818 of file battle_effect_internal.h.

EFFECT_SHOW_DAMAGE

#define EFFECT_SHOW_DAMAGE(hitSound) btPlaybackStartStub(hitSound)

Lets the battle show the damage, playing hitSound as the targets react: 0 keeps the one queued, and HIT_SOUND_NONE plays none where the effect has played its own. A second use changes nothing.

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementCards(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunFume(), btEffectRunGaia(), btEffectRunGaspFamily() and 84 more.

Definition at line 837 of file battle_effect_internal.h.

HIT_SOUND_NONE

#define HIT_SOUND_NONE (-1)

Referenced by btEffectRunBallLightning(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunDjinniSign(), btEffectRunGaspFamily(), btEffectRunMoteFountain(), btEffectRunSerac(), btEffectRunStreakVolley(), btEffectRunTumblingQuads() and btEffectRunWindFunnel().

Definition at line 838 of file battle_effect_internal.h.

TINT_KEEP

#define TINT_KEEP (-1)

Passed to btEffectTintBattler as its palette, pose or timer slot: leave that one as it is.

Referenced by btEffectCountDownBattlerTints(), btEffectRunAnnihilation(), btEffectRunBackgroundFadeIn(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunFlora(), btEffectRunFormChange(), btEffectRunFrost(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunHealingMotes(), btEffectRunHeavyBlow(), btEffectRunIris(), btEffectRunKirin(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunNirvana(), btEffectRunOdyssey(), btEffectRunPlumeEdge(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunSerac(), btEffectRunShatteringOpening(), btEffectRunSleep(), btEffectRunSoulShatter(), btEffectRunSpiderWeb(), btEffectRunStarfieldFall() and 10 more.

Definition at line 842 of file battle_effect_internal.h.

STAMP_TILES

#define STAMP_TILES(state)

The 64x64 stamp Haures draws in 256 colours: the VRAM address of its sprite's tiles, two words before the state's end, past what struct BATTLE_EFFECT_STATE names, and the picture drawn for them, the 4 KB before transferMode.

Referenced by btEffectProcessPendingStampTransfer() and btEffectRunHaures().

Definition at line 1025 of file battle_effect_internal.h.

STAMP_CANVAS

#define STAMP_CANVAS(state)

Referenced by btEffectProcessPendingStampTransfer() and btEffectRunHaures().

Definition at line 1028 of file battle_effect_internal.h.

THORN_MIRRORED

#define THORN_MIRRORED 1

A thorn's kind in ThornKinds.

drawn mirrored across

Referenced by btEffectRunThorn().

Definition at line 1537 of file battle_effect_internal.h.

THORN_SMALL

#define THORN_SMALL 2

32 pixels wide, not 48

Referenced by btEffectRunThorn().

Definition at line 1538 of file battle_effect_internal.h.

Enumerations in detail

MODEL_KIND

enum MODEL_KIND

RENDER_MODEL.kind: the rasterizer kernel btRenderDrawModelList copies into IWRAM to draw a model, and how it puts each pixel on the canvas. A solid model fills its faces with their colours; a textured one maps its texture; a shaded one adds the model's shade to each texel and skips those it leaves at 0 or below. The narrow kernels draw into a target half the canvas's width.

EnumeratorValueDescription
MODEL_ENDends the list
MODEL_SOLIDbtRenderSolidKernel: the colour replaces the canvas
MODEL_SOLID_MAXthe colour where it is brighter
MODEL_SOLID_ADDITIVEthe colour added, up to the brightest level
MODEL_TEXTURED_MAXthe texel where it is brighter
MODEL_TEXTURED_ADDITIVEthe texel added, up to the brightest level
MODEL_SHADED_MAXthe shaded texel where it is brighter
MODEL_SHADED_ADDITIVEthe shaded texel added, up to the brightest
MODEL_TEXTUREDthe texel replaces the canvas
MODEL_SHADEDthe shaded texel replaces the canvas
MODEL_TEXTURED_NARROWMODEL_TEXTURED into a narrow target
MODEL_SOLID_NARROWMODEL_SOLID into a narrow target

Definition at line 389 of file battle_effect_internal.h.

REAPER_SHEET_PICTURE

enum REAPER_SHEET_PICTURE

Where each picture starts in ReaperSheet, in bytes.

EnumeratorValueDescription
REAPER_SHEET_RAISED0
REAPER_SHEET_SWUNGREAPER_SHEET_RAISED + PICTURE_BYTES(REAPER_SHEET_RAISED)
REAPER_SHEET_CRESCENTREAPER_SHEET_SWUNG + PICTURE_BYTES(REAPER_SHEET_SWUNG)

Definition at line 443 of file battle_effect_internal.h.

RED_CRESCENT_PICTURE

enum RED_CRESCENT_PICTURE

Where each picture starts in RedCrescentSheetA, in bytes.

EnumeratorValueDescription
RED_CRESCENT_FADE_A0
RED_CRESCENT_FADE_BRED_CRESCENT_FADE_A + PICTURE_BYTES(RED_CRESCENT_FADE_A)
RED_CRESCENT_FADE_CRED_CRESCENT_FADE_B + PICTURE_BYTES(RED_CRESCENT_FADE_B)
RED_CRESCENT_FADE_DRED_CRESCENT_FADE_C + PICTURE_BYTES(RED_CRESCENT_FADE_C)

Definition at line 463 of file battle_effect_internal.h.

TARGET_STRIKE_COLUMN

enum TARGET_STRIKE_COLUMN

The columns of TargetStrikeStyles, one row a style.

EnumeratorValueDescription
TARGET_STRIKE_KINDSTRIKE_KIND_SLASH or STRIKE_KIND_BITE
TARGET_STRIKE_HITSslashes or bites
TARGET_STRIKE_FLAGSthe extras (STRIKE_SMOKE and on)
TARGET_STRIKE_COLORthe background's palette (STRIKE_COLOR_)
TARGET_STRIKE_PICTURE_TICKSticks each picture shows
TARGET_STRIKE_COMPOSITEthe bites' blitter mode
TARGET_STRIKE_TICKSthe effect's length

Definition at line 649 of file battle_effect_internal.h.

TARGET_STRIKE_STYLE

enum TARGET_STRIKE_STYLE

The target strike styles, rows of TargetStrikeStyles: The Broken Seal's twelve, then this game's own.

EnumeratorValueDescription
TARGET_STRIKE_STYLE_BLUE_SPARK_BITES
TARGET_STRIKE_STYLE_LIME_SMOKE_BITE
TARGET_STRIKE_STYLE_PINK_SMOKE_BITES
TARGET_STRIKE_STYLE_EMBER_DRAIN_BITES
TARGET_STRIKE_STYLE_MARS_DRAIN_BITES
TARGET_STRIKE_STYLE_LIGHTNING_GLINT_BITES
TARGET_STRIKE_STYLE_LIGHTNING_GLINT_SLASH
TARGET_STRIKE_STYLE_LIGHTNING_SPARK_SLASHES
TARGET_STRIKE_STYLE_MARS_HEAVY_SLASH
TARGET_STRIKE_STYLE_LIME_SMOKE_SLASH
TARGET_STRIKE_STYLE_MARS_SMOKE_BITE
TARGET_STRIKE_STYLE_MARS_ADDITIVE_DRAIN_BITES
TARGET_STRIKE_STYLE_LIGHTNING_FOUR_SPARK_SLASHES
TARGET_STRIKE_STYLE_LIGHTNING_EIGHT_SPARK_SLASHES
TARGET_STRIKE_STYLE_ORANGE_FLASH_GLINT_SLASH
TARGET_STRIKE_STYLE_MANEATERthe same row as TARGET_STRIKE_STYLE_MARS_ADDITIVE_DRAIN_BITES
TARGET_STRIKE_STYLE_ORANGE_FLASH_SPARK_SLASH
TARGET_STRIKE_STYLE_MARS_HEAVY_BITE
TARGET_STRIKE_STYLE_ORANGE_FLASH_BITE
TARGET_STRIKE_STYLE_MARS_STAR_SLASH
TARGET_STRIKE_STYLE_BLUE_SPARK_BITE

Definition at line 686 of file battle_effect_internal.h.

CANVAS_WIPE_DIRECTION

enum CANVAS_WIPE_DIRECTION

Which way btEffectWipeCanvas sweeps.

EnumeratorValueDescription
CANVAS_WIPE_DOWNtop to bottom
CANVAS_WIPE_ACROSSleft to right

Definition at line 821 of file battle_effect_internal.h.

CANVAS_FILL

enum CANVAS_FILL

What btEffectWipeCanvas leaves behind it.

EnumeratorValueDescription
CANVAS_WIPE_FILLcolour 1, which its callers make black first
CANVAS_WIPE_CLEARcolour 0: the canvas cleared

Definition at line 828 of file battle_effect_internal.h.

TUMBLING_QUADS_MODE

enum TUMBLING_QUADS_MODE

The tumbling quads' modes (btEffectRunTumblingQuads), each named for the effect that plays it.

EnumeratorValueDescription
TUMBLING_QUADS_BALMover a prepared canvas, with the Mercury Djinn
TUMBLING_QUADS_TINDERover a prepared canvas, with the Mars Djinn
TUMBLING_QUADS_PHOENIXrising from the first target

Definition at line 846 of file battle_effect_internal.h.

GASP_MODE

enum GASP_MODE

The gasp family's modes (btEffectRunGaspFamily), each named for the effect that plays it.

EnumeratorValueDescription
GASP_MODE_GASP
GASP_MODE_UNUSEDUnused: no wrapper passes it; a Mercury Djinni and a burst of light.
GASP_MODE_REFLUX
GASP_MODE_DJINN_COUNTER
GASP_MODE_MOLD
GASP_MODE_SHINE
GASP_MODE_LULL
GASP_MODE_COUNTER_RUSH
GASP_MODE_DEMON_EYE
GASP_MODE_EMU
GASP_MODE_CALL_DULLAHAN
GASP_MODE_BEAT_DANCE
GASP_MODE_ELEMENT_SWAP
GASP_MODE_CAGE
GASP_MODE_CLARION_CRY
GASP_MODE_PSY_BOOST

Definition at line 855 of file battle_effect_internal.h.

TWISTING_COLUMN_MODE

enum TWISTING_COLUMN_MODE

The twisting column's modes (btEffectRunTwistingColumn), each named for the effect that plays it.

EnumeratorValueDescription
TWISTING_COLUMN_WHORL
TWISTING_COLUMN_GALE
TWISTING_COLUMN_LETHE_ALBION
TWISTING_COLUMN_POISON_FLOW
TWISTING_COLUMN_RAGING_FLOOD

Definition at line 878 of file battle_effect_internal.h.

BALL_LIGHTNING_MODE

enum BALL_LIGHTNING_MODE

The ball lightning's modes (btEffectRunBallLightning).

EnumeratorValueDescription
BALL_LIGHTNING_THUNDER_MINE
BALL_LIGHTNING_EARTH_FORCE

Definition at line 888 of file battle_effect_internal.h.

DJINNI_CHARGE_MODE

enum DJINNI_CHARGE_MODE

The Djinni charge's modes (btEffectRunDjinniCharge).

EnumeratorValueDescription
DJINNI_CHARGE_CORE
DJINNI_CHARGE_CANNON

Definition at line 895 of file battle_effect_internal.h.

HEAVY_BLOW_MODE

enum HEAVY_BLOW_MODE

The heavy blow's modes (btEffectRunHeavyBlow).

EnumeratorValueDescription
HEAVY_BLOW_HEAVY_DIVIDE
HEAVY_BLOW_STRONG_HIT

Definition at line 902 of file battle_effect_internal.h.

DJINNI_SIGN_MODE

enum DJINNI_SIGN_MODE

The Djinni sign's modes (btEffectRunDjinniSign).

EnumeratorValueDescription
DJINNI_SIGN_RIME
DJINNI_SIGN_HAZE

Definition at line 909 of file battle_effect_internal.h.

CARD_KIND

enum CARD_KIND

The cards (btEffectRunCards).

EnumeratorValueDescription
CARD_SLEEPSleep Card: sheep jump from the card.
CARD_BAFFLEBaffle Card: butterflies, and the screen waves.
CARD_DEATHDeath Card: a skeleton reaps the target.
CARD_SWORDSword Card: a dagger strikes, and shards fly.

Definition at line 916 of file battle_effect_internal.h.

ELEMENT_CARD_KIND

enum ELEMENT_CARD_KIND

The element cards (btEffectRunElementCards).

EnumeratorValueDescription
CARD_BRAMBLEBramble Card: vines grow from the card.
CARD_FROSTFrost Card: the card throws crystal shards.
CARD_FLAMEFlame Card: the card throws smoke and flashes.
CARD_THUNDERThunder Card: bolts strike from the card.

Definition at line 925 of file battle_effect_internal.h.

BREATH_KIND

enum BREATH_KIND

The breaths (btEffectRunBreaths).

EnumeratorValueDescription
BREATH_BEAMBeam: a beam of fading rings.
BREATH_ROLLING_FLAMERolling Flame: a ball rolls to the target.
BREATH_PIKEGhost Soldier and Pike Assault.
BREATH_BLASTBlast Breath: a blast and a jet.

Definition at line 934 of file battle_effect_internal.h.

RUSHING_STRIKE_MODE

enum RUSHING_STRIKE_MODE

The rushing strike's sparks' palettes (btEffectRunRushingStrike), each named for the effect that first plays it; Bone Charge plays Stun Muscle's.

EnumeratorValueDescription
RUSHING_STRIKE_UNUSEDUnused: no wrapper passes it; the fire pillar's colours.
RUSHING_STRIKE_BRUTE_FORCE
RUSHING_STRIKE_ONSLAUGHT
RUSHING_STRIKE_HEADBUTT
RUSHING_STRIKE_STUN_MUSCLE
RUSHING_STRIKE_LIVING_ARMOR

Definition at line 944 of file battle_effect_internal.h.

MIRRORED_WALL_MODE

enum MIRRORED_WALL_MODE

The mirrored wall's modes (btEffectRunMirroredWall), each named for the effect that plays it.

EnumeratorValueDescription
MIRRORED_WALL_SPASMactual size, a gentle shake for 32 ticks
MIRRORED_WALL_BERSERKA ninth wider than Spasm's, a hard shake for 8 ticks
MIRRORED_WALL_RECOVERYA ninth wider than Spasm's, no shake, in the
MIRRORED_WALL_SACKFireball colours

Definition at line 957 of file battle_effect_internal.h.

SPARK_GROUPS_MODE

enum SPARK_GROUPS_MODE

Where btEffectRunSparkGroups' bursts go off.

EnumeratorValueDescription
SPARK_GROUPS_NOVANova's
SPARK_GROUPS_DYNAMITEDynamite's, orange
SPARK_GROUPS_RISINGbelow the user, in the LightningBolt colours, the sparks rising

Definition at line 968 of file battle_effect_internal.h.

CAMERA_PHASE

enum CAMERA_PHASE

state->cameraPhase, which btCameraApplyPhasedDelta and the effects that turn the camera through it (Fire, Froth) pass between them.

EnumeratorValueDescription
CAMERA_PHASE_IDLEnothing marked since the last turn
CAMERA_PHASE_TICK_DONEthe effect has finished a tick: turn the whole delta
CAMERA_PHASE_HALF_TURNEDhalf a delta turned on an unmarked tick

Definition at line 1048 of file battle_effect_internal.h.

FLURRY_MODE

enum FLURRY_MODE

btEffectRunFlurry's modes, by the abilities that play them: the rows of FlurryStyles. Gust and Flying Attack take one, two or three strikes as a double or triple blow raises their variant.

EnumeratorValueDescription
FLURRY_BEAR_CLAWfive strikes; also Ransack
FLURRY_BACTERIA_RUSHseven strikes, in lime
FLURRY_FREEBITE_RUSHnine strikes, in blue
FLURRY_FLYING_ATTACKone strike, in embers
FLURRY_FLYING_ATTACK_DOUBLEtwo
FLURRY_FLYING_ATTACK_TRIPLEthree
FLURRY_GUSTone strike, each filling the canvas
FLURRY_GUST_DOUBLEtwo
FLURRY_GUST_TRIPLEthree
FLURRY_UR_FLASHthree strikes, in the Mars Djinni's colours
FLURRY_CRUSHER_GRIPone strike, with glints
FLURRY_VANISH_CLAWone strike, with a ripple and smoke
FLURRY_CLAW_ATTACKone strike after a longer lunge, in embers

Definition at line 2029 of file battle_effect_internal.h.

FLURRY_ARC

enum FLURRY_ARC

A flurry's arcs, its FLURRY_ARC_SHEET.

EnumeratorValueDescription
FLURRY_ARCS_AND_WAVESblue arc A, with a wave for the third and fourth of every four strikes
FLURRY_ARCSblue arc B for every strike

Definition at line 2047 of file battle_effect_internal.h.

FLURRY_PAL

enum FLURRY_PAL

Whose palette a flurry takes, its FLURRY_PALETTE.

EnumeratorValueDescription
FLURRY_PALETTE_MARS_DJINNIthe Mars Djinni sprite sheet's
FLURRY_PALETTE_LIME
FLURRY_PALETTE_BLUE_ARC
FLURRY_PALETTE_EMBERthe ember streak sprite sheet's

Definition at line 2055 of file battle_effect_internal.h.

FLURRY_EXTRA_KIND

enum FLURRY_EXTRA_KIND

What else a flurry plays around its target, its FLURRY_EXTRA.

EnumeratorValueDescription
FLURRY_EXTRA_NONE
FLURRY_EXTRA_GLINTSthree glints a tick until tick 31
FLURRY_EXTRA_RIPPLEBG2 swings on a sine wave and smoke rises

Definition at line 2064 of file battle_effect_internal.h.

Functions in detail

btParticleAdvanceWithGravity3D

void btParticleAdvanceWithGravity3D(PARTICLE *step, Sint32 damping, Sint32 gravity)

advance_with_gravity.s

Referenced by btEffectRunAnnihilation(), btEffectRunAttackSlash(), btEffectRunAzul(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCoatlicue(), btEffectRunCriticalHit(), btEffectRunDaedalus(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDrainMotes(), btEffectRunEruption(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunHail(), btEffectRunHaures(), btEffectRunHeavyBlow(), btEffectRunLobbedShells(), btEffectRunMoteFountain(), btEffectRunNirvana(), btEffectRunOdyssey(), btEffectRunRushingStrike(), btEffectRunSabreDance(), btEffectRunSerac(), btEffectRunSoulShatter(), btEffectRunStarfieldFall(), btEffectRunStarMine(), btEffectRunStarSwarm(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunTargetStrike(), btEffectRunTwistingColumn() and btEffectRunWaterSheet().

Definition at line 1077 of file battle_effect_internal.h.

btColorBufferScaleStub

void btColorBufferScaleStub(void *src, void *dest, Sint32 scale, Sint32 count)

Functions of other modules the parts call, through their stub calls.

Referenced by btEffectDarkenBackgroundStep(), btEffectDimBackgroundStep(), btEffectRunAzul(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCruelRuin() and btEffectRunGeode().

Definition at line 1247 of file battle_effect_internal.h.

fdRenderApplyProjectedPlacementStub

void fdRenderApplyProjectedPlacementStub(SPR *sprite, Sint32 *pos, Sint32 *scale, Sint32 mode)

Referenced by btEffectPlaceFormationSprites(), btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunGaia(), btEffectRunHaures(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMegaera(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall(), btEffectRunTrident(), btEffectRunUlysses(), btEffectRunZagan(), btUlyssesFlutterFlake(), fdParticleDraw() and mnFileListPlacePartySprites().

Definition at line 1248 of file battle_effect_internal.h.

btMotionApplyKnockbackStub

void btMotionApplyKnockbackStub(Sint32 actor, Sint32 motion)

Knocks a unit back as the knockback variant (BATTLE_KNOCKBACK) says (btMotionApplyKnockback).

Referenced by btEffectRunAnnihilation(), btEffectRunAttackSlash(), btEffectRunBallLightning(), btEffectRunBreaths(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDiamondBerg(), btEffectRunDragonFire(), btEffectRunFlashingStrike(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGaspFamily(), btEffectRunGeyser(), btEffectRunHeavyBlow(), btEffectRunHurricane(), btEffectRunJuggle(), btEffectRunKirin(), btEffectRunLeapingStrike(), btEffectRunLifeShear(), btEffectRunLightSurge(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunPlasma(), btEffectRunPlumeEdge(), btEffectRunProjectileVolley(), btEffectRunRadiantFire(), btEffectRunRagingHeat(), btEffectRunRamses(), btEffectRunStreakVolley(), btEffectRunSwirlSwipe(), btEffectRunTargetMotes(), btEffectRunThor(), btEffectRunTorch(), btEffectRunUndeadSword(), btEffectRunVengeance(), btEffectRunVoidBeam(), btEffectRunVolcano(), btEffectRunWaterSheet(), btEffectRunWhiplash(), btEffectRunWyrdCurse(), btEffectRunZagan() and btIrisRestoreBattle().

Definition at line 1254 of file battle_effect_internal.h.

btCameraSetViewAtPairMidpointStub

void btCameraSetViewAtPairMidpointStub(Sint32 actor, Sint32 target, Sint32 ticks)

Turns the battle camera, over ticks ticks, to look at the point between two units.

Referenced by btEffectRunCriticalHit().

Definition at line 1262 of file battle_effect_internal.h.

btObjectSpawnObjectsForListStub

void btObjectSpawnObjectsForListStub(Sint16 *unitIds, Sint32 refreshPoses, Sint32 releaseOthers)

Spawns the battle objects of a list of units.

Referenced by btEffectRunAzul() and mnBattleStatusScreenRun().

Definition at line 1268 of file battle_effect_internal.h.

btPlaybackStartStub

void btPlaybackStartStub(Sint32 sound)

Starts playback of the action's targets as the blow lands, with sound as the hit's sound.

Definition at line 1273 of file battle_effect_internal.h.

btSpriteHasHeavyImpactStub

Sint32 btSpriteHasHeavyImpactStub(Sint32 enemyId)

Whether an enemy's sprite takes the heavy impact.

Referenced by btEffectRunAttackSlash().

Definition at line 1275 of file battle_effect_internal.h.

Variables in detail

MapGridMetatileBuffer

extern Uint8 MapGridMetatileBuffer[]

The map cell buffer at its own address, which the effects borrow: no map is loaded during a battle. Most of the parts draw into it.

Referenced by btEffectRunAstralBlast(), btEffectRunAzul(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunDaedalusStrike(), btEffectRunDiamondBerg(), btEffectRunDjinniCharge(), btEffectRunDouse(), btEffectRunEclipse(), btEffectRunFume(), btEffectRunGeode(), btEffectRunHaures(), btEffectRunIce(), btEffectRunIris(), btEffectRunLifeShear(), btEffectRunLightSurge(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunOceanFist(), btEffectRunOdyssey(), btEffectRunRisingDragon(), btEffectRunShiningStar(), btEffectRunTrident(), btEffectRunTwistingColumn(), btEffectRunUlysses(), btEffectRunWaterSheet(), btEffectRunWindFunnel(), fdActorUpdatePlayerControl(), fdEngineRun(), fdMapGridCheckCollision(), fdMapGridCheckCollisionAbove(), fdMapGridCheckCollisionAt(), fdMapGridCopyDrawnPicturesRect(), fdMapGridGetMetatileBehaviorAt(), fdPlaceTreasureSpots(), fdSpriteViewerRun(), fdSuperLuckyDiceRun(), fdTileMapConvertBuffer(), fdTileMapDecodeStagedBuffer(), fdTryJumpForward(), fdWorldMapInitPerspective(), scAnkohlRuinsFlowWithSand(), scMapFillLayerRectCollision(), scMapMetatileSetAttributes(), scMarsLighthouseEntranceCheckCrackedFloor() and 3 more.

Definition at line 2018 of file battle_effect_internal.h.

BlitterTemplate

extern const Uint32 BlitterTemplate[]

The template btEffectBuildBlitter walks word by word to write a blitter (blitter_template.s); none of it runs where it is.

Referenced by btEffectBuildBlitter().

Definition at line 2124 of file battle_effect_internal.h.

btRenderFillMeshKernel

extern const Uint8 btRenderFillMeshKernel[]

The model renderer's ARM functions, which run from IWRAM, each with its size in bytes (CodeSize) and, for three of them, in DMA words (CodeWords). btRenderFillMeshKernel is an ARM build of btRenderFillMesh, which btRenderRunFillMeshKernel runs; btRenderTransformKernel is the vertex transform btRenderTransformVertices runs.

Referenced by btRenderRunFillMeshKernel().

Definition at line 2175 of file battle_effect_internal.h.

btRenderFillMeshKernelCodeSize

extern Uint8 btRenderFillMeshKernelCodeSize[]

Referenced by btRenderRunFillMeshKernel().

Definition at line 2176 of file battle_effect_internal.h.

btRenderTransformKernel

extern const Uint8 btRenderTransformKernel[]

Referenced by btRenderTransformVertices().

Definition at line 2177 of file battle_effect_internal.h.

btRenderTransformKernelCodeSize

extern Uint8 btRenderTransformKernelCodeSize[]

Referenced by btRenderTransformVertices().

Definition at line 2178 of file battle_effect_internal.h.

btRenderSolidKernel

extern const Uint8 btRenderSolidKernel[]

MODEL_SOLID

Referenced by btRenderDrawModelList().

Definition at line 2184 of file battle_effect_internal.h.

btRenderSolidMaxKernel

extern const Uint8 btRenderSolidMaxKernel[]

MODEL_SOLID_MAX

Referenced by btRenderDrawModelList().

Definition at line 2186 of file battle_effect_internal.h.

btRenderSolidAdditiveKernel

extern const Uint8 btRenderSolidAdditiveKernel[]

MODEL_SOLID_ADDITIVE

Referenced by btRenderDrawModelList().

Definition at line 2188 of file battle_effect_internal.h.

btRenderTexturedKernel

extern const Uint8 btRenderTexturedKernel[]

MODEL_TEXTURED

Referenced by btRenderDrawModelList().

Definition at line 2190 of file battle_effect_internal.h.

btRenderTexturedMaxKernel

extern const Uint8 btRenderTexturedMaxKernel[]

MODEL_TEXTURED_MAX

Referenced by btRenderDrawModelList().

Definition at line 2192 of file battle_effect_internal.h.

btRenderTexturedAdditiveKernel

extern const Uint8 btRenderTexturedAdditiveKernel[]

MODEL_TEXTURED_ADDITIVE

Referenced by btRenderDrawModelList().

Definition at line 2194 of file battle_effect_internal.h.

btRenderShadedMaxKernel

extern const Uint8 btRenderShadedMaxKernel[]

MODEL_SHADED_MAX

Referenced by btRenderDrawModelList().

Definition at line 2196 of file battle_effect_internal.h.

btRenderShadedAdditiveKernel

extern const Uint8 btRenderShadedAdditiveKernel[]

MODEL_SHADED_ADDITIVE

Referenced by btRenderDrawModelList().

Definition at line 2198 of file battle_effect_internal.h.

btRenderShadedKernel

extern const Uint8 btRenderShadedKernel[]

MODEL_SHADED

Referenced by btRenderDrawModelList().

Definition at line 2200 of file battle_effect_internal.h.

btRenderTexturedNarrowKernel

extern const Uint8 btRenderTexturedNarrowKernel[]

MODEL_TEXTURED_NARROW

Referenced by btRenderDrawModelList().

Definition at line 2202 of file battle_effect_internal.h.

btRenderSolidNarrowKernel

extern const Uint8 btRenderSolidNarrowKernel[]

MODEL_SOLID_NARROW

Referenced by btRenderDrawModelList().

Definition at line 2204 of file battle_effect_internal.h.

btRenderSolidKernelCodeSize

extern Uint8 btRenderSolidKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2205 of file battle_effect_internal.h.

btRenderSolidMaxKernelCodeSize

extern Uint8 btRenderSolidMaxKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2206 of file battle_effect_internal.h.

btRenderSolidAdditiveKernelCodeSize

extern Uint8 btRenderSolidAdditiveKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2207 of file battle_effect_internal.h.

btRenderTexturedKernelCodeSize

extern Uint8 btRenderTexturedKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2208 of file battle_effect_internal.h.

btRenderTexturedMaxKernelCodeSize

extern Uint8 btRenderTexturedMaxKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2209 of file battle_effect_internal.h.

btRenderTexturedAdditiveKernelCodeSize

extern Uint8 btRenderTexturedAdditiveKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2210 of file battle_effect_internal.h.

btRenderShadedMaxKernelCodeSize

extern Uint8 btRenderShadedMaxKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2211 of file battle_effect_internal.h.

btRenderShadedAdditiveKernelCodeSize

extern Uint8 btRenderShadedAdditiveKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2212 of file battle_effect_internal.h.

btRenderShadedKernelCodeSize

extern Uint8 btRenderShadedKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2213 of file battle_effect_internal.h.

btRenderTexturedNarrowKernelCodeSize

extern Uint8 btRenderTexturedNarrowKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2214 of file battle_effect_internal.h.

btRenderSolidNarrowKernelCodeSize

extern Uint8 btRenderSolidNarrowKernelCodeSize[]

Referenced by btRenderDrawModelList().

Definition at line 2215 of file battle_effect_internal.h.

btRenderTexturedKernelCodeWords

extern Uint8 btRenderTexturedKernelCodeWords[]

Referenced by btRenderDrawModelList().

Definition at line 2216 of file battle_effect_internal.h.

btRenderShadedKernelCodeWords

extern Uint8 btRenderShadedKernelCodeWords[]

Referenced by btRenderDrawModelList().

Definition at line 2217 of file battle_effect_internal.h.

btRenderTexturedNarrowKernelCodeWords

extern Uint8 btRenderTexturedNarrowKernelCodeWords[]

Referenced by btRenderDrawModelList().

Definition at line 2218 of file battle_effect_internal.h.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailEFFECT_DISPCNTFIXED_INTEGER_PARTEFFECT_BLEND_ADDEFFECT_BLEND_CANVASCANVAS_BLEND_LEVELELEMENT_BLEND_LEVELELEMENT_SPIRAL_MOTESWINDOW_EDGE_RIGHTWINDOW_EDGE_INSETSWINDOW_EDGE_INSET_LINESWINDOW_EDGE_LINESPARTICLESEXTRA_PARTICLESOBJ_TILESDMA_CONTROL_HALFPARTICLE_POOL_COUNTNEREID_BURST_DROPSNEREID_DROPS_A_TICKMEGAERA_OBJECTSCANVAS_SIZECANVAS_TILESCANVAS_PIXEL_OFFSETCANVAS_TILE_BYTESOBJ_32X32_8BPP_BYTESOBJ_32X32_4BPP_BYTESOBJ_64X64_8BPP_BYTESOBJ_64X64_4BPP_BYTESOBJ_16X16_4BPP_BYTESCANVAS_ROW_OFFSETCANVAS_LEVEL_BRIGHTESTBATTLE_VIEW_TOPBATTLE_VIEW_HEIGHTBATTLE_VIEW_BOTTOMGRADIENT_BLUE_LINESGRADIENT_GREEN_LINESGRADIENT_RED_LINESEFFECT_WRITE_CANVAS_MAP_ROWSUMMON_OPENING_TICKSSUMMON_OPENING_LOAD_TICKEFFECT_SET_BATTLE_WINDOWSCANVAS_VIEW_BYTESNARROW_CANVAS_PARTY_XSUMMON_PROJECTION_CENTER_YBACKGROUND_DARKEN_TICKSBACKGROUND_DARKENED_LEVELSHEET_PALETTE_COLORSSHEET_PALETTE_BYTESLOAD_BG_PALETTEPARTICLE_DAMPING_NONEPICTURE_BYTESEFFECT_DRAW_PICTURETARGET_STRIKE_BITE_YTARGET_STRIKE_BITE_WIDTHTARGET_STRIKE_BITE_HEIGHTBATTLE_BACKGROUND_WIDTHBATTLE_BACKGROUND_HEIGHTBATTLE_BACKGROUND_BYTESBG_SCROLL_WRAPMAP_ENTRY_PAIRBG1_CLEAR_TILEBG1_BLOCK2_FIRST_TILEPALETTE_BANK_BYTESCOLOR_PAIRMODEL_SHADE_INVISIBLECOLOR_LEVELS_CAPCOLOR_LEVELS_CLAMPCOLOR_STEP_DOWNMODEL_ONE_SIDEDMODEL_CLOCKWISEEFFECT_VIEW_FROM_CAMERAGLINT_SET_BYTESEFFECT_DRAW_FLAREREAPER_SHEET_RAISED_WIDTHREAPER_SHEET_RAISED_HEIGHTREAPER_SHEET_SWUNG_WIDTHREAPER_SHEET_SWUNG_HEIGHTREAPER_SHEET_CRESCENT_WIDTHREAPER_SHEET_CRESCENT_HEIGHTRED_CRESCENT_FADE_A_WIDTHRED_CRESCENT_FADE_A_HEIGHTRED_CRESCENT_FADE_B_WIDTHRED_CRESCENT_FADE_B_HEIGHTRED_CRESCENT_FADE_C_WIDTHRED_CRESCENT_FADE_C_HEIGHTRED_CRESCENT_FADE_D_WIDTHRED_CRESCENT_FADE_D_HEIGHTSLASH_PICTURE_SIZELIGHTNING_BOLT_WIDTHLIGHTNING_BOLT_HEIGHTLIGHTNING_BOLT_PICTURE_BYTESBLUE_FLAME_COLUMN_WIDTHBLUE_FLAME_COLUMN_HEIGHTBLUE_FLAME_SPLASH_WIDTHBLUE_FLAME_SPLASH_HEIGHTWAVE_WIDTHWAVE_HEIGHTBLUE_ARC_WIDTHBLUE_ARC_HEIGHTYELLOW_ORB_WIDTHYELLOW_ORB_HEIGHTYELLOW_ORB_PACKED_WIDTHYELLOW_ORB_PACKED_HEIGHTYELLOW_ORB_PICTURESFIRE_STREAK_WIDTHFIRE_STREAK_HEIGHTFIRE_BURST_WIDTHFIRE_BURST_HEIGHTMERCURY_SMALL_DJINNI_HEIGHTVENUS_SMALL_DJINNI_HEIGHTFIRE_BLOB_WIDTHFIRE_BLOB_HEIGHTCRYSTAL_WIDTHCRYSTAL_HEIGHTCRYSTAL_SHARD_PICTURESSHARDS_PER_CRYSTALBOULDER_WIDTHBOULDER_HEIGHTBOULDER_SHARD_PICTURESSHARD_TURNSTAT_REDUCTION_SHARD_PICTURESSTAT_REDUCTION_SHARD_BYTESLIGHTNING_PILLAR_WIDTHLIGHTNING_PILLAR_HEIGHTFIRE_PILLAR_WIDTHFIRE_PILLAR_HEIGHTFIRE_PILLAR_FLAME_WIDTHFIRE_PILLAR_FLAME_HEIGHTSPIRAL_WIDTHSPIRAL_HEIGHTCARD_WIDTHCARD_HEIGHTSHEEP_WIDTHSHEEP_HEIGHTFLAMEBALL_WIDTHFLAMEBALL_HEIGHTRUNE_HALF_WIDTHRUNE_HALF_HEIGHTRUNE_TEXTURE_SIZERUNE_TEXTURE_RUNEDJINNI_WIDTHDJINNI_HEIGHTSMALL_DJINNI_WIDTHSMALL_DJINNI_HEIGHTSMOKE_PUFF_WIDTHSMOKE_PUFF_HEIGHTSMOKE_PUFF_TICKSFLASH_BURST_WIDTHFLASH_BURST_HEIGHTFLASH_BURST_PICTURE_COUNTBLUE_BUBBLE_WIDTHBLUE_BUBBLE_HEIGHTBLUE_LARGE_SPLASH_WIDTHBLUE_LARGE_SPLASH_HEIGHTCLOUD_PUFF_WIDTHCLOUD_PUFF_HEIGHTSKULL_WIDTHSKULL_HEIGHTTORNADO_STRIP_WIDTHTORNADO_STRIP_HEIGHTDAGGER_WIDTHDAGGER_HEIGHTSHIELD_WIDTHSHIELD_HEIGHTGLOW_ORB_WIDTHGLOW_ORB_HEIGHTVIOLET_STREAK_WIDTHVIOLET_STREAK_HEIGHTWISP_WIDTHWISP_HEIGHTVORTEX_WIDTHVORTEX_HEIGHTHEART_WIDTHHEART_HEIGHTWATER_WAVE_WIDTHWATER_WAVE_HEIGHTWATER_SPLASH_WIDTHWATER_SPLASH_HEIGHTBATTLE_EFFECT_STATE_SIZEMOTE_SET_BYTESDIMMED_COPIESDIMMED_COPY_CAPEFFECT_CAP_LEVELFLARE_SET_BYTESBATTLE_SHEET_BYTESMOTE_PICTURESSTRIKE_KIND_SLASHSTRIKE_KIND_BITESTRIKE_SMOKESTRIKE_ABSORBSTRIKE_GLINTSSTRIKE_SPARKSSTRIKE_HEAVYSTRIKE_FLASHSTRIKE_STARSTRIKE_COLOR_BLUESTRIKE_COLOR_LIMESTRIKE_COLOR_PINKSTRIKE_COLOR_EMBERSTRIKE_COLOR_MARSSTRIKE_COLOR_LIGHTNINGSTRIKE_COLOR_ORANGEEFFECT_WIN0_LAYERSEFFECT_WINOUTEFFECT_START_NARROW_CANVASEFFECT_STRIKE_TARGETEFFECT_CLIP_BOUNDSALT_BLITTEREFFECT_LOAD_BLITTEREFFECT_SET_TRANSFEREFFECT_START_TRANSFEREFFECT_PRESENT_CANVASWAIT_TRANSFEREFFECT_END_TICKEFFECT_RELEASE_BLITTERSEFFECT_FINISH_CANVASEFFECT_FINISH_CANVAS_ONE_BLITTERMOTE_SIZE_MAXEFFECT_DRAW_MOTEEFFECT_FREE_PARTICLESEFFECT_SHOW_WIDE_CANVASCANVAS_WAVE_BG2XEFFECT_SHOW_DAMAGEHIT_SOUND_NONETINT_KEEPSTAMP_TILESSTAMP_CANVASTHORN_MIRROREDTHORN_SMALLEnumerations in detailMODEL_KINDREAPER_SHEET_PICTURERED_CRESCENT_PICTURETARGET_STRIKE_COLUMNTARGET_STRIKE_STYLECANVAS_WIPE_DIRECTIONCANVAS_FILLTUMBLING_QUADS_MODEGASP_MODETWISTING_COLUMN_MODEBALL_LIGHTNING_MODEDJINNI_CHARGE_MODEHEAVY_BLOW_MODEDJINNI_SIGN_MODECARD_KINDELEMENT_CARD_KINDBREATH_KINDRUSHING_STRIKE_MODEMIRRORED_WALL_MODESPARK_GROUPS_MODECAMERA_PHASEFLURRY_MODEFLURRY_ARCFLURRY_PALFLURRY_EXTRA_KINDFunctions in detailbtParticleAdvanceWithGravity3DbtColorBufferScaleStubfdRenderApplyProjectedPlacementStubbtMotionApplyKnockbackStubbtCameraSetViewAtPairMidpointStubbtObjectSpawnObjectsForListStubbtPlaybackStartStubbtSpriteHasHeavyImpactStubVariables in detailMapGridMetatileBufferBlitterTemplatebtRenderFillMeshKernelbtRenderFillMeshKernelCodeSizebtRenderTransformKernelbtRenderTransformKernelCodeSizebtRenderSolidKernelbtRenderSolidMaxKernelbtRenderSolidAdditiveKernelbtRenderTexturedKernelbtRenderTexturedMaxKernelbtRenderTexturedAdditiveKernelbtRenderShadedMaxKernelbtRenderShadedAdditiveKernelbtRenderShadedKernelbtRenderTexturedNarrowKernelbtRenderSolidNarrowKernelbtRenderSolidKernelCodeSizebtRenderSolidMaxKernelCodeSizebtRenderSolidAdditiveKernelCodeSizebtRenderTexturedKernelCodeSizebtRenderTexturedMaxKernelCodeSizebtRenderTexturedAdditiveKernelCodeSizebtRenderShadedMaxKernelCodeSizebtRenderShadedAdditiveKernelCodeSizebtRenderShadedKernelCodeSizebtRenderTexturedNarrowKernelCodeSizebtRenderSolidNarrowKernelCodeSizebtRenderTexturedKernelCodeWordsbtRenderShadedKernelCodeWordsbtRenderTexturedNarrowKernelCodeWords