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…
#include "types.h"#include "sprite_ids.h"#include "resource_ids.h"#include "system.h"#include "battle_effect/battle_effect.h"#include "battle_effect/battle_effect_table.h"#include "battle/battle_effect_state.h"#include "field/particle.h"#include "battle/battle_camera.h"#include "battle/battle_actor.h"#include "fixed_math.h"#include "graphics/graphics.h"#include "field/stubs.h"#include "battle/battle_state.h"#include "battle_effect/render_model.h"#include "battle_effect/blitter_operands.h"#include "battle/battle.h"#include "battle/stubs.h"#include "battle/formations.h"#include "sound/sound.h"#include "sounds.h"#include "battle/battle_effect_params.h"#include "field/actor.h"#include "macros.h"#include "debug/debug.h"#include "window/window.h"#include "window/screens.h"#include "field/field.h"#include "game/game.h"#include "menu/menu.h"#include "field/field_script.h"#include "battle/battle_action.h"#include "field/sprite.h"#include "graphics/render_placement.h"#include "battle/battle_unit.h"#include "game/character.h"#include "edition.h"#include "field/field_sprite.h"#include "enemy_ids.h"
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | STREAK_POINT | A point of a streak: x, y and z. |
struct | PLUNGE_STREAK | One of Cruel Ruin's 256 streaks: its head and tail and how it is turned. |
struct | ELEMENT_STREAKS_STATE | The element streaks' state, which btEffectStartElementStreaks allocates in the HEAP_SLOT_BATTLE_EFFECT heap slot in place of the battle effect state. |
struct | RUIN_OBJECT | An EFFECT_SPR as Cruel Ruin reads its OAM attribute 2: its tile, priority and palette, as fields or as one halfword. |
struct | DROPLET_BUFFER | The map cell buffer holds WIN0's line table and then the droplets Douse's drops throw up. |
struct | MESH_TRIANGLE | A mesh triangle: its three vertex numbers and the texture coordinates of each corner. |
Macros
| Name | Description | |
|---|---|---|
#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. |
#define | FIXED_INTEGER_PART (v) FIXEDtoINT((Sint32)(v)) | |
#define | EFFECT_BLEND_ADD BLEND_ALPHA(BLEND_WEIGHT_MAX, BLEND_WEIGHT_MAX) | The canvas added to the battle under it: both blend weights whole. |
#define | EFFECT_BLEND_CANVAS (level) BLEND_ALPHA(level, BLEND_WEIGHT_MAX) | The canvas at level sixteenths over the whole battle under it. |
#define | CANVAS_BLEND_LEVEL 14 | The canvas's usual weight over the battle, in sixteenths: every canvas opens with it. |
#define | ELEMENT_BLEND_LEVEL 12 | The element pillar's and element burst's canvas weight over the battle. |
#define | ELEMENT_SPIRAL_MOTES 128 | The motes the element pillar and element burst set up in PARTICLES; the burst leaves them undrawn. |
#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. |
#define | WINDOW_EDGE_INSETS (RamMapMetatileBuffer + 2) | |
#define | WINDOW_EDGE_INSET_LINES 128 | |
#define | WINDOW_EDGE_LINES (WINDOW_EDGE_INSETS + WINDOW_EDGE_INSET_LINES) | |
#define | PARTICLES ((PARTICLE *)RamMapMetatileBuffer) | The particles an effect keeps in the map cell buffer, from its start. |
#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. |
#define | OBJ_TILES (sprite) | The VRAM address of a sprite's tiles, from its VRAM cache entry. |
#define | DMA_CONTROL_HALF 5 | Index of DMAxCNT_H, the control half, in a channel's 16-bit registers. |
#define | PARTICLE_POOL_COUNT 1024 | The particles the map cell buffer holds when an effect lays its particles over it from the start. |
#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. |
#define | NEREID_DROPS_A_TICK 16 | |
#define | MEGAERA_OBJECTS 11 | The sprites that draw Megaera, in her summon and in her formation. |
#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). |
#define | CANVAS_TILES (CANVAS_SIZE / 8) | The canvas's rows and columns of 8x8 tiles. |
#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. |
#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. |
#define | OBJ_32X32_8BPP_BYTES (32 * 32) | The bytes of a 32x32 sprite's tiles in 256 colours, and in 16. |
#define | OBJ_32X32_4BPP_BYTES (32 * 32 / 2) | |
#define | OBJ_64X64_8BPP_BYTES (64 * 64) | The bytes of a 64x64 sprite's tiles in 256 colours, and in 16. |
#define | OBJ_64X64_4BPP_BYTES (64 * 64 / 2) | |
#define | OBJ_16X16_4BPP_BYTES (16 * 16 / 2) | The bytes of a 16x16 sprite's tiles in 16 colours. |
#define | CANVAS_ROW_OFFSET (y) ((((y) & 7) << 3) + (((y) >> 3) << 10)) | The byte of the first pixel of canvas row y, y not negative. |
#define | CANVAS_LEVEL_BRIGHTEST 63 | The brightest canvas level: the additive blitters and CANVAS_COPY_AND_BRIGHTEN stop at it. |
#define | BATTLE_VIEW_TOP 16 | The battle view, under the top window and over the menus: screen lines 16 to 135. |
#define | BATTLE_VIEW_HEIGHT 120 | |
#define | BATTLE_VIEW_BOTTOM (BATTLE_VIEW_TOP + BATTLE_VIEW_HEIGHT) | |
#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. |
#define | GRADIENT_GREEN_LINES 16 | |
#define | GRADIENT_RED_LINES 17 | |
#define | EFFECT_WRITE_CANVAS_MAP_ROW (row, column, offset) | Writes one row of BG2's map for the canvas, two tiles at a time. |
#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. |
#define | SUMMON_OPENING_LOAD_TICK 27 | |
#define | EFFECT_SET_BATTLE_WINDOWS () | Windows 0 and 1 both cover the battle view: the full width, lines 16 to 135. |
#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. |
#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. |
#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. |
#define | BACKGROUND_DARKEN_TICKS 24 | The ticks the battle background darkens behind an effect's canvas (state->fadeFrame, btEffectDarkenBackgroundStep). |
#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. |
#define | SHEET_PALETTE_COLORS 64 | A sprite sheet resource opens with its 64 colours, ahead of its compressed pictures. |
#define | SHEET_PALETTE_BYTES (SHEET_PALETTE_COLORS * 2) | |
#define | LOAD_BG_PALETTE (resource) | Loads a sprite sheet's colours into the background palette. |
#define | PARTICLE_DAMPING_NONE DAMPING_SCALE | The damping that keeps a particle's whole speed. |
#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. |
#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). |
#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. |
#define | TARGET_STRIKE_BITE_WIDTH 18 | |
#define | TARGET_STRIKE_BITE_HEIGHT 48 | |
#define | BATTLE_BACKGROUND_WIDTH 256 | The battle background's image as BG1 shows it from BG character block 2, one byte a pixel. |
#define | BATTLE_BACKGROUND_HEIGHT 120 | |
#define | BATTLE_BACKGROUND_BYTES | |
#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. |
#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. |
#define | BG1_CLEAR_TILE 1023 | The tile BG1 shows around a picture of its own, the last a map entry can name. |
#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. |
#define | PALETTE_BANK_BYTES 32 | The bytes of one 16-colour palette. |
#define | COLOR_PAIR (color) ((color) << 16 | (color)) | A word of two palette entries, both color, to fill a palette a word at a time. |
#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. |
#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. |
#define | COLOR_LEVELS_CLAMP (red, green, blue) | |
#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. |
#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. |
#define | MODEL_CLOCKWISE 1 | |
#define | EFFECT_VIEW_FROM_CAMERA (camera) | Starts a tick's 3D projection from the battle camera. |
#define | GLINT_SET_BYTES | The bytes of the six glint pictures that open the tornado sprite sheet. |
#define | EFFECT_DRAW_FLARE (draw, canvas, sheet, x, y, size) | Draws flare picture size, a square, centred on (x, y). |
#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. |
#define | REAPER_SHEET_RAISED_HEIGHT 98 | |
#define | REAPER_SHEET_SWUNG_WIDTH 99 | |
#define | REAPER_SHEET_SWUNG_HEIGHT 69 | |
#define | REAPER_SHEET_CRESCENT_WIDTH 128 | |
#define | REAPER_SHEET_CRESCENT_HEIGHT 91 | |
#define | RED_CRESCENT_FADE_A_WIDTH 128 | RedCrescentSheetA: the swing's crescent fading in four pictures. |
#define | RED_CRESCENT_FADE_A_HEIGHT 91 | |
#define | RED_CRESCENT_FADE_B_WIDTH 128 | |
#define | RED_CRESCENT_FADE_B_HEIGHT 59 | |
#define | RED_CRESCENT_FADE_C_WIDTH 122 | |
#define | RED_CRESCENT_FADE_C_HEIGHT 29 | |
#define | RED_CRESCENT_FADE_D_WIDTH 76 | |
#define | RED_CRESCENT_FADE_D_HEIGHT 25 | |
#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. |
#define | LIGHTNING_BOLT_WIDTH 24 | Closing bolts and lightning columns use the same 24x120 pictures. |
#define | LIGHTNING_BOLT_HEIGHT 120 | |
#define | LIGHTNING_BOLT_PICTURE_BYTES PICTURE_BYTES(LIGHTNING_BOLT) | |
#define | BLUE_FLAME_COLUMN_WIDTH 17 | BlueFlameSheet: the column of flame, then the flame that splashes from it, twice its width. |
#define | BLUE_FLAME_COLUMN_HEIGHT 104 | |
#define | BLUE_FLAME_SPLASH_WIDTH 34 | |
#define | BLUE_FLAME_SPLASH_HEIGHT 65 | |
#define | WAVE_WIDTH 48 | WaveSheet's six pictures, BlueArcSheetA and B's six, and YellowOrbSheet's. |
#define | WAVE_HEIGHT 16 | |
#define | BLUE_ARC_WIDTH 48 | |
#define | BLUE_ARC_HEIGHT 72 | |
#define | YELLOW_ORB_WIDTH 40 | |
#define | YELLOW_ORB_HEIGHT 48 | |
#define | YELLOW_ORB_PACKED_WIDTH (YELLOW_ORB_WIDTH / 2) | The yellow orb as btEffectPackYellowOrbs packs it, every second byte. |
#define | YELLOW_ORB_PACKED_HEIGHT YELLOW_ORB_HEIGHT | |
#define | YELLOW_ORB_PICTURES 6 | |
#define | FIRE_STREAK_WIDTH 48 | FireStreakSheet's six pictures and FireBurstSheet's. |
#define | FIRE_STREAK_HEIGHT 72 | |
#define | FIRE_BURST_WIDTH 40 | |
#define | FIRE_BURST_HEIGHT 80 | |
#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. |
#define | VENUS_SMALL_DJINNI_HEIGHT 38 | |
#define | FIRE_BLOB_WIDTH 48 | FireBlobSheet's blobs and CrystalSheet's crystal. |
#define | FIRE_BLOB_HEIGHT 32 | |
#define | CRYSTAL_WIDTH 32 | |
#define | CRYSTAL_HEIGHT 64 | |
#define | CRYSTAL_SHARD_PICTURES PICTURE_BYTES(CRYSTAL) | CrystalSheet's shard pictures, after its crystal, and the shards of PrismShardStarts a crystal breaks into. |
#define | SHARDS_PER_CRYSTAL 16 | |
#define | BOULDER_WIDTH 34 | BoulderSheet's boulder, its first picture, and its shard pictures after it. |
#define | BOULDER_HEIGHT 62 | |
#define | BOULDER_SHARD_PICTURES (BOULDER_WIDTH * BOULDER_HEIGHT) | |
#define | SHARD_TURN 96 | A shard turns through its three pictures, one each SHARD_TURN of its variant. |
#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. |
#define | STAT_REDUCTION_SHARD_BYTES 696 | bytes in each copy |
#define | LIGHTNING_PILLAR_WIDTH 48 | LightningPillarSheet's pillar, in two pictures. |
#define | LIGHTNING_PILLAR_HEIGHT 112 | |
#define | FIRE_PILLAR_WIDTH 34 | FirePillarSheetA: the pillar of fire, then two flames. |
#define | FIRE_PILLAR_HEIGHT 104 | |
#define | FIRE_PILLAR_FLAME_WIDTH 20 | |
#define | FIRE_PILLAR_FLAME_HEIGHT 37 | |
#define | SPIRAL_WIDTH 32 | SpiralSheet's pictures. |
#define | SPIRAL_HEIGHT 32 | |
#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. |
#define | CARD_HEIGHT 64 | |
#define | SHEEP_WIDTH 32 | SheepCardSheet's sheep, four pictures of it tumbling after its card. |
#define | SHEEP_HEIGHT 32 | |
#define | FLAMEBALL_WIDTH 40 | FlameballSheet and FireballSheet's pictures. |
#define | FLAMEBALL_HEIGHT 64 | |
#define | RUNE_HALF_WIDTH 24 | Each half of RuneSheet's rune, the second drawn mirrored. |
#define | RUNE_HALF_HEIGHT 48 | |
#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. |
#define | RUNE_TEXTURE_RUNE (8 * RUNE_TEXTURE_SIZE + 8) | |
#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. |
#define | DJINNI_HEIGHT 40 | |
#define | SMALL_DJINNI_WIDTH 20 | |
#define | SMALL_DJINNI_HEIGHT 40 | |
#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. |
#define | SMOKE_PUFF_HEIGHT 48 | |
#define | SMOKE_PUFF_TICKS (6 * 4) | A puff of SmokeSheet's lives through its six pictures, four ticks each. |
#define | FLASH_BURST_WIDTH 32 | |
#define | FLASH_BURST_HEIGHT 64 | |
#define | FLASH_BURST_PICTURE_COUNT 6 | FlashBurstSheet's six pictures: a white flash turning to a fireball that burns out to embers. |
#define | BLUE_BUBBLE_WIDTH 24 | BlueBeamSheet: a blue bubble, a small splash of blue light the bubble's size, then a large splash. |
#define | BLUE_BUBBLE_HEIGHT 24 | |
#define | BLUE_LARGE_SPLASH_WIDTH 42 | |
#define | BLUE_LARGE_SPLASH_HEIGHT 42 | |
#define | CLOUD_PUFF_WIDTH 32 | BlueCloudPuffSheet: four 32x32 puffs of cloud. |
#define | CLOUD_PUFF_HEIGHT 32 | |
#define | SKULL_WIDTH 24 | |
#define | SKULL_HEIGHT 24 | |
#define | TORNADO_STRIP_WIDTH 40 | |
#define | TORNADO_STRIP_HEIGHT 32 | |
#define | DAGGER_WIDTH 24 | The pictures of DaggerSheet, ShieldSheet, GlowOrbSheet, VioletStreakSheet and WispSheet. |
#define | DAGGER_HEIGHT 40 | |
#define | SHIELD_WIDTH 40 | |
#define | SHIELD_HEIGHT 40 | |
#define | GLOW_ORB_WIDTH 40 | |
#define | GLOW_ORB_HEIGHT 40 | |
#define | VIOLET_STREAK_WIDTH 32 | |
#define | VIOLET_STREAK_HEIGHT 64 | |
#define | WISP_WIDTH 64 | |
#define | WISP_HEIGHT 32 | |
#define | VORTEX_WIDTH 24 | VortexSheet's six pictures and HeartSheet's heart. |
#define | VORTEX_HEIGHT 48 | |
#define | HEART_WIDTH 22 | |
#define | HEART_HEIGHT 42 | |
#define | WATER_WAVE_WIDTH 32 | WaterSpraySheet: the wave, then the splash's pictures. |
#define | WATER_WAVE_HEIGHT 32 | |
#define | WATER_SPLASH_WIDTH 48 | |
#define | WATER_SPLASH_HEIGHT 48 | |
#define | BATTLE_EFFECT_STATE_SIZE 31612 | The bytes an effect's state is lent: more than struct BATTLE_EFFECT_STATE holds. |
#define | MOTE_SET_BYTES 770 | The bytes of one set of the ten mote pictures: 2 * (1 + 4 + ... |
#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. |
#define | DIMMED_COPY_CAP (copy) (CANVAS_LEVEL_BRIGHTEST + 1 - (copy) * 7) | |
#define | EFFECT_CAP_LEVEL (level, cap) | Caps a colour level at cap, and at 0 from below. |
#define | FLARE_SET_BYTES 1540 | The bytes of BlueGlowSheet's ten flare pictures, 2 to 20 pixels square: 4 * (1 + 4 + ... |
#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. |
#define | MOTE_PICTURES 10 | |
#define | STRIKE_KIND_SLASH 0 | The two kinds of target strike (TargetStrikeStyles). |
#define | STRIKE_KIND_BITE | |
#define | STRIKE_SMOKE 1 | A target strike style's extras. |
#define | STRIKE_ABSORB 2 | motes fly out of the target and back into the user |
#define | STRIKE_GLINTS 4 | glints sparkle around the target |
#define | STRIKE_SPARKS 8 | each hit scatters sparks |
#define | STRIKE_HEAVY 16 | one heavy hit: a big shake and the target recoils |
#define | STRIKE_FLASH 32 | as heavy, with flash pictures for the smoke |
#define | STRIKE_STAR 64 | a star swells on the target |
#define | STRIKE_COLOR_BLUE 0 | The palettes a target strike's background takes (TARGET_STRIKE_COLOR). |
#define | STRIKE_COLOR_LIME 1 | LimePalette |
#define | STRIKE_COLOR_PINK 2 | PinkPalette |
#define | STRIKE_COLOR_EMBER 3 | EmberStreakSheet's |
#define | STRIKE_COLOR_MARS 4 | MarsDjinnSheet's |
#define | STRIKE_COLOR_LIGHTNING 5 | LightningBoltSheet's |
#define | STRIKE_COLOR_ORANGE 6 | OrangePaletteB |
#define | EFFECT_WIN0_LAYERS | Window 0 shows the battle view: BG0 to BG2, the sprites and blending. |
#define | EFFECT_WINOUT (WINOUT_WIN01_BG0 | WINOUT_WIN01_CLR | WINOUT_WINOBJ_ALL) | Outside the battle view: BG0 and blending only. |
#define | EFFECT_START_NARROW_CANVAS (bgControl) | Opens the canvas layer at its own width: BG2 shows it one pixel a pixel. |
#define | EFFECT_STRIKE_TARGET (effect, i, ticks, motion) | Strikes target i: it flashes white in its damage pose and is knocked back by motion. |
#define | EFFECT_CLIP_BOUNDS (COMPOSITE_CLIP_X | COMPOSITE_CLIP_Y) | A blitter that clips its rectangles to the canvas. |
#define | ALT_BLITTER (RamHeapSlots->ramCodePaired) | The second blitter, the drawing function in the paired heap slot. |
#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. |
#define | EFFECT_SET_TRANSFER (state, mode, value) | Sets what the canvas transfer leaves in the canvas after each copy. |
#define | EFFECT_START_TRANSFER (state, mode, value) | Sets the transfer, then starts copying the canvas to VRAM once a tick. |
#define | EFFECT_PRESENT_CANVAS (state) ((state)->transferPending = 1, sySynch(1)) | Presents the canvas and waits for the next tick. |
#define | WAIT_TRANSFER (state) | Waits until a VBlank has passed since the one that last copied the canvas. |
#define | EFFECT_END_TICK (state) | The usual end of an effect's tick: counts down the targets' flash timers, then presents the canvas. |
#define | EFFECT_RELEASE_BLITTERS () | Frees the two blitters, the second first. |
#define | EFFECT_FINISH_CANVAS () | The usual end of a canvas effect: the transfer, the blitters, then the canvas layer. |
#define | EFFECT_FINISH_CANVAS_ONE_BLITTER () | The same for an effect that drew through one blitter. |
#define | MOTE_SIZE_MAX 10 | The largest of the ten mote pictures. |
#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. |
#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. |
#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. |
#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. |
#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. |
#define | HIT_SOUND_NONE (-1) | |
#define | TINT_KEEP (-1) | Passed to btEffectTintBattler as its palette, pose or timer slot: leave that one as it is. |
#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. |
#define | STAMP_CANVAS (state) | |
#define | THORN_MIRRORED 1 | A thorn's kind in ThornKinds. |
#define | THORN_SMALL 2 | 32 pixels wide, not 48 |
Enumerations
| Name | Description | |
|---|---|---|
enum | MODEL_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. |
enum | REAPER_SHEET_PICTURE { REAPER_SHEET_RAISED, REAPER_SHEET_SWUNG, REAPER_SHEET_CRESCE … } | Where each picture starts in ReaperSheet, in bytes. |
enum | RED_CRESCENT_PICTURE { RED_CRESCENT_FADE_A, RED_CRESCENT_FADE_B, RED_CRESCENT_FADE_ … } | Where each picture starts in RedCrescentSheetA, in bytes. |
enum | TARGET_STRIKE_COLUMN { TARGET_STRIKE_KIND, TARGET_STRIKE_HITS, TARGET_STRIKE_FLAGS, … } | The columns of TargetStrikeStyles, one row a style. |
enum | TARGET_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. |
enum | CANVAS_WIPE_DIRECTION { CANVAS_WIPE_DOWN, CANVAS_WIPE_ACROSS } | Which way btEffectWipeCanvas sweeps. |
enum | CANVAS_FILL { CANVAS_WIPE_FILL, CANVAS_WIPE_CLEAR } | What btEffectWipeCanvas leaves behind it. |
enum | TUMBLING_QUADS_MODE { TUMBLING_QUADS_BALM, TUMBLING_QUADS_TINDER, TUMBLING_QUADS_P … } | The tumbling quads' modes (btEffectRunTumblingQuads), each named for the effect that plays it. |
enum | GASP_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. |
enum | TWISTING_COLUMN_MODE { TWISTING_COLUMN_WHORL, TWISTING_COLUMN_GALE, TWISTING_COLUMN … } | The twisting column's modes (btEffectRunTwistingColumn), each named for the effect that plays it. |
enum | BALL_LIGHTNING_MODE { BALL_LIGHTNING_THUNDER_MINE, BALL_LIGHTNING_EARTH_FORCE } | The ball lightning's modes (btEffectRunBallLightning). |
enum | DJINNI_CHARGE_MODE { DJINNI_CHARGE_CORE, DJINNI_CHARGE_CANNON } | The Djinni charge's modes (btEffectRunDjinniCharge). |
enum | HEAVY_BLOW_MODE { HEAVY_BLOW_HEAVY_DIVIDE, HEAVY_BLOW_STRONG_HIT } | The heavy blow's modes (btEffectRunHeavyBlow). |
enum | DJINNI_SIGN_MODE { DJINNI_SIGN_RIME, DJINNI_SIGN_HAZE } | The Djinni sign's modes (btEffectRunDjinniSign). |
enum | CARD_KIND { CARD_SLEEP, CARD_BAFFLE, CARD_DEATH, CARD_SWORD } | The cards (btEffectRunCards). |
enum | ELEMENT_CARD_KIND { CARD_BRAMBLE, CARD_FROST, CARD_FLAME, CARD_THUNDER } | The element cards (btEffectRunElementCards). |
enum | BREATH_KIND { BREATH_BEAM, BREATH_ROLLING_FLAME, BREATH_PIKE, BREATH_BLAST } | The breaths (btEffectRunBreaths). |
enum | RUSHING_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. |
enum | MIRRORED_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. |
enum | SPARK_GROUPS_MODE { SPARK_GROUPS_NOVA, SPARK_GROUPS_DYNAMITE, SPARK_GROUPS_RISIN … } | Where btEffectRunSparkGroups' bursts go off. |
enum | CAMERA_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. |
enum | FLURRY_MODE { FLURRY_BEAR_CLAW, FLURRY_BACTERIA_RUSH, FLURRY_FREEBITE_RUSH … } | btEffectRunFlurry's modes, by the abilities that play them: the rows of FlurryStyles. |
enum | FLURRY_ARC { FLURRY_ARCS_AND_WAVES, FLURRY_ARCS } | A flurry's arcs, its FLURRY_ARC_SHEET. |
enum | FLURRY_PAL { FLURRY_PALETTE_MARS_DJINNI, FLURRY_PALETTE_LIME, FLURRY_PALE … } | Whose palette a flurry takes, its FLURRY_PALETTE. |
enum | FLURRY_EXTRA_KIND { FLURRY_EXTRA_NONE, FLURRY_EXTRA_GLINTS, FLURRY_EXTRA_RIPPLE } | What else a flurry plays around its target, its FLURRY_EXTRA. |
Functions
| Name | Description | |
|---|---|---|
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 (*const | BattleEffectHandlers [])(BATTLE_EFFECT_PARM *args) | One handler for each battle effect, by effect less one; 0 where none. |
void | btEffectAdvanceScrollOnInterval (void) | battle_effect_display.c |
void | btEffectConfigureEffectDisplay (void) | Puts the battle screen back into the display state every effect starts from and ends with. |
void | btEffectAdvanceBg2OnInterval (void) | Slides the affine BG2 a step every few frames. |
void | btEffectStartCanvasLayer (Sint32 bgControl) | battle_effect_canvas.c |
void | btEffectEndCanvasLayer (void) | Closes the canvas layer. |
void | btEffectCountDownBattlerTints (void) | Counts down the actors' flash timers. |
void | btEffectStartTiledCanvas (Sint32 bgControl) | Opens the canvas layer with the canvas repeated across a wrapping map. |
void | btEffectStartTiledCanvasFilled (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. |
void | btEffectProcessPendingBlock2Transfer (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. |
void | btDisplayApplyBg2Affine (void) | Writes the effect's BG2 scale to BG2PA and BG2PD and its reference point to BG2X and BG2Y. |
void | btEffectSetupCanvasTileMap (void) | Sets up the canvas tile map on BG1. |
void | btEffectHideBg1AndRestoreBackdrop (void) | Marks the transition done and shows the battle view again. |
void | btEffectTransferFullScreenImage (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. |
void | btEffectDrawClippedCanvasLine ( 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. |
void | btEffectBuildCanvasTilemap (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. |
void | btEffectProcessPendingStampTransfer (void) | Copies the stamp's picture to its sprite's tiles once the effect has drawn it, then clears the picture. |
void | btEffectBuildCanvasBlitters (Sint32 flip, DRAW_RECTANGLE *out) | Fetches the max and additive blitters, flipped or not. |
void | btEffectUpdatePhasePalette (Sint32 frame, Sint32 redPhase, Sint32 greenPhase, Sint32 bluePhase) | battle_effect_prism.c |
void | btCameraApplyPhasedDelta (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. |
void | btEffectShowLivingTargets (BATTLE_EFFECT_PARM *args) | battle_effect_dispatch.c |
void | btEffectCallNoOperation (Sint32 count) | Calls the empty btEffectNoOperation count times: a busy delay. |
void | btEffectBuildWindowEdgeTable (void) | Builds window 0's right edge for every line and restarts the DMA that writes it. |
void | btEffectTintBattler ( 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. |
void | btEffectSetupBlendedDisplay (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. |
void | btEffectRunImpair (BATTLE_EFFECT_PARM *args) | battle_effect_stat_change.c |
void | btEffectRunDull (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. |
void | btEffectRunWeaken (BATTLE_EFFECT_PARM *args) | A shield appears over each target and breaks into fading shards, in the pink burst's colours. |
void | btEffectCreateSprites (Sint32 count, Sint32 spriteId, Uint32 priority) | battle_effect_eruption.c |
void | btParticleAdvanceWithGravity3D (PARTICLE *step, Sint32 damping, Sint32 gravity) | advance_with_gravity.s |
void | btParticleAdvanceWithGravity2D (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. |
void | btEffectRunDjinniEntrance (BATTLE_EFFECT_PARM *effect, Uint32 packed, Sint32 *screen, Sint32 *world) | battle_effect_projectiles.c |
void | btEffectSetApproachMotion (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. |
void | btResourceLoadAndDecompress (Sint32 id, void *dest, Sint32 skipPalette, Sint32 copyPalette) | battle_effect_djinn_attacks.c |
void | btCameraShake (Sint32 rangeX, Uint32 rangeY) | Shakes the camera while state->shakeFrame lasts. |
void | btCameraApplyVerticalShake (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 |
void | btEffectStartActorMotion (Sint32 id, Sint32 force, Sint32 acceleration, Sint32 speedLimit, Sint32 velocityY, Sint32 percent) | battle_effect_beams.c |
void | btEffectRunCriticalHit (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. |
void | btEffectRunAttackSlash (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. |
void | btRenderBuildQuadStrip (struct STRIP_QUAD *quad, Sint32 width, Sint32 height, Sint32 count) | battle_effect_charon.c |
void | btPaletteMirrorBgColors (void) | battle_effect_ulysses.c |
void | btGraphicsLoadGreyRamp (void) | Fills BG palette colours 1 to 63, the canvas's levels, with a grey ramp, each level i / 2. |
void | btEffectRunSwirlSwipe (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_spider_web.c |
void | btEffectPosProjectBattler (Sint32 id, SCREEN_POINT *pos) | battle_effect_positions.c |
void | btEffectGetTargetsMidpoint (SCREEN_POINT *pos) | The middle between the first and the last target. |
void | btEffectPosProjectSprite (Sint32 id, SCREEN_POINT *pos) | Projects a unit's sprite onto the screen, raised by half its height, 16 pixels higher. |
void | btMeshBuildGrid (MESH_TRIANGLE *triangles, Sint32 columns, Sint32 rows, Sint32 cellWidth, Sint32 cellHeight) | battle_effect_meteor_blow.c |
void | btEffectArmMeteorBlowPaletteDMA (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. |
void | btEffectRunCastingImpact (BATTLE_EFFECT_PARM *action, Sint32 kind) | battle_effect_casting_impact.c |
void | btEffectStepPaletteToResource (Sint32 resource) | Steps the background colours one shade toward a resource's palette. |
void | btEffectWipeCanvas (Sint32 direction, Sint32 fill) | battle_effect_canvas_wipe.c |
void | btEffectPlaceFormationSprites (Sint32 formation, Sint32 x, Sint32 z) | battle_effect_starfield_fall.c |
void | btEffectRunImpactBurst (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. |
void | btEffectArmPaletteHBlankDMA (void) | Streams the fall's backdrop colours into colour 0, one each line. |
void | btEffectRunFallingSword (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_titan_blade.c |
void | btEffectRunFlashingStrike (BATTLE_EFFECT_PARM *effect, Sint32 variant) | battle_effect_thrash.c |
void | btPictureMirrorIntoQuadrants (Uint8 *src, Uint8 *dest, Sint32 width, Sint32 height) | battle_effect_undead_sword.c |
void | btEffectRunWaterSheet (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. |
void | btEffectRunWindFunnel (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. |
void | btEffectRunHeavyBlow (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_heavy_divide.c |
void | btEffectRunBallLightning (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_thunder_mine.c |
void | btEffectRunTwistingColumn (BATTLE_EFFECT_PARM *effect, Uint32 mode) | battle_effect_whorl.c |
void | btEffectRunDjinniCharge (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_djinni_charge.c |
void | btEffectRunDjinniSign (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_rime.c |
void | btEffectRunGaspFamily (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_gasp.c |
void | btEffectFillWhiteBand (void) | battle_effect_raging_heat.c |
void | btEffectBuildRepeatingTilemap (void) | battle_effect_star_mine.c |
void | btEffectRunRushingStrike (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_rushing_strike.c |
void | btEffectRunMirroredWall (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_mirrored_wall.c |
void | btEffectRunGeyser (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_vengeance.c |
void | btEffectRunStarSwarm (BATTLE_EFFECT_PARM *effect, Sint32 mode) | Swarms of stars over the targets. |
void | btEffectRunBubbleColumn (BATTLE_EFFECT_PARM *effect) | Unused: only btEffectStartBubbleColumn plays it. |
void | btEffectRunElementCards (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_legend.c |
void | btEffectRunCards (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_cards.c |
void | btCanvasBlitMirroredQuarters (void *src, Sint32 x, Sint32 y, Sint32 size) | battle_effect_breaths.c |
void | btEffectRunBreaths (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. |
void | btEffectRunCrescentSlash (BATTLE_EFFECT_PARM *effect, Sint32 mode) | The crescent slash of Human Hunt and Echo Cut. |
void | btEffectRunLeapingStrike (BATTLE_EFFECT_PARM *effect, Sint32 mode) | battle_effect_planet_diver.c |
void | btEffectRunBallAttack (BATTLE_EFFECT_PARM *effect) | battle_effect_liquifier.c |
void | btIrisWipeScreen (Uint8 side, Uint8 speed, void (*midpoint)(void)) | battle_effect_odyssey.c |
void | btIrisRestoreBattle (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. |
void | btEffectBuildSteepShadeRampWave (Uint8 *table, Uint32 count, Uint32 repeats, Sint32 scale) | As btEffectBuildShadeRampWave, at twice the step. |
RENDER_MODEL * | btRenderAllocateModelList (Sint32 count) | battle_effect_render.c |
void | btRenderTransformVertices (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. |
void | btEffectRunMysticFlame (BATTLE_EFFECT_PARM *args) | Glowing orbs spiral in on each target. |
void | btColorBufferScaleStub (void *src, void *dest, Sint32 scale, Sint32 count) | Functions of other modules the parts call, through their stub calls. |
void | fdRenderApplyProjectedPlacementStub (SPR *sprite, Sint32 *pos, Sint32 *scale, Sint32 mode) | |
void | btMotionApplyKnockbackStub (Sint32 actor, Sint32 motion) | Knocks a unit back as the knockback variant (BATTLE_KNOCKBACK) says (btMotionApplyKnockback). |
Sint32 | fdSpriteStartAnimationStub (void *object, Sint32 value) | Starts an animation on a sprite, unless the sprite plays it already. |
void | btActorSpawnObjectsForListStub (Sint16 *list, Sint32 mode) | Readies the sprites of the listed units and destroys every other unit's. |
void | btBackgroundLoadStub (Sint32 mode, Sint32 resource, Sint32 level) | Loads a battle background, its palette darkened by level sixtieths. |
void | btBackgroundSetModeStub (Sint32 mode, Sint32 resource, Sint32 speed) | Switches the battle background's display mode, darkened by fade. |
void | btBackgroundSetPaletteLevelStub (Sint32 background, Sint32 level) | Darkens the battle background's palette by level sixtieths; 0 restores it. |
void | btCameraSetViewAtPairMidpointStub (Sint32 actor, Sint32 target, Sint32 ticks) | Turns the battle camera, over ticks ticks, to look at the point between two units. |
void | btCameraSetViewStub (Sint32 x, Sint32 depth, Sint32 y, Sint32 zoom) | Points the battle camera at (x, depth, y) with a zoom in percent. |
void | btObjectPutStub (void) | Readies every unit's sprites, destroying those of units no longer in the battle, and sets each unit's pose again. |
void | btObjectSpawnObjectsForListStub (Sint16 *unitIds, Sint32 refreshPoses, Sint32 releaseOthers) | Spawns the battle objects of a list of units. |
void | btPlaybackStartStub (Sint32 sound) | Starts playback of the action's targets as the blow lands, with sound as the hit's sound. |
Sint32 | btSpriteHasHeavyImpactStub (Sint32 enemyId) | Whether an enemy's sprite takes the heavy impact. |
Sint32 | btUnitGetEffectHeightStub (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. |
void | btObjectDestroySpritesStub (Sint32 actor) | Destroys a unit's sprites, its status icon and shadow with them. |
void | fdSpriteRemoveAnimationStub (void *record, Sint32 entry) | Removes a sprite animation from a sprite and clears it. |
void | fdActorShadowLoadTilesStub (void) | Loads the actors' shadow tiles. |
void | fdActorShadowFreeTilesStub (void) | Frees the actors' shadow tiles. |
void | btEffectRunFlurry (BATTLE_EFFECT_PARM *args, Sint32 mode) | battle_effect_flurry.c, which calls it before its definition |
Uint32 | syHeapGetRemainingIWRAM (void) | The IWRAM bytes left to allocate, declared unsigned here because btRenderCopyTextureToIWRAM compares it as unsigned, though the function returns a signed number. |
Variables
| Name | Description | |
|---|---|---|
extern const SCALE | EclipseDragonScale | Eclipse's scale for the dragon's sprites, and Cruel Ruin's for its summon, one to one. |
extern const SCALE | CruelRuinUnitScale | Cruel Ruin's scale for the summon, copied each tick before it is placed. |
extern const SCALE | ZaganUnitScale | Zagan's scale, one to one. |
extern const SCALE | ProcneUnitScale | the comets' unit scale |
extern Uint16 | BattleEffectMotePictures [] | Where each size of mote and of flare starts in its sprite sheet, in bytes. |
extern Uint16 | BattleEffectFlarePictures [] | Each flare size's picture: its byte offset in the spark sprite sheet, by size less one. |
extern const Uint16 | CruelRuinCirclePictures [] | Where each of Cruel Ruin's circles starts in its sprite sheet. |
extern Uint16 | BattleEffectSparklePictures [] | 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 Uint8 | BattleEffectSparkleSizes [] | Each sparkle picture's side, in pixels. |
extern Uint8 | BattleEffectEmberStreakPictureWidths [] | 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 Uint8 | BattleEffectEmberStreakPictureHeights [] | Each ember streak picture's height, in pixels. |
extern Uint8 | BattleEffectEmberStreakPictureBiasY [] | How far below its anchor each ember streak picture's top goes, in pixels: the bottoms stay within ten pixels of 64 below. |
extern Uint16 | BattleEffectEmberStreakPictures [] | Each ember streak picture's byte offset in the sheet. |
extern Uint16 | BattleEffectGlintPictures [] | Each glint picture's byte offset in the sprite sheet. |
extern Uint8 | BattleEffectGlintPictureWidths [] | Each glint picture's width, in pixels. |
extern Uint8 | BattleEffectGlintPictureHeights [] | Each glint picture's height, in pixels. |
extern Uint8 | SpireShardWidths [] | Spire's shard pictures. |
extern Uint8 | SpireShardHeights [] | Each shard picture's height, in pixels. |
extern Uint16 | SpireShardPictures [] | Each shard picture's byte offset in Spire's sprite sheet. |
extern Uint16 | StatChangeShardPictures [] | The stat change's shard pictures. |
extern Uint8 | StatChangeShardWidths [] | Each shard picture's width, in pixels. |
extern Uint8 | StatChangeShardHeights [] | Each shard picture's height, in pixels. |
extern Uint8 | ReaperPictureX [] | Where the Death Card's Reaper draws its seven panels, seven x for each side. |
extern Uint8 | ReaperPictureY [] | The reaper's seven panels: their y in the canvas, in pixels. |
extern Uint8 | IceCounts [] | Ice's shards and ticks, and Douse's drops, by variant. |
extern Uint8 | DouseCounts [] | 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 Sint8 | StreakStyles [] | The streaks' styles, and the struck target's tremble. |
extern Sint8 | StreakTremble [] | The struck target's sideways tremble, in pixels, one a tick. |
extern Uint8 | TargetStrikeStyles [][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 Uint8 | TargetStrikeWidths [] | Each slash picture's width, in pixels. |
extern Uint8 | TargetStrikeHeights [] | Each slash picture's height, in pixels. |
extern Uint16 | TargetStrikePictures [] | Each Target Strike picture's byte offset in Target Strike's sprite sheet. |
extern Uint8 | TargetStrikeReach [] | How far each slash picture reaches past its middle, in pixels. |
extern Uint8 | TargetStrikeBiteStages [] | Which stage of the closing fangs each bite picture shows. |
extern Uint8 | TargetStrikeGlintDrawFlags [] | The flips a glint may be drawn with, one picked at random. |
extern Uint8 | ShatteringOpeningPieceWidths [] | The 33 pieces the screen shatters into as Death Plunge opens: their pictures and where they start. |
extern Uint8 | ShatteringOpeningPieceHeights [] | Each piece picture's height, in pixels. |
extern Uint16 | ShatteringOpeningPiecePictures [] | Each piece picture's byte offset in Death Plunge's sprite sheet. |
extern Uint8 | ShatteringOpeningPieceStartX [] | Each piece's starting x, in pixels. |
extern Uint8 | ShatteringOpeningPieceStartY [] | Each piece's starting y, in pixels. |
extern Sint8 | ElementBurstSparkX [] | The element burst's four corner sparks: their places and flips. |
extern Sint8 | ElementBurstSparkY [] | The four corner sparks: their y about the target, in pixels. |
extern Uint8 | ElementBurstGlintFlips [] | The four corner sparks' flips. |
extern const MODEL_VERTEX | CruelRuinStreakCorners [] | Cruel Ruin: the streak's corners, the discs' turns, the pillars, the blasts, and each streak's start, size, path and roll. |
extern const Uint16 | CruelRuinDiscPitches [] | Each disc's pitch, in 65,536ths of a turn. |
extern const Uint16 | CruelRuinDiscYaws [] | Each disc's yaw, in 65,536ths of a turn. |
extern const Uint8 | CruelRuinRibbonSways [] | How far each of Cruel Ruin's two ribbons sways, in pixels. |
extern const Uint8 | CruelRuinRibbonWidths [] | Each ribbon's width at its base, in pixels. |
extern const Uint8 | CruelRuinBlastTicks [] | The tick each blast goes off on. |
extern const Uint8 | CruelRuinBlastSizes [] | Each blast's size, in pixels. |
extern const Uint8 | CruelRuinBlastX [] | Each blast's x, in pixels. |
extern const Uint8 | CruelRuinBlastY [] | Each blast's y, in pixels. |
extern const Uint8 | CruelRuinStreakStarts [] | The tick each streak starts on. |
extern const Uint8 | CruelRuinStreakSizes [] | Each streak's size, in pixels. |
extern const Uint8 | CruelRuinStreakX [] | Each streak's x, in pixels. |
extern const Uint8 | CruelRuinStreakStepX [] | Each streak step's x, in pixels. |
extern const Uint8 | CruelRuinStreakStepY [] | Each streak step's y, in pixels. |
extern const Uint8 | CruelRuinStreakEndY [] | Each streak end's y, in pixels. |
extern const Sint32 | CruelRuinStreakRolls [] | Each streak's roll as it falls. |
extern const Uint8 | EclipseGlintFlips [] | 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 Uint8 | EclipseTileObjects [] | The dragon's sprites that take their tiles anew as it turns. |
extern const Uint8 | EclipseFillTicks [] | The ticks the canvas is filled anew on, a level from EclipseFillLevels each time. |
extern const Uint32 | EclipseFillLevels [] | The level the canvas is filled with at each of EclipseFillTicks. |
extern const Uint8 | EclipseObjectX [] | Each sprite's x, in pixels. |
extern const Uint8 | EclipseObjectZ [] | Each sprite's depth, in pixels. |
extern const Uint8 | EclipseRingGrowth [] | How fast each ring grows: its scale gains this many 64ths a tick, from a quarter. |
extern const Sint8 | EclipseRingHeights [] | How far each ring sits along its band's axis, in the band's own pixels before the ring is scaled and stretched. |
extern Uint8 | FormChangeWaveStarts [] | The form change's four waves: when each starts, how fast it grows and how far it is stretched. |
extern Uint8 | FormChangeWaveGrowth [] | How fast each wave grows: its scale gains this many times 2000/65536 a tick, from a quarter. |
extern Uint8 | FormChangeWaveStretch [] | How much taller than wide each wave is drawn, multiplying its scale. |
extern Uint8 | PrismShardStarts [] | Prism's crystal and the shards it breaks into: their places and pictures. |
extern Uint8 | PrismShardWidths [] | Each shard picture's width, in pixels. |
extern Uint8 | PrismShardHeights [] | Each shard picture's height, in pixels. |
extern Sint32 | PrismShardPictures [] | Each crystal shard picture's byte offset in Prism's sprite sheet. |
extern Uint8 | GatheringLightsCounts [] | The gathering lights' motes for each target, and the ticks before the targets' share, by mode. |
extern Uint8 | DjinnBeamsMotePictures [] | The Djinn beams: the motes' pictures as they sway, and the beam head's three pictures. |
extern Uint16 | DjinnBeamsHeadPictures [] | 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 Uint8 | DjinnBeamsHeadWidths [] | Each head picture's width, in pixels. |
extern Uint8 | DjinnBeamsHeadHeights [] | Each head picture's height, in pixels. |
extern Sint8 | LobbedShellsStyles [] | The lobbed shells: each style's record (LOBBED_SHELLS_SHATTER and the rest), and the shards' pictures. |
extern Uint8 | LobbedShellsShardWidths [] | Each shard picture's width, in pixels. |
extern Uint8 | LobbedShellsShardHeights [] | Each shard picture's height, in pixels. |
extern Uint16 | LobbedShellsShardPictures [] | Each shard picture's byte offset in the sprite sheet. |
extern Uint8 | CondemnPictureX [] | Where Condemn draws its seven pictures of the reaper and his crescent, by side. |
extern Uint8 | CondemnPictureY [] | The reaper's panels: their y in the canvas, in pixels, seven for each side. |
extern Sint32 | BindVertex [] | Bind's triangles: the first corner of each. |
extern Sint32 | BindTriangleStrikeVertex [] | The striking triangle's first corner, (0, 24, 0), in pixels; the same as BindVertex, read by the strike's own code. |
extern Sint32 | StarPoints [] | The star's ring: its points and radii, alternating. |
extern Uint8 | StarRadii [] | The ring radii, alternating, in pixels. |
extern Uint8 | ProcneGridX [] | Procne: the grid her nine sprites sit on, the four strikes' ticks and a strike's three pictures. |
extern Uint8 | ProcneGridY [] | The grid Procne's nine sprites sit on: each one's depth, in pixels. |
extern Uint16 | ProcneTicks [] | The ticks of the four comet strikes. |
extern Uint8 | ProcnePictureWidths [] | A strike's three pictures: their widths, in pixels. |
extern Uint8 | ProcnePictureHeights [] | A strike's three pictures: their heights, in pixels. |
extern Uint8 | ProcnePictureBiasY [] | A strike's three pictures: how far each is raised above its mark, in pixels. |
extern Uint16 | ProcnePictures [] | A strike's three pictures: their byte offsets in the sprite sheet. |
extern Uint8 | TiamatEmberSpeeds [] | Tiamat: the embers' speeds and sizes, a spark's two pixels, and the flame streak's six pictures. |
extern Uint8 | TiamatSparkPixels [] | A spark's picture: one pixel wide and two tall, both at level 32. |
extern Uint8 | TiamatEmberSizes [] | Each grain's size: the width of its mote picture, in pixels, which is twice as tall. |
extern Uint8 | TiamatEmberStreakWidths [] | 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 Uint8 | TiamatEmberStreakHeights [] | Each ember streak picture's height, in pixels. |
extern Uint8 | TiamatEmberStreakBiasY [] | How far below its anchor each ember streak picture's top goes, in pixels. |
extern Uint16 | TiamatEmberStreakPictures [] | Each ember streak picture's byte offset in the sheet. |
extern Uint8 | NereidColumns [] | Nereid: the three water columns' feet and the falling sparks' gravity. |
extern Sint32 | NereidGravity [] | Each falling spark's gravity, in pixels a tick each tick. |
extern Uint8 | VorticesCounts [][2] | The vortices: Froth's counts and the whirlwind's shapes, by variant (the FROTH_ and WHIRLWIND_ columns). |
extern Uint8 | VorticesShapes [][3] | Whirlwind, by variant: the WHIRLWIND_ columns. |
extern Uint8 | PrismCounts [] | Prism's crystals, ticks and damage tick, by variant. |
extern Uint16 | PlasmaSparks [] | Plasma: the sparks and shake of each lightning pillar, the columns, and the counts, by variant. |
extern Uint8 | PlasmaColumns [] | The columns' x, in pixels, seven for each side. |
extern Uint8 | PlasmaCounts [] | The lightning pillars, by variant. |
extern Uint16 | SparkGroupsShapes [][5] | The spark groups' shapes, by variant: sparks in a group, groups and each group's x. |
extern Uint8 | PlasmaFlashPictures [] | Plasma's flash burst picture for each three ticks of a flash. |
extern Uint8 | VolcanoCounts [] | Volcano's pillars of fire: how many, their depths and when each erupts. |
extern Sint8 | VolcanoDepths [][4] | Each pillar's depth on the field, in pixels, by variant. |
extern Uint8 | VolcanoStartTicks [] | The tick each pillar erupts on. |
extern Uint8 | TargetMotesGlintFlips [] | The target motes' glint flips. |
extern const Uint16 | ZaganChargePoints [][2] | Zagan: where his sprites sit as he charges and as he gallops, and his dust rings. |
extern const Uint16 | ZaganGallopPoints [][2] | Where each sprite of the galloping Zagan sits, x and y, in pixels. |
extern const Uint8 | ZaganRingStarts [] | The tick each dust ring starts on, counted from the blow. |
extern const Uint8 | ZaganRingGrowth [] | How fast each dust ring grows: its scale gains this many times 2000/65536 a tick. |
extern const Sint8 | ZaganRingHeights [] | Each dust ring's height, in pixels. |
extern Uint8 | CybeleObjectPoses [] | Cybele: her sprites' poses, and the pictures of her thorns, flowers, chips, sparks and blasts. |
extern Uint16 | CybeleThornPictures [] | Each thorn picture's byte offset in Cybele's sprite sheet. |
extern Uint8 | CybeleThornWidths [] | Each thorn picture's width, in pixels. |
extern Uint8 | CybeleThornHeights [] | Each thorn picture's height, in pixels. |
extern Uint16 | CybeleFlowerPictures [] | Each flower picture's byte offset in Cybele's sprite sheet. |
extern Uint8 | CybeleFlowerSizes [] | Each flower's size, in pixels. |
extern Uint16 | CybeleChipPictures [] | 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 Uint8 | CybeleChipWidths [] | Each chip picture's width, in pixels. |
extern Uint8 | CybeleChipHeights [] | Each chip picture's height, in pixels. |
extern Uint16 | CybeleSparkPictures [] | Each spark picture's byte offset in Cybele's sprite sheet. |
extern Uint8 | CybeleSparkSizes [] | Each spark's size, in pixels. |
extern Uint16 | CybeleBlastPictures [] | BlastSheet's seven pictures, decoded behind YellowRingSheet at CYBELE_BLAST_PICTURES: each one's byte offset from the start of Cybele's pictures. |
extern Uint16 | CybeleBlastSizes [] | Each blast picture's side, in pixels. |
extern Uint8 | BoreasPoints [][2] | Boreas: the crystals' points, the shake, his sprites' animations, and the pictures of the crystals, debris, spray, rising crystals and falls. |
extern Sint8 | BoreasShakeOffsets [] | The shake after the block lands, in pixels, one a tick: y moves by it and x by as much the other way. |
extern Uint16 | BoreasCrystalPictures [] | Each crystal picture's byte offset in Boreas's sprite sheet. |
extern Uint8 | BoreasCrystalWidths [] | Each crystal picture's width, in pixels. |
extern Uint8 | BoreasCrystalHeights [] | Each crystal picture's height, in pixels. |
extern Uint8 | BoreasAnimations [] | The animations Boreas's sprites cycle through, one every four ticks. |
extern Uint8 | BoreasDebrisWidths [] | Each debris picture's width, in pixels. |
extern Uint8 | BoreasDebrisHeights [] | Each debris picture's height, in pixels. |
extern Uint16 | BoreasDebrisPictures [] | Each debris picture's byte offset in Boreas's sprite sheet. |
extern Uint8 | BoreasSprayWidths [] | Each spray picture's width, in pixels. |
extern Uint8 | BoreasSprayHeights [] | Each spray picture's height, in pixels. |
extern Uint16 | BoreasSprayPictures [] | Each spray picture's byte offset in Boreas's sprite sheet. |
extern Uint16 | BoreasRisingCrystalPictures [] | 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 Uint8 | BoreasRisingCrystalWidths [] | Each ice block picture's width, in pixels. |
extern Uint8 | BoreasRisingCrystalHeights [] | Each ice block picture's height, in pixels. |
extern Uint8 | BoreasFallWidths [] | 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 Uint8 | BoreasFallHeights [] | Each ice block picture's height, in pixels. |
extern Uint16 | BoreasFallPictures [] | Each ice block picture's byte offset in Boreas's sprite sheet. |
extern Sint32 | DrainGravities [] | Drain's motes: their gravities, and their size by mode. |
extern Uint8 | DrainMotesSizes [] | The mote's width, in pixels, by mode; it is drawn twice as tall. |
extern Uint8 | QuakeTimings [][3] | Quake's ticks, rise and shake, by variant. |
extern Uint8 | FireCounts [] | Fire's counts by variant, and its flare pictures. |
extern Uint8 | FireEmberStreakWidths [] | 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 Uint8 | FireEmberStreakHeights [] | Each ember streak picture's height, in pixels. |
extern Uint8 | FireEmberStreakBiasY [] | How far below its anchor each ember streak picture's top goes, in pixels. |
extern Uint16 | FireEmberStreakPictures [] | Each ember streak picture's byte offset in the sheet. |
extern Uint8 | FrostMoundSpots [] | Frost: where the mounds rise, its timings by variant, and the pictures of its motes, mounds and ice chips. |
extern Uint8 | FrostTimings [] | Each variant's timing, three bytes (FROST_TIMING_MOTES, FROST_TIMING_COLUMNS, FROST_TIMING_BURST_TICK). |
extern Uint8 | FrostMoteWidths [] | IceChipSheet's eight chips, after its three mounds, as Frost's motes read them: each one's width, in pixels. |
extern Uint8 | FrostMoteHeights [] | Each ice chip picture's height, in pixels. |
extern Uint16 | FrostMoteCells [] | Each ice chip picture's byte offset in the sheet. |
extern Uint16 | FrostMoundPictures [] | Each mound picture's byte offset in Frost's sprite sheet. |
extern Uint8 | FrostMoundHeights [] | Each mound picture's height, in pixels. |
extern Uint8 | FrostChipWidths [] | 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 Uint8 | FrostChipHeights [] | Each ice chip picture's height, in pixels. |
extern Uint16 | FrostChipCells [] | Each ice chip picture's byte offset in the sheet. |
extern Uint8 | RaySparks [][2] | The sparks each of Ray's bolts throws a tick, by variant. |
extern Uint8 | EruptionCounts [][3] | Eruption's counts by variant, and its puffs' pictures. |
extern Uint16 | EruptionPuffPictures [] | BlastSheet's seven pictures, an explosion flaring up and fading to smoke: each one's byte offset in the sheet. |
extern Uint16 | EruptionPuffSizes [] | Each blast picture's side, in pixels; each is square. |
extern Uint8 | BurstShowerGlintFlips [] | The burst shower's glint flips. |
extern Sint32 | AtalantaUnitScale [] | Atalanta's sprites' scale, one to one. |
extern Uint8 | GrowthVineWidths [] | Growth: the vines' and pillars' pictures, the columns by strength and where they root, how tall they grow, and the dust puffs. |
extern Uint8 | GrowthHeightLimits [] | The tallest a column grows, in pixels, by column in threes. |
extern Uint16 | GrowthVinePictures [] | Each vine picture's byte offset in Growth's sprite sheet. |
extern Uint8 | GrowthPillarWidths [] | Each pillar picture's width, in pixels. |
extern Uint16 | GrowthPillarPictures [] | Each pillar picture's byte offset in Growth's sprite sheet. |
extern Uint8 | GrowthColumnCounts [] | The columns, by strength. |
extern Uint8 | GrowthColumnX [] | Each column's root, its x in the canvas, in pixels. |
extern Sint8 | GrowthPillarHeights [] | Each pillar picture's height, in pixels. |
extern Sint8 | GrowthPuffWidths [] | Each puff picture's width, in pixels. |
extern Uint8 | GrowthPuffHeights [] | Each puff picture's height, in pixels. |
extern Uint16 | GrowthPuffPictures [] | Each dust puff picture's byte offset in Growth's sprite sheet. |
extern const Sint8 | VineColumnOffsets [] | Each vine's x about the middle of the targets. |
extern Uint8 | ThornKinds [] | Each thorn's kind (THORN_MIRRORED, THORN_SMALL). |
extern Sint8 | ThornX [] | The thorns: where each roots, how many by strength, and the dust puffs as each bursts out. |
extern Uint8 | ThornCounts [] | The thorns, by strength. |
extern Sint8 | ThornPuffWidths [] | Each thorn puff picture's width, in pixels. |
extern Uint8 | ThornPuffHeights [] | Each dust puff picture's height, in pixels, as a thorn bursts out. |
extern Uint16 | ThornPuffPictures [] | Each thorn puff picture's byte offset in Growth's sprite sheet. |
extern Uint8 | BoltCounts [] | Bolt: its sparks, glints, spread and bolts by strength, and how its glints are flipped and blended. |
extern Uint8 | BoltGlintFlips [] | The flips a glint may be drawn with, one picked at random. |
extern Uint8 | BoltGlintModes [] | How the glints are blended, by variant. |
extern Uint8 | ProjectileVolleyCometHeights [] | 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 Uint8 | ProjectileVolleyModes [][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 Uint8 | ProjectileVolleyFlashWidths [] | Each flash picture's width, in pixels. |
extern Uint8 | ProjectileVolleyFlashHeights [] | Each flash picture's height, in pixels. |
extern Uint8 | ProjectileVolleyFlashSteps [] | How far each step of the flash spreads, in pixels. |
extern Uint8 | ProjectileVolleyFlashRises [] | How far each step of the flash rises, in pixels. |
extern Uint16 | ProjectileVolleyFlashPictures [] | Each flash picture's byte offset in Projectile Volley's sprite sheet. |
extern Uint16 | ProjectileVolleyPelletPictures [] | The four small ice chip pictures, as HailPictures gives them, the volley keeping its own copy: their byte offsets in the sheet. |
extern Uint8 | ProjectileVolleyGlintFlips [] | The glints' flips, one picked at random. |
extern const Uint8 | DjinnAttacksLaunchTicks [] | The ticks the Djinni throws its five flames on. |
extern Uint8 | HailPictureWidths [] | Hail's four ice chip pictures. |
extern Uint8 | HailPictureHeights [] | Each ice chip picture's height, in pixels. |
extern Uint16 | HailPictures [] | Each ice chip picture's byte offset in the sheet, as FrostMoteCells' last four give them. |
extern const Uint8 | GroundCrackleFlips [] | Ground: the crackles' flips, and the portals' pictures and places. |
extern const Uint8 | GroundPortalWidths [] | Each portal picture's width, in pixels. |
extern const Uint8 | GroundPortalHeights [] | Each portal picture's height, in pixels. |
extern const Uint16 | GroundPortalPictures [] | Each portal picture's byte offset in Hail's sprite sheet. |
extern const Uint8 | GroundPortalX [] | Each portal's x, in pixels. |
extern const Uint8 | GroundPortalY [] | Each portal's y, in pixels. |
extern const Uint8 | ThorTargetPalettes [] | Thor: the palettes a struck target flashes in, and the crackles' flips. |
extern const Uint8 | ThorCrackleFlips [] | The flips a crackle may be drawn with, one picked at random. |
extern Uint8 | SpireShardOffsets [] | Spire: where each shard sits in the boulder, the boulders' x and drop ticks, and how many by variant. |
extern Sint8 | SpireRockX [] | Each boulder's x about the middle of the canvas, in pixels. |
extern Uint8 | SpireDropTicks [] | The tick each boulder is dropped on; it lands SPIRE_FALL_TICKS later. |
extern Uint8 | SpireRockCounts [] | The boulders, by variant. |
extern Uint8 | FlurryStyles [][8] | The flurries: their styles (FLURRY_COLUMN) and the glints' flips. |
extern const Uint8 | FlurryGlintFlips [] | A glint's four flips. |
extern Uint16 | GaiaRowPictures [] | Gaia: the growing wall's rows, the flame's pictures, the wall layer's shift and the late rocks. |
extern Uint8 | GaiaRowWidths [] | The growing wall's nine rows: their widths, in pixels. |
extern Uint16 | GaiaFlamePictures [] | The flame, EarthWallSheet's three half walls of flame as DjinnBeamsHeadPictures has them: their byte offsets where Gaia decodes the sheet. |
extern Uint8 | GaiaFlameWidths [] | The flame's three pictures: their widths, in pixels. |
extern Uint8 | GaiaFlameHeights [] | The flame's three pictures: their heights, in pixels. |
extern Sint8 | GaiaBg2Shifts [][3] | The wall layer's shift, in pixels, by side and variant. |
extern Uint8 | GaiaLateRockColumns [] | The x of each rock that falls late, in pixels. |
extern const Uint8 | UlyssesObjectX [] | Ulysses: where the mage's sprites sit, the summon's pictures, and where its six particles start. |
extern const Uint8 | UlyssesObjectZ [] | Each sprite's depth, in pixels. |
extern const Uint8 | UlyssesPictureWidths [] | Each Ulysses picture's width, in pixels. |
extern const Uint8 | UlyssesPictureHeights [] | Each Ulysses picture's height, in pixels. |
extern const Uint16 | UlyssesPictures [] | Each Ulysses picture's byte offset in Ulysses's sprite sheet. |
extern const Sint8 | UlyssesParticleStarts [][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 Uint8 | SwirlSwipePictureWidths [] | The swirl swipe's six pictures: their sizes, pictures, x and rise. |
extern const Uint8 | SwirlSwipePictureHeights [] | Each Swirl Swipe picture's height, in pixels. |
extern const Uint16 | SwirlSwipePictures [] | 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 Uint8 | SwirlSwipePictureX [] | Each picture's x, in pixels. |
extern const Sint8 | SwirlSwipePictureBiasY [] | How far below its anchor each picture's top goes, in pixels. |
extern const Uint8 | AzulPartPoints [][2] | Azul: the points of the battlefield's shattered parts, and the serpent's sprites, early and late. |
extern const SCALE | AzulUnitScale | The serpent's sprites' scale, one to one. |
extern const Uint8 | AzulObjectX [] | Each sprite's x, in pixels. |
extern const Uint8 | AzulObjectZ [] | Each sprite's depth, in pixels. |
extern const SCALE | AzulLateUnitScale | The late sprites' scale, one to one. |
extern const Sint8 | AzulLateObjectX [] | Each late sprite's x, in pixels. |
extern const Sint8 | AzulLateObjectZ [] | Each late sprite's depth, in pixels. |
extern Uint8 | BeamPictureWidths [] | The plain attacks' beam: its six pictures and how far each reaches. |
extern Uint8 | BeamPictureHeights [] | Each slash picture's height, in pixels. |
extern Uint16 | BeamPictures [] | Each slash picture's byte offset in the beam's pictures. |
extern Uint8 | BeamPictureReaches [] | How far each slash picture reaches past its middle, in pixels. |
extern const Uint8 | CastingImpactSquallGlintFlips [] | 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 Uint8 | CastingImpactSapGlintFlips [] | The flips a glint may be drawn with, one picked at random. |
extern const Uint8 | CastingImpactBitePictures [] | The fangs' picture for each two of their first eight ticks, by number. |
extern const Uint16 | CastingImpactRaidensWrathPictures [] | Each Raiden's Wrath picture's byte offset in the casting impacts' sprite sheet. |
extern const Uint16 | CastingImpactRaidensWrathWidths [] | Each Raiden's Wrath picture's width, in pixels. |
extern const Uint16 | CastingImpactRaidensWrathHeights [] | Each Raiden's Wrath picture's height, in pixels. |
extern Uint16 | CastingImpactRaidensWrathX [] | Each Raiden's Wrath's x, in pixels. |
extern Uint16 | CastingImpactRaidensWrathY [] | Each Raiden's Wrath's y, in pixels. |
extern const Uint16 | CastingImpactApocalypsePictures [] | Each Apocalypse picture's byte offset in the casting impacts' sprite sheet. |
extern const Uint16 | CastingImpactApocalypseWidths [] | Each Apocalypse picture's width, in pixels. |
extern const Uint16 | CastingImpactApocalypseHeights [] | Each Apocalypse picture's height, in pixels. |
extern const Uint16 | CastingImpactApocalypseX [] | Each Apocalypse's x, in pixels. |
extern Uint16 | CastingImpactApocalypseY [] | Each Apocalypse's y, in pixels. |
extern const Uint16 | CastingImpactApocalypseBurstPictures [] | Each Apocalypse burst picture's byte offset in the casting impacts' sprite sheet. |
extern const Uint8 | CastingImpactApocalypseBurstWidths [] | Each Apocalypse burst picture's width, in pixels. |
extern const Uint8 | CastingImpactApocalypseBurstHeights [] | Each Apocalypse burst picture's height, in pixels. |
extern Uint8 | CastingImpactApocalypseBurstPoints [][2] | Each Apocalypse burst's point, x and y, in pixels. |
extern const Uint16 | CastingImpactIceChipPictures [] | 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 Uint8 | CastingImpactStunBoltGlintFlips [] | The flips a glint may be drawn with, one picked at random. |
extern const Uint8 | CastingImpactStunJipBandStarts [] | The tick each Stun Jip band starts on, counted from the impact's fourth tick. |
extern const Uint8 | CastingImpactStunJipBandGrowth [] | How fast each Stun Jip band grows: its scale gains this many times 1500/65536 a tick. |
extern const Sint8 | CastingImpactStunJipBandHeights [] | Each Stun Jip band's height, in pixels. |
extern const Uint8 | CastingImpactArmorCrushWaveStarts [] | The tick each Armor Crush wave starts on, counted from the impact's fourth tick. |
extern const Uint8 | CastingImpactArmorCrushWaveGrowth [] | How fast each Armor Crush wave grows: its scale gains this many times 2000/65536 a tick, from a quarter. |
extern const Uint8 | CastingImpactArmorCrushWaveStretch [] | How much taller than wide each Armor Crush wave is drawn, multiplying its scale. |
extern Uint8 | NereidCopyColumns [] | The unused copy of Nereid: its columns and gravity. |
extern const Sint32 | NereidCopyGravity [] | Each falling spark's gravity, in pixels a tick each tick; the same as NereidGravity, the particle streams keeping their own copy. |
extern const Uint8 | SummonFormationNereidX [] | The summons' sprite formations, each sprite's x and depth: Nereid's, Cybele's, Tiamat's two and Megaera's. |
extern const Uint8 | SummonFormationNereidZ [] | The twelve-sprite formation: each sprite's depth, in pixels. |
extern const Uint8 | SummonFormationCybeleX [] | The eight-sprite formation facing right: each sprite's x, in pixels. |
extern const Uint8 | SummonFormationCybeleZ [] | The eight-sprite formation facing right: each sprite's depth, in pixels. |
extern const Uint8 | SummonFormationTiamatAlternateX [] | The other eight-sprite formation: each sprite's x, in pixels. |
extern const Uint8 | SummonFormationTiamatAlternateZ [] | The other eight-sprite formation: each sprite's depth, in pixels. |
extern const Uint8 | SummonFormationTiamatX [] | The small eight-sprite formation: each sprite's x, in pixels. |
extern const Uint8 | SummonFormationTiamatZ [] | The small eight-sprite formation: each sprite's depth, in pixels. |
extern const Sint8 | SummonFormationMegaeraX [] | The wide formation: each sprite's x, in pixels. |
extern const Uint8 | SummonFormationMegaeraZ [] | The wide formation: each sprite's depth, in pixels. |
extern Uint8 | ImpactBurstPictureWidths [] | The impact burst's pictures. |
extern Uint8 | ImpactBurstPictureHeights [] | Each impact burst picture's height, in pixels. |
extern Uint16 | ImpactBurstPictures [] | Each impact burst picture's byte offset in Helm Splitter's sprite sheet. |
extern Sint16 | StarfieldFallOrbitPoints [][3] | The starfield fall: the orbiting sparks, the fireballs and the flash pictures. |
extern Sint16 | StarfieldFallFireballPoints [][2] | Each fireball's point, x and y, in pixels. |
extern Uint16 | StarfieldFallFlashPictures [] | BlastSheet's seven pictures, as EruptionPuffPictures gives them, the particle streams keeping their own copy: each one's byte offset in the sheet. |
extern Uint16 | StarfieldFallFlashSizes [] | Each blast picture's side, in pixels. |
extern Uint8 | RamsesStatueColumns [] | Ramses: where each of the statue's sprites sits, and the puffs' pictures. |
extern Uint8 | RamsesStatueRows [] | Each of the statue's sprites: its y in the statue, in pixels. |
extern Uint16 | RamsesPuffPictures [] | BlastSheet's seven pictures, as EruptionPuffPictures gives them, Ramses keeping its own copy: each one's byte offset in the sheet. |
extern Uint16 | RamsesPuffSizes [] | Each blast picture's side, in pixels. |
extern Uint8 | RagnarokStrikeColumns [] | Ragnarok: the strikes' columns and the flash's pictures. |
extern Uint8 | RagnarokFlashPictures [] | The flash burst's picture for each three ticks of a flash, by number. |
extern Uint8 | TitanBladeFlashPictures [] | Titan Blade: the flash's pictures and the dust's gravities. |
extern Sint32 | TitanBladeDustGravity [] | The dust's four gravities, in pixels a tick each tick. |
extern const Uint8 | JudgmentShieldSprites [] | Judgment: the sprites its shield is copied into, and the shards' pictures. |
extern const Uint16 | JudgmentShardPictures [] | Each shard picture's byte offset in Judgment's sprite sheet. |
extern const Uint8 | JudgmentShardWidths [] | Each shard picture's width, in pixels. |
extern const Uint8 | JudgmentShardHeights [] | Each shard picture's height, in pixels. |
extern Uint8 | KirinColumns [] | Kirin: the row's x offsets and heights. |
extern Uint8 | KirinRows [] | Each of Kirin's sprites: its y, in pixels. |
extern Sint32 | NeptuneGravity [] | Neptune's spray: its four gravities. |
extern const Uint16 | UndeadSwordPuffPictures [] | Undead Sword's sparks: their pictures and sizes. |
extern const Uint16 | UndeadSwordPuffSizes [] | Each blast picture's side, in pixels; the six words after the seventh are never read. |
extern const Uint8 | WindFunnelCounts [] | The wind funnels, by mode. |
extern const Uint8 | DiamondBergRingStarts [4] | Diamond Berg: its ripples, and its flashes' roll and pitch. |
extern const Uint8 | DiamondBergRingGrowth [4] | How fast each ripple grows: its scale gains this many times DIAMOND_BERG_RIPPLE_GROWTH a tick. |
extern const Sint8 | DiamondBergRingHeights [4] | Each ripple's height, in pixels. |
extern const Sint16 | DiamondBergShardRolls [8] | Each flash's roll. |
extern const Sint16 | DiamondBergShardPitches [8] | Each flash's pitch. |
extern const Uint8 | GeodeWaveStarts [] | Geode's rings: when each starts, how fast it grows, and its height. |
extern const Uint8 | GeodeWaveGrowth [] | How fast each wave grows: its scale gains this many times 2000/65536 a tick, from a half. |
extern const Sint8 | GeodeWaveHeights [] | Each wave's height, in pixels. |
extern Uint16 | SoulShatterSparkPictures [] | Soul Shatter's sparks: their pictures and sizes. |
extern Uint16 | SoulShatterSparkSizes [] | Each blast picture's side, in pixels. |
extern const Sint8 | SeracRowHeights [] | Serac: the spire's rings, and the ripples of mist. |
extern const Sint8 | SeracRowRadii [] | The radii of the cone's rings, in pixels. |
extern const Uint8 | SeracRingStarts [] | Each ripple's delay, in ticks. |
extern const Uint8 | SeracRingGrowth [] | How fast each ripple grows: its scale gains this many times SERAC_RING_GROWTH a tick. |
extern const Sint8 | SeracRingHeights [] | Each ripple's height, in pixels. |
extern Uint8 | HeavyBlowStrikeTicks [] | The heavy blow: its strike tick and chips, by mode, and a chip's two pixels. |
extern Uint8 | HeavyBlowChipCounts [] | The chips, by mode. |
extern const Uint8 | HeavyBlowChipPixels [] | A chip's two pixels. |
extern Sint16 | CoolColumnX [] | Cool: its columns of ice and its sparks. |
extern Uint8 | CoolColumnStarts [] | The tick each column starts on. |
extern Uint8 | CoolColumnHeights [] | Each column's full height, in pixels. |
extern Uint8 | CoolColumnLeans [] | Each column's lean. |
extern Uint16 | CoolSparkPictures [] | BlastSheet's seven pictures, as EruptionPuffPictures gives them, Cool keeping its own copy: each one's byte offset in the sheet. |
extern Uint16 | CoolSparkSizes [] | Each blast picture's side, in pixels. |
extern const Sint8 | WyrdCurseDropBounces [] | Wyrd Curse's drops: their bounce speeds. |
extern const Uint8 | BoltTrailGlintFlips [] | The ball lightning's glint flips. |
extern const Uint8 | MegaeraGlintFlips [] | Megaera's glints: their flips and how they are blended, by variant. |
extern const Uint8 | MegaeraGlintModes [] | How the glints are blended, by variant. |
extern const Sint32 | LightSurgeRingSizes [4] | Light Surge's four rings: their full sizes, shades and sways. |
extern const Sint8 | LightSurgeRingShades [4] | Each ring's shade, before it dims. |
extern Sint8 | LightSurgeRingSways [4] | How far each ring sways, in pixels at the sway's widest. |
extern const Uint8 | DjinniChargeEntranceFlags [] | The Djinni charge: the Djinni's entrance by mode, and the debris's gravities. |
extern const Sint32 | DjinniChargeDebrisGravity [4] | The debris's gravities, in pixels a tick each tick: negative, so it rises. |
extern const Sint8 | GaspFamilyStreakSteps [] | The Gasp family: the streak's steps and mesh, and the counts by variant. |
extern const Uint16 | GaspFamilyStreakMesh [] | The streak's mesh. |
extern const Uint8 | GaspFamilyCounts [] | Gasp Family's counts, by variant. |
extern Uint8 | CharonFlashTicks [] | The ticks Charon's canvas flashes. |
extern const MODEL_VERTEX | BattleEffectOctagonBandCorners [] | Models several effects share: a band's and a cylinder's corners. |
extern const MODEL_VERTEX | BattleEffectCylinderCorners [] | The ripple's 32 corners: a ring of sixteen below and one above. |
extern const Uint16 | CastingImpactBandMesh [] | The casting impacts' band mesh. |
extern const Uint16 | GeyserMesh [] | The geyser's mesh. |
extern const Uint16 | BattleEffectCylinderMesh [] | The cylinder's mesh, the ripples and rings several effects spread. |
extern const MODEL_VERTEX | GeodeRingCorners [] | Geode's ring's corners. |
extern const MODEL_VERTEX | BattleEffectRingCorners [] | Models several effects share: a ring, a triangle, beams and squares, their corners and meshes. |
extern const Uint16 | BattleEffectRingMesh [] | The ring's mesh. |
extern const Uint16 | BattleEffectTriangleMesh [] | 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_VERTEX | BattleEffectTriangleCorners [] | A small triangle lying on the ground: its three corners. |
extern const MODEL_VERTEX | BattleEffectTaperedBeamCorners [] | A beam 127 tall, 12 wide at the top and 4 at its foot: its four corners. |
extern const MODEL_VERTEX | BattleEffectBeamCorners [] | A beam 127 tall and 12 wide standing on the origin: its four corners. |
extern const MODEL_VERTEX | BattleEffectLongBeamCorners [] | A beam 131 tall and 12 wide reaching below the origin: its four corners. |
extern const MODEL_VERTEX | BattleEffectSquareCorners [] | A 64 by 64 square about the origin: its four corners. |
extern const MODEL_VERTEX | BattleEffectStandingSquareCorners [] | A 64 by 64 square standing on the origin: its four corners. |
extern MODEL_VERTEX | LegendFanFlameCorners [] | A flame of Legend's fan: its corners. |
extern const MODEL_VERTEX | BattleEffectGroundSquareCorners [] | Models several effects share: a square on the ground, and the meshes of small squares and a column. |
extern const Uint16 | BattleEffectSmallSquareMesh [] | A small square's mesh. |
extern const Uint16 | BattleEffectSmallSquareMeshReversed [] | The small square's mesh with its triangles wound the other way. |
extern const Uint16 | BattleEffectColumnMesh [] | A column's mesh. |
extern const Uint16 | HeavyBlowSwordMesh [] | The heavy blow's sword mesh. |
extern const Uint16 | BattleEffectTallMesh [] | A tall quad's mesh. |
extern const Uint16 | HauresBandMesh [] | Haures's band mesh. |
extern const Uint16 | CatastropheForkMesh [] | Catastrophe's burst mesh. |
extern const Uint16 | BattleEffectSquareMesh [] | The square meshes several effects share. |
extern const Uint16 | BattleEffectLargeSquareMesh [] | A large square's mesh. |
extern const Uint16 | HauresBurstMesh [] | Haures's burst mesh. |
extern Uint8 | HeartbreakSparkBurstWidths [] | Heartbreak: the burst of sparks at the figure's hand, and the heart in its fist burning away. |
extern Uint8 | HeartbreakSparkBurstHeights [] | Each spark burst picture's height, in pixels. |
extern Uint16 | HeartbreakSparkBurstPictures [] | Each spark burst picture's byte offset in Heartbreak's sprite sheet. |
extern Uint8 | HeartbreakHeartBurnHeights [] | Each heart burn picture's height, in pixels. |
extern Uint8 | HeartbreakHeartBurnY [] | Each heart burn picture's y, in pixels. |
extern Uint16 | HeartbreakHeartBurnPictures [] | Each heart burn picture's byte offset in Heartbreak's sprite sheet. |
extern const Uint8 | RagingHeatStyles [][4] | Raging Heat's sparks, spread, rings and embers, by level. |
extern Uint8 | JuggleStyles [][7] | Juggle's styles, one row a mode. |
extern const Uint8 | FloraPetalSizes [] | Flora: the glows' sizes and pictures, and when and where each ring of light opens and how it is turned. |
extern const Uint16 | FloraPetalPictures [] | Each petal picture's byte offset in Flora's sprite sheet. |
extern const Uint16 | FloraBloomTicks [] | The tick each ring of light starts on. |
extern const Sint16 | FloraBloomRolls [] | Each ring of light's roll; the third, off the 256ths of a turn the others keep, is in 65,536ths. |
extern const Sint16 | FloraBloomPitches [] | Each ring of light's pitch; the third is in 65,536ths of a turn. |
extern const Sint8 | FloraBloomX [] | Each bloom's x, in pixels. |
extern const Sint8 | FloraBloomY [] | Each bloom's y, in pixels. |
extern const Uint16 | SabreDanceDaggerMesh [] | Sabre Dance's dagger: its mesh and corners. |
extern const MODEL_VERTEX | SabreDanceDaggerCorners [] | The dagger, 32 by 80 pixels from (-16, -16) to (16, 64), the point down: its four corners. |
extern const Uint16 | FumeLevels [][FUME_COLUMNS] | Fume's levels, one row a level (FUME_LEVEL_COLUMN). |
extern const Sint32 | OceanFistDropGravity [4] | Ocean Fist's early drops: their gravities. |
extern const Sint32 | RushingStrikeScales [] | The rushing strike's streak scale, by mode. |
extern const Sint32 | MirroredWallScales [] | The mirrored wall: its scale by mode and its bursts' shades. |
extern const Sint32 | MirroredWallShades [] | The wall's shade, by mode. |
extern Sint8 | DaedalusShakeOffsets [] | Daedalus: the shake, the birds' wing beats and drifts, the clatters, the rings, the leg, the splashes and the dives. |
extern Uint8 | DaedalusWingBeatPictures [] | A bird's picture for each four ticks of its wing beat, by number. |
extern Uint8 | DaedalusBirdStarts [][2] | Where each bird starts, x and y in the canvas, in pixels. |
extern Sint32 | DaedalusBirdSpeeds [][2] | Each bird's speed, x and y, in 65,536ths of a pixel a tick: up and to the left. |
extern Uint8 | DaedalusBirdTicks [] | The tick each bird appears on. |
extern Uint16 | DaedalusClatterTicks [] | The ticks the machine clatters on. |
extern Uint16 | DaedalusRingStarts [] | The tick each ring starts on. |
extern Sint8 | DaedalusRingX [] | Each ring's x, in pixels. |
extern Uint8 | DaedalusRightLegPoints [][2] | Each sprite of the right leg: its point, x and y, in pixels. |
extern Uint8 | DaedalusSplashPoints [][6][2] | Each splash's point, x and y, in pixels. |
extern Uint16 | DaedalusDiveStarts [] | The tick each particle starts on. |
extern const Uint8 | DaedalusStrikeHitTicks [] | The seven ticks Daedalus's strikes land on. |
extern const Uint8 | VengeanceArrowStrikes [][7] | Which of Vengeance's seven arrows strike, by level. |
extern const Uint16 | LifeShearPaleBladeMesh [] | Life Shear's scythe: its two blades' meshes and its corners. |
extern const Uint16 | LifeShearOrangeBladeMesh [] | The orange blade's mesh. |
extern const MODEL_VERTEX | LifeShearBladeCorners [] | The scythe, 128 by 32 pixels: its four corners. |
extern const Sint32 | GeyserDropGravity [] | The geyser's drops: their gravity and smallest picture, by mode (enum GEYSER_MODE). |
extern const Sint8 | GeyserDropMinSizes [] | The drops' smallest picture size, by mode. |
extern Uint8 | BubbleColumnPictureWidths [] | The unused bubble column's glowing oval, fifteen pictures. |
extern Uint8 | BubbleColumnPictureHeights [] | The glowing oval's fifteen pictures: their heights, in pixels. |
extern Uint16 | BubbleColumnPictures [] | The glowing oval's fifteen pictures: their byte offsets in the sprite sheet. |
extern Uint8 | CoatlicuePictureWidths [] | Coatlicue: the bubbles' pictures, the bursts of bubbles, the ring's, flashes' and glows' ticks, and the coils. |
extern Uint8 | CoatlicuePictureHeights [] | Each Coatlicue picture's height, in pixels. |
extern Uint16 | CoatlicuePictures [] | Each Coatlicue picture's byte offset in Coatlicue's sprite sheet. |
extern Uint16 | CoatlicueBurstTicks [] | The tick each burst of bubbles starts on. |
extern Uint8 | CoatlicueBurstX [] | Each burst's x, in pixels. |
extern Uint8 | CoatlicueBurstY [] | Each burst's y, in pixels. |
extern Uint8 | CoatlicueBurstSpreadX [] | How widely each burst scatters in x, in pixels. |
extern Uint8 | CoatlicueBurstSpacingY [] | How far apart each burst's bubbles start in y, in pixels. |
extern Sint8 | CoatlicueBurstVelocityX [] | Each burst's speed in x, in 16ths of a pixel a tick. |
extern Sint8 | CoatlicueBurstVelocityY [] | Each burst's speed in y, in 16ths of a pixel a tick. |
extern Sint8 | CoatlicueBurstZ [] | Each burst's depth, in pixels. |
extern Sint8 | CoatlicueBurstVelocityZ [] | Each burst's speed in depth, in 64ths of a pixel a tick. |
extern Uint8 | CoatlicuePictureBias [] | The smallest bubble picture for each kind of bubble. |
extern Uint16 | CoatlicueRingTicks [] | The tick each flash of the fire ring starts on. |
extern Uint16 | CoatlicueFlashTicks [] | The ticks the screen flashes on. |
extern Uint16 | CoatlicueGlowTicks [] | The tick the cog's glow starts on. |
extern Uint8 | CoatlicueCoilStarts [] | The tick each coil starts to grow on. |
extern Uint16 | CoatlicueCoilScales [] | Each coil's first scale, in 65,536ths. |
extern Uint16 | CoatlicueCoilRolls [] | Each coil's roll as it starts; it turns a 256th of a turn a tick. |
extern Uint16 | CoatlicueCoilGrowth [] | How fast each coil grows, in 65,536ths of its scale a tick. |
extern Uint16 | CoatlicueCoilMaxScales [] | Each coil's largest scale, in 65,536ths. |
extern const Uint16 | CatastropheFlashTicks [] | Catastrophe: the flashes, the demon's, armour's and mirrored demon's sprites, the bursts of lightning, the strikes and the glints. |
extern const Uint16 | CatastropheFlashLengths [] | How long each flash of the first act lasts, in ticks. |
extern const Uint8 | CatastropheDemonX [] | Each of the demon's sprites: its x, in pixels. |
extern const Uint8 | CatastropheDemonZ [] | Each of the demon's sprites: its depth, in pixels. |
extern const Uint8 | CatastropheArmourX [] | Each of the armour's sprites: its x, in pixels. |
extern const Uint16 | CatastropheArmourZ [] | Each of the armour's sprites: its depth, in pixels. |
extern const Uint8 | CatastropheMirroredDemonX [] | Each of the mirrored demon's sprites: its x, in pixels. |
extern const Uint8 | CatastropheMirroredDemonZ [] | Each of the mirrored demon's sprites: its depth, in pixels. |
extern const Uint16 | CatastropheForkStarts [] | The tick each fork of lightning strikes on. |
extern const Uint8 | CatastropheForkX [] | Each fork's x, in pixels. |
extern const Uint8 | CatastropheForkY [] | Each fork's y, in pixels. |
extern const Uint8 | CatastropheForkPictures [] | Each fork's picture of lightning, by number. |
extern const Uint16 | CatastropheCanvasFlashTicks [] | The ticks the canvas flashes on. |
extern const Uint8 | CatastropheStrikeX [] | Each step's x, in pixels, a row of twelve for each strike. |
extern const Uint8 | CatastropheStrikeY [] | Each step's y, in pixels, a row of twelve for each strike. |
extern const Uint16 | CatastropheStrikeTicks [] | The strike ticks, a row of steps for each of the three strikes; 65535 ends a row, a tick that never comes. |
extern const Uint8 | CatastropheStrikeSpeedsY [] | How fast each step's bolt falls, in quarters of a pixel a tick. |
extern const Sint16 | CatastropheStrikeRolls [] | 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 Sint16 | CatastropheStrikeTurns [] | How fast each step's bolt turns, in 32,768ths of a turn a tick. |
extern const Sint16 | CatastropheStrikePictures [] | Which of the three jagged streak pictures each step draws; -1 draws none. |
extern const Uint8 | CatastropheGlintFlips [] | The flips a glint may be drawn with, one picked at random. |
extern const Sint16 | CatastropheBoltRolls [] | 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 Uint8 | HauresParticleX [] | Haures: the particles, his scale, the wings' shapes and morphs, the parts and the bands. |
extern Sint32 | HauresUnitScale [] | Haures's sprites' scale, one to one. |
extern const Uint8 | HauresMoundShapes [] | The wings' shapes, 32 heights a shape, in pixels; the wings morph from one to the next. |
extern Uint8 | HauresMoundMorphSteps [] | How many ticks each morph of the wings takes. |
extern const Uint8 | HauresPartPoints [] | Each shard's points, its middle then its four corners, x and y in screen pixels. |
extern const Uint8 | HauresBandStarts [] | The tick each band starts on. |
extern Uint8 | HelmSplitterPictureWidths [] | Helm Splitter's pictures, and where each is drawn. |
extern Uint8 | HelmSplitterPictureHeights [] | Each Helm Splitter picture's height, in pixels. |
extern Uint16 | HelmSplitterPictures [] | Each Helm Splitter picture's byte offset in Helm Splitter's sprite sheet. |
extern Sint8 | HelmSplitterPictureBiasX [] | How far right of its anchor each picture is drawn, in pixels, mirrored on the other side. |
extern Sint8 | HelmSplitterPictureBiasY [] | How far below its anchor each picture's top goes, in pixels. |
extern Uint8 | DragonCloudSparkCounts [] | How many of Dragon Cloud's embers are sparks, by variant. |
extern Uint8 | ElementCardsTicks [] | The element cards: each card's length and how its sparks move. |
extern SPARK_MOTION | ElementCardsSparkMotions [] | How each card's sparks move. |
extern Uint8 | TripleChompBiteTicks [] | Triple Chomp's three bites' ticks. |
extern Uint8 | BreathTicks [] | The breaths: their lengths, bursts, glows, jaws and the ticks they hit. |
extern Uint8 | BreathBurstTicks [] | The tick the burst starts on, by breath. |
extern Uint8 | BreathMaxSizes [] | The glow's widest size, in pixels, by variant. |
extern Uint8 | BreathRingStarts [] | 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 Uint8 | BreathRingGrowth [] | How fast each jaw grows: its scale gains this many times BREATH_RING_GROWTH a tick. |
extern Sint8 | BreathRingX [] | Each jaw's x from the mouth, in pixels. |
extern Uint8 | BreathFlashTicks [] | The tick each breath hits the targets. |
extern const Uint8 | TridentRingStarts [] | Trident: its rings, each trident's spin, the prong's corners and the glints' flips. |
extern const Uint8 | TridentRingGrowth [] | How fast each ring grows: its scale gains this many times CYLINDER_RING_GROWTH a tick. |
extern const Sint8 | TridentRingHeights [] | Each ring's height, in pixels. |
extern const Sint32 | TridentSpins [] | 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_VERTEX | TridentProngCorners [] | The prong's corners, as signed x, y and z. |
extern const Uint8 | TridentGlintFlips [] | The flips a glint may be drawn with, one picked at random. |
extern const Uint8 | LeapingStrikeWaveStarts [] | The leaping strike's waves and rings. |
extern const Uint8 | LeapingStrikeWaveGrowth [] | How fast each wave grows: its scale gains this many times LEAPING_STRIKE_WAVE_GROWTH a tick, from a half. |
extern const Sint8 | LeapingStrikeWaveHeights [] | Each wave's height, in pixels. |
extern const Uint8 | LeapingStrikeRingStarts [] | The tick each ring starts on, counted from LEAPING_STRIKE_PILLAR_TICK. |
extern const Uint8 | LeapingStrikeRingGrowth [] | How fast each ring grows: its scale gains this many times CYLINDER_RING_GROWTH a tick. |
extern const Sint8 | LeapingStrikeRingHeights [] | Each ring's height, in pixels. |
extern const Uint8 | MeteorBlowPictureWidths [] | Meteor Blow: its pictures, waves and rings. |
extern const Uint8 | MeteorBlowPictureHeights [] | Each Meteor Blow picture's height, in pixels. |
extern const Uint16 | MeteorBlowPictures [] | Each Meteor Blow picture's byte offset in Meteor Blow's sprite sheet. |
extern const Uint8 | MeteorBlowWaveStarts [] | The tick each wave starts on, counted from METEOR_BLOW_BURST_TICK. |
extern const Uint8 | MeteorBlowWaveGrowth [] | How fast each wave grows: its scale gains this many times 2000/65536 a tick. |
extern const Uint8 | MeteorBlowWaveStretch [] | How much taller than wide each wave is drawn, multiplying its scale. |
extern const Uint8 | MeteorBlowRingStarts [] | The tick each ring starts on, counted from the eighth. |
extern const Uint8 | MeteorBlowRingGrowth [] | How fast each ring grows: its scale gains this many times 1500/65536 a tick. |
extern const Sint8 | MeteorBlowRingHeights [] | Each ring's height, in pixels. |
extern const MODEL_VERTEX | LiquifierSplashCorners [] | Liquifier's fan of flames: a flame's corners, and when each starts and how high it rises. |
extern const Uint8 | LiquifierSplashStarts [] | The tick each splash starts on. |
extern const Uint8 | LiquifierSplashHeights [] | How tall each splash leaps, as a scale in 32nds. |
extern const Uint8 | CanvasBurstFlamePictures [] | The canvas burst's flame picture for each three ticks of its life. |
extern const Sint16 | MegiddoFlashPitches [] | Megiddo: its flashes' turns and starts, and its rays' turns and places. |
extern const Sint16 | MegiddoFlashYaws [] | Each ring's yaw. |
extern const Uint16 | MegiddoFlashStarts [] | The tick each of the five rings starts on. |
extern const Sint16 | MegiddoRayPitches [] | Each ray's pitch. |
extern const Sint16 | MegiddoRayYaws [] | Each ray's yaw. |
extern const Sint16 | MegiddoRayRolls [] | 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 Sint8 | MegiddoRayX [] | Each ray's x, in pixels. |
extern const Sint8 | MegiddoRayY [] | Each ray's y, in pixels. |
extern const Sint16 | OdysseyFlashPitches [] | Odyssey's flashes: their pitch and yaw. |
extern const Sint16 | OdysseyFlashYaws [] | Each flash's yaw: Megiddo's first two rings', and a third nothing reads. |
extern const Uint8 | MolochRingStarts [4] | Moloch's rings: when each starts, how fast it grows, and its height. |
extern const Uint8 | MolochRingGrowth [] | How fast each ring grows: its scale gains this many times 2000/65536 a tick, from a half. |
extern const Sint8 | MolochRingHeights [] | Each ring's height, in pixels. |
extern Sint32 | IrisSplashRadii [] | Iris: the splashes, the pillar and particle models, the sound ticks, the streaks, the drops, the strips and the cone. |
extern const Uint8 | IrisSplashOffsetsY [] | 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 Uint16 | IrisPillarMesh [] | The pillar's mesh. |
extern const MODEL_VERTEX | IrisParticleCorners [] | The particle's corners, as signed x, y and z. |
extern const Uint16 | IrisParticleMesh [] | The particle's mesh. |
extern const Uint8 | IrisPsynergySoundTicks [] | The ticks the Psynergy sound plays on. |
extern const Uint16 | IrisDoorSoundTicks [] | The ticks the door sound plays on. |
extern const Uint16 | IrisPowerUpSoundTicks [] | The ticks the power up sound plays on. |
extern const Sint8 | IrisStreakX [] | Each streak's x as it sets out, in pixels. |
extern const Uint8 | IrisStreakY [] | Each streak's y as it sets out, in pixels. |
extern const Uint16 | IrisStreakAngles [] | 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 Sint16 | IrisStreakSpeeds [] | How far each streak's heading turns, in 65,536ths of a turn, two thirds of this a tick. |
extern const Uint8 | IrisLineShades [] | The spray picture's columns, left to right: the level each is filled with, dimmest at the edges. |
extern Sint32 | IrisMoteSizes [] | Each mote's size: the width of its mote picture, in pixels, which is twice as tall. |
extern const Uint16 | IrisSplashStarts [] | The tick each splash starts on. |
extern const Uint16 | IrisSplashEnds [] | The tick each splash ends on. |
extern const Uint8 | IrisSplashX [] | Each splash's x, in pixels. |
extern const Uint8 | IrisSplashY [] | Each splash's y, in pixels. |
extern const Uint8 | IrisSplashSmall [] | Whether each splash is a small one. |
extern const Uint8 | IrisDropSpeeds [] | How fast each drop rises, in half pixels a tick. |
extern const Uint8 | IrisDropTicks [] | How long each drop rises, in ticks, from its splash's end. |
extern const Uint8 | IrisDropPictureSteps [] | How many ticks each drop shows each picture. |
extern const MODEL_VERTEX | IrisLeftStripCorners [] | The left strip's corners, as signed x, y and z. |
extern const MODEL_VERTEX | IrisRightStripCorners [] | The right strip's corners, as signed x, y and z. |
extern const Uint16 | IrisStripMesh [] | The strip's mesh. |
extern const MODEL_VERTEX | IrisConeCorners [] | The cone's corners, as signed x, y and z. |
extern const Uint16 | IrisConeMesh [] | The cone's mesh. |
extern Uint8 | MapGridMetatileBuffer [] | The map cell buffer at its own address, which the effects borrow: no map is loaded during a battle. |
extern const Sint16 | ThorPoints [6][2] | battle_effect_thor.c |
extern const SCALE | GaiaUnitScale | The scale each of Gaia's rocks starts from before it grows. |
extern const SPR_SCALE | UlyssesParticleScale | A scale of one in 16.16 on both axes. |
extern const SCALE | NeptuneUnitScale | battle_effect_neptune.c |
extern const Sint8 | VoidBeamCorners [][2] | battle_effect_thunder_mine.c |
extern const SCALE | FloraUnitScale | Flora's scale, one to one. |
extern const SCALE | DaedalusCanopyScale | The scales of the forest canopy Daedalus flies over, of his machine's pieces and of his missiles. |
extern const SCALE | DaedalusMachineScale | The scale of the pieces of Daedalus's machine. |
extern const SCALE | DaedalusMissileScale | The scale of Daedalus's missiles, a tenth larger than their pictures. |
extern const SCALE | CoatlicueUnitScale | battle_effect_vengeance.c: Coatlicue's figure's scale. |
extern const SCALE | CatastropheUnitScale | battle_effect_catastrophe.c: Catastrophe's figure's scale. |
extern const SCALE | HauresChargeScale | Haures's scales as he charges, as he circles and as he opens. |
extern const SCALE | HauresOrbitScale | Haures's scale while he circles. |
extern const SCALE | HauresOpeningScale | Haures's scale in the opening, before it is flipped. |
extern const Uint8 | MolochMoteSizes [] | Moloch's motes' sizes, by a mote's number's low three bits. |
extern const SCALE | IrisUnitScale | Iris's scale while she rises. |
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. |
extern const Uint32 | BattleEffectMask [] | 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 Uint32 | BattleEffectCopyReverse [] | Copy, one pixel, right to left. |
extern const Uint32 | BattleEffectCopyForward [] | Copy, one pixel, left to right. |
extern const Uint32 | BattleEffectCopy8Reverse [] | Copy, a full cell's eight pixels, right to left. |
extern const Uint32 | BattleEffectCopy8Forward [] | Copy, a full cell's eight pixels, left to right. |
extern const Uint32 | BattleEffectTransparentReverse [] | Transparent, one pixel, right to left. |
extern const Uint32 | BattleEffectTransparentForward [] | Transparent, one pixel, left to right. |
extern const Uint32 | BattleEffectTransparent8Reverse [] | Transparent, a full cell's eight pixels, right to left. |
extern const Uint32 | BattleEffectTransparent8Forward [] | Transparent, a full cell's eight pixels, left to right. |
extern const Uint32 | BattleEffectMaxReverse [] | Max, one pixel, right to left. |
extern const Uint32 | BattleEffectMaxForward [] | Max, one pixel, left to right. |
extern const Uint32 | BattleEffectMax4Reverse [] | Max, four pixels (one canvas word), right to left; a full cell's row takes it twice. |
extern const Uint32 | BattleEffectMax4Forward [] | Max, four pixels (one canvas word), left to right; a full cell's row takes it twice. |
extern const Uint32 | BattleEffectAdditiveReverse [] | Additive, one pixel, right to left. |
extern const Uint32 | BattleEffectAdditiveForward [] | Additive, one pixel, left to right. |
extern const Uint32 | BattleEffectColorReverse [] | Additive, four pixels added a word at a time, right to left; a full cell's row takes it twice. |
extern const Uint32 | BattleEffectColorForward [] | Additive, four pixels added a word at a time, left to right; a full cell's row takes it twice. |
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). |
extern Uint8 | btRenderFillMeshKernelCodeSize [] | |
extern const Uint8 | btRenderTransformKernel [] | |
extern Uint8 | btRenderTransformKernelCodeSize [] | |
extern const Uint8 | btRenderSolidKernel [] | MODEL_SOLID |
extern const Uint8 | btRenderSolidMaxKernel [] | MODEL_SOLID_MAX |
extern const Uint8 | btRenderSolidAdditiveKernel [] | MODEL_SOLID_ADDITIVE |
extern const Uint8 | btRenderTexturedKernel [] | MODEL_TEXTURED |
extern const Uint8 | btRenderTexturedMaxKernel [] | MODEL_TEXTURED_MAX |
extern const Uint8 | btRenderTexturedAdditiveKernel [] | MODEL_TEXTURED_ADDITIVE |
extern const Uint8 | btRenderShadedMaxKernel [] | MODEL_SHADED_MAX |
extern const Uint8 | btRenderShadedAdditiveKernel [] | MODEL_SHADED_ADDITIVE |
extern const Uint8 | btRenderShadedKernel [] | MODEL_SHADED |
extern const Uint8 | btRenderTexturedNarrowKernel [] | MODEL_TEXTURED_NARROW |
extern const Uint8 | btRenderSolidNarrowKernel [] | MODEL_SOLID_NARROW |
extern Uint8 | btRenderSolidKernelCodeSize [] | |
extern Uint8 | btRenderSolidMaxKernelCodeSize [] | |
extern Uint8 | btRenderSolidAdditiveKernelCodeSize [] | |
extern Uint8 | btRenderTexturedKernelCodeSize [] | |
extern Uint8 | btRenderTexturedMaxKernelCodeSize [] | |
extern Uint8 | btRenderTexturedAdditiveKernelCodeSize [] | |
extern Uint8 | btRenderShadedMaxKernelCodeSize [] | |
extern Uint8 | btRenderShadedAdditiveKernelCodeSize [] | |
extern Uint8 | btRenderShadedKernelCodeSize [] | |
extern Uint8 | btRenderTexturedNarrowKernelCodeSize [] | |
extern Uint8 | btRenderSolidNarrowKernelCodeSize [] | |
extern Uint8 | btRenderTexturedKernelCodeWords [] | |
extern Uint8 | btRenderShadedKernelCodeWords [] | |
extern Uint8 | btRenderTexturedNarrowKernelCodeWords [] |
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.
| Enumerator | Value | Description |
|---|---|---|
MODEL_END | ends the list | |
MODEL_SOLID | btRenderSolidKernel: the colour replaces the canvas | |
MODEL_SOLID_MAX | the colour where it is brighter | |
MODEL_SOLID_ADDITIVE | the colour added, up to the brightest level | |
MODEL_TEXTURED_MAX | the texel where it is brighter | |
MODEL_TEXTURED_ADDITIVE | the texel added, up to the brightest level | |
MODEL_SHADED_MAX | the shaded texel where it is brighter | |
MODEL_SHADED_ADDITIVE | the shaded texel added, up to the brightest | |
MODEL_TEXTURED | the texel replaces the canvas | |
MODEL_SHADED | the shaded texel replaces the canvas | |
MODEL_TEXTURED_NARROW | MODEL_TEXTURED into a narrow target | |
MODEL_SOLID_NARROW | MODEL_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.
| Enumerator | Value | Description |
|---|---|---|
REAPER_SHEET_RAISED | 0 | |
REAPER_SHEET_SWUNG | REAPER_SHEET_RAISED + PICTURE_BYTES(REAPER_SHEET_RAISED) | |
REAPER_SHEET_CRESCENT | REAPER_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.
| Enumerator | Value | Description |
|---|---|---|
RED_CRESCENT_FADE_A | 0 | |
RED_CRESCENT_FADE_B | RED_CRESCENT_FADE_A + PICTURE_BYTES(RED_CRESCENT_FADE_A) | |
RED_CRESCENT_FADE_C | RED_CRESCENT_FADE_B + PICTURE_BYTES(RED_CRESCENT_FADE_B) | |
RED_CRESCENT_FADE_D | RED_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.
| Enumerator | Value | Description |
|---|---|---|
TARGET_STRIKE_KIND | STRIKE_KIND_SLASH or STRIKE_KIND_BITE | |
TARGET_STRIKE_HITS | slashes or bites | |
TARGET_STRIKE_FLAGS | the extras (STRIKE_SMOKE and on) | |
TARGET_STRIKE_COLOR | the background's palette (STRIKE_COLOR_) | |
TARGET_STRIKE_PICTURE_TICKS | ticks each picture shows | |
TARGET_STRIKE_COMPOSITE | the bites' blitter mode | |
TARGET_STRIKE_TICKS | the 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.
| Enumerator | Value | Description |
|---|---|---|
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_MANEATER | the 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.
| Enumerator | Value | Description |
|---|---|---|
CANVAS_WIPE_DOWN | top to bottom | |
CANVAS_WIPE_ACROSS | left to right |
Definition at line 821 of file battle_effect_internal.h.
CANVAS_FILL
enum CANVAS_FILL
What btEffectWipeCanvas leaves behind it.
| Enumerator | Value | Description |
|---|---|---|
CANVAS_WIPE_FILL | colour 1, which its callers make black first | |
CANVAS_WIPE_CLEAR | colour 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.
| Enumerator | Value | Description |
|---|---|---|
TUMBLING_QUADS_BALM | over a prepared canvas, with the Mercury Djinn | |
TUMBLING_QUADS_TINDER | over a prepared canvas, with the Mars Djinn | |
TUMBLING_QUADS_PHOENIX | rising 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.
| Enumerator | Value | Description |
|---|---|---|
GASP_MODE_GASP | ||
GASP_MODE_UNUSED | Unused: 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.
| Enumerator | Value | Description |
|---|---|---|
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).
| Enumerator | Value | Description |
|---|---|---|
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).
| Enumerator | Value | Description |
|---|---|---|
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).
| Enumerator | Value | Description |
|---|---|---|
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).
| Enumerator | Value | Description |
|---|---|---|
DJINNI_SIGN_RIME | ||
DJINNI_SIGN_HAZE |
Definition at line 909 of file battle_effect_internal.h.
CARD_KIND
enum CARD_KIND
The cards (btEffectRunCards).
| Enumerator | Value | Description |
|---|---|---|
CARD_SLEEP | Sleep Card: sheep jump from the card. | |
CARD_BAFFLE | Baffle Card: butterflies, and the screen waves. | |
CARD_DEATH | Death Card: a skeleton reaps the target. | |
CARD_SWORD | Sword 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).
| Enumerator | Value | Description |
|---|---|---|
CARD_BRAMBLE | Bramble Card: vines grow from the card. | |
CARD_FROST | Frost Card: the card throws crystal shards. | |
CARD_FLAME | Flame Card: the card throws smoke and flashes. | |
CARD_THUNDER | Thunder Card: bolts strike from the card. |
Definition at line 925 of file battle_effect_internal.h.
BREATH_KIND
enum BREATH_KIND
The breaths (btEffectRunBreaths).
| Enumerator | Value | Description |
|---|---|---|
BREATH_BEAM | Beam: a beam of fading rings. | |
BREATH_ROLLING_FLAME | Rolling Flame: a ball rolls to the target. | |
BREATH_PIKE | Ghost Soldier and Pike Assault. | |
BREATH_BLAST | Blast 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.
| Enumerator | Value | Description |
|---|---|---|
RUSHING_STRIKE_UNUSED | Unused: 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.
| Enumerator | Value | Description |
|---|---|---|
MIRRORED_WALL_SPASM | actual size, a gentle shake for 32 ticks | |
MIRRORED_WALL_BERSERK | A ninth wider than Spasm's, a hard shake for 8 ticks | |
MIRRORED_WALL_RECOVERY | A ninth wider than Spasm's, no shake, in the | |
MIRRORED_WALL_SACK | Fireball colours |
Definition at line 957 of file battle_effect_internal.h.
SPARK_GROUPS_MODE
enum SPARK_GROUPS_MODE
Where btEffectRunSparkGroups' bursts go off.
| Enumerator | Value | Description |
|---|---|---|
SPARK_GROUPS_NOVA | Nova's | |
SPARK_GROUPS_DYNAMITE | Dynamite's, orange | |
SPARK_GROUPS_RISING | below 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.
| Enumerator | Value | Description |
|---|---|---|
CAMERA_PHASE_IDLE | nothing marked since the last turn | |
CAMERA_PHASE_TICK_DONE | the effect has finished a tick: turn the whole delta | |
CAMERA_PHASE_HALF_TURNED | half 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.
| Enumerator | Value | Description |
|---|---|---|
FLURRY_BEAR_CLAW | five strikes; also Ransack | |
FLURRY_BACTERIA_RUSH | seven strikes, in lime | |
FLURRY_FREEBITE_RUSH | nine strikes, in blue | |
FLURRY_FLYING_ATTACK | one strike, in embers | |
FLURRY_FLYING_ATTACK_DOUBLE | two | |
FLURRY_FLYING_ATTACK_TRIPLE | three | |
FLURRY_GUST | one strike, each filling the canvas | |
FLURRY_GUST_DOUBLE | two | |
FLURRY_GUST_TRIPLE | three | |
FLURRY_UR_FLASH | three strikes, in the Mars Djinni's colours | |
FLURRY_CRUSHER_GRIP | one strike, with glints | |
FLURRY_VANISH_CLAW | one strike, with a ripple and smoke | |
FLURRY_CLAW_ATTACK | one 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.
| Enumerator | Value | Description |
|---|---|---|
FLURRY_ARCS_AND_WAVES | blue arc A, with a wave for the third and fourth of every four strikes | |
FLURRY_ARCS | blue 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.
| Enumerator | Value | Description |
|---|---|---|
FLURRY_PALETTE_MARS_DJINNI | the Mars Djinni sprite sheet's | |
FLURRY_PALETTE_LIME | ||
FLURRY_PALETTE_BLUE_ARC | ||
FLURRY_PALETTE_EMBER | the 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.
| Enumerator | Value | Description |
|---|---|---|
FLURRY_EXTRA_NONE | ||
FLURRY_EXTRA_GLINTS | three glints a tick until tick 31 | |
FLURRY_EXTRA_RIPPLE | BG2 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[]
Referenced by btRenderDrawModelList().
Definition at line 2184 of file battle_effect_internal.h.
btRenderSolidMaxKernel
extern const Uint8 btRenderSolidMaxKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2186 of file battle_effect_internal.h.
btRenderSolidAdditiveKernel
extern const Uint8 btRenderSolidAdditiveKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2188 of file battle_effect_internal.h.
btRenderTexturedKernel
extern const Uint8 btRenderTexturedKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2190 of file battle_effect_internal.h.
btRenderTexturedMaxKernel
extern const Uint8 btRenderTexturedMaxKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2192 of file battle_effect_internal.h.
btRenderTexturedAdditiveKernel
extern const Uint8 btRenderTexturedAdditiveKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2194 of file battle_effect_internal.h.
btRenderShadedMaxKernel
extern const Uint8 btRenderShadedMaxKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2196 of file battle_effect_internal.h.
btRenderShadedAdditiveKernel
extern const Uint8 btRenderShadedAdditiveKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2198 of file battle_effect_internal.h.
btRenderShadedKernel
extern const Uint8 btRenderShadedKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2200 of file battle_effect_internal.h.
btRenderTexturedNarrowKernel
extern const Uint8 btRenderTexturedNarrowKernel[]
Referenced by btRenderDrawModelList().
Definition at line 2202 of file battle_effect_internal.h.
btRenderSolidNarrowKernel
extern const Uint8 btRenderSolidNarrowKernel[]
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.