src/battle_effect/battle_effect_internal.h
What every part of the battle effect object shares: its includes, macros and tick-loop helpers.
#include "debug/debug.h"#include "edition.h"#include "fixed_math.h"#include "macros.h"#include "resource_ids.h"#include "sounds.h"#include "sprite_ids.h"#include "types.h"#include "battle/battle.h"#include "battle/battle_action.h"#include "battle/battle_action_run.h"#include "battle/battle_actor.h"#include "battle/battle_camera.h"#include "battle/battle_effect_state.h"#include "battle/battle_side.h"#include "battle/battle_unit.h"#include "battle/battle_state.h"#include "battle/blitter.h"#include "battle/playback_queue.h"#include "battle/stubs.h"#include "battle_effect/battle_effect.h"#include "battle_effect/battle_effect_table.h"#include "battle_effect/blitter_operands.h"#include "field/script.h"#include "field/script_commands.h"#include "field/field.h"#include "field/field_engine.h"#include "field/map_grid.h"#include "field/particle.h"#include "field/sprite.h"#include "field/stubs.h"#include "game/game.h"#include "game/stubs.h"#include "graphics/graphics.h"#include "menu/menu.h"#include "sound/sound.h"#include "sound/sound_driver_symbols.h"#include "system.h"#include "window/menu_list.h"
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#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 | 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 | EFFECT_WIN0_LAYERS | Window 0, the battle view, shows BG0 to BG2, sprites and blending. |
#define | EFFECT_WINOUT (WINOUT_WIN01_BG0 | WINOUT_WIN01_CLR | WINOUT_WINOBJ_ALL) | Outside the battle view: BG0 and blending only. |
#define | DMA_CONTROL_HALF 5 | Index of DMAxCNT_H, the control half, in a channel's 16-bit registers. |
#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_VIEW_FROM_CAMERA (camera) | Starts a tick's 3D projection from the battle camera. |
#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_SHOW_DAMAGE (hitSound) btPlaybackStartStub(hitSound) | Lets the battle show the damage, playing hitSound (0 keeps the one queued) as the targets react; a second use changes nothing. |
#define | CANVAS_SIZE 128 | The canvas: 128x128 pixels, one byte each, in its heap slot and in VRAM at BG_CHAR_BLOCK(1). |
#define | CANVAS_BYTES (CANVAS_SIZE * CANVAS_SIZE) | |
#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 | BACKGROUND_PIXEL_OFFSET (x, y) | The byte of pixel (x, y) of the battle background: 8x8 tiles of 256 colours, 64 bytes each, 32 to a row, from BG_CHAR_BLOCK(2). |
#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 | 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 Atalanta and Boreas centre the projection while their formations 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 a canvas darkens the battle background to, a level a tick. |
#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 | PARTICLE_DAMPING_NONE DAMPING_SCALE | btParticleAdvanceWithGravity3D's and 2D's damping that keeps a particle's whole speed. |
#define | EFFECT_START_NARROW_CANVAS (bgControl) | Opens the canvas layer at the canvas's own width. |
#define | EFFECT_LOAD_BLITTER (slot, flags, mode) | Builds a blitter for the 128x128 canvas (its width and height given to btEffectBuildBlitter as powers of two) in heap slot slot, for one clip, mirror and blend mode. |
#define | EFFECT_BLITTER (slot) ((DRAW_RECTANGLE)HeapSlots[slot]) | The blitter built in heap slot slot. |
#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 | 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 alternate 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 | 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 | 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 | GLINT_SET_BYTES | The bytes of the six glint pictures that open the tornado sprite sheet. |
#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 | MOTE_SIZE_MAX 10 | The largest of the ten mote pictures. |
#define | MOTE_DEPTH_NEAR 160 | A mote sized by its depth is drawn one size smaller for every MOTE_DEPTH_STEP past MOTE_DEPTH_NEAR, its depth held between MOTE_DEPTH_NEAR and MOTE_DEPTH_FAR. |
#define | MOTE_DEPTH_FAR 799 | |
#define | MOTE_DEPTH_STEP 64 | |
#define | EFFECT_DRAW_FLARE (draw, canvas, sheet, x, y, size) | Draws flare picture size, a square, centred on (x, y). |
#define | EFFECT_SWELL_MOTE (size, tick) | Swells a falling mote as the drops clear (Nereid's drops, Titan Blade's dust). |
#define | EFFECT_FALL_MOTE (velocityY, gravity, tick) | A falling mote's vertical speed: it falls under gravity, then from tick 80 rises. |
#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 | WINDOW_SPAN_INVERTED WIN_RANGE(1, 0) | A WIN0H value whose left edge is past its right edge, written only on lines outside window 0. |
#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 | WINDOW_EDGE_RIGHT ((Uint16 *)RamMapGridMetatileBuffer) | RamMapGridMetatileBuffer 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 (RamMapGridMetatileBuffer + 2) | |
#define | WINDOW_EDGE_INSET_LINES 128 | |
#define | WINDOW_EDGE_LINES (WINDOW_EDGE_INSETS + WINDOW_EDGE_INSET_LINES) | |
#define | BLUE_RAMP_PIXELS RamMapGridMetatileBuffer | RamMapGridMetatileBuffer as the unused blue ramp uses it: a working copy of the battle background's image. |
#define | EFFECT_CAP_LEVEL (level, cap) | Caps a colour level at cap, and at 0 from below. |
#define | REAPER_SHEET_RAISED_WIDTH 57 | The reaper in ReaperSheet, 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 | 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 | 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 | 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 | 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 | 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 | 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 | FLASH_BURST_WIDTH 32 | |
#define | FLASH_BURST_HEIGHT 64 | |
#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 | EFFECT_SET_BATTLE_WINDOWS () | Windows 0 and 1 both cover the battle view: the full width, lines 16 to 135. |
#define | EFFECT_SET_CANVAS_AFFINE () | BG2 shows the canvas from screen line 16 down (BG2Y is -16.0), stretched to twice its width: the 128x128 canvas across the battle view. |
#define | CANVAS_WAVE_BG2X (sway) ((sway) >> 10) | A line's sideways sway as its BG2X value in state->bg2xLines, which the wave HBlank DMA writes line by line. |
#define | EFFECT_WRITE_CANVAS_MAP_ROW (row, column, offset) | Writes one row of BG2's map for the canvas, two tiles at a time. |
Enumerations
| Name | Description | |
|---|---|---|
enum | REAPER_SHEET_PICTURE { REAPER_SHEET_RAISED, REAPER_SHEET_SWUNG, REAPER_SHEET_CRESCE … } | Where each of the reaper's pictures begins in its sprite sheet, in bytes. |
enum | RED_CRESCENT_PICTURE { RED_CRESCENT_FADE_A, RED_CRESCENT_FADE_B, RED_CRESCENT_FADE_ … } | Where each picture of the fading red crescent begins in its sprite sheet, in bytes. |
enum | DJINNI_ENTRANCE_LENGTH { DJINNI_ENTRANCE_LONG } | What btEffectRunDjinniEntrance takes added to its element; the element alone plays the 64-tick entrance. |
enum | DJINNI_ENTRANCE_ANCHOR { DJINNI_ANCHOR_OVER_TARGET, DJINNI_ANCHOR_TARGET_X, DJINNI_AN … } | Where btEffectRunDjinniEntrance's Djinni appears. |
enum | SPARK_GROUPS_MODE { SPARK_GROUPS_NOVA, SPARK_GROUPS_DYNAMITE, SPARK_GROUPS_RISIN … } | Where btEffectRunSparkGroups' bursts go off. |
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 | SUMMON_FORMATION { SUMMON_FORMATION_THOR, SUMMON_FORMATION_NEREID, SUMMON_FORMA … } | The summons' sprite formations (btEffectPlaceFormationSprites and btEffectRunImpactBurst), each named for the summon that keeps it. |
enum | SPIN_AXIS { SPIN_YAW, SPIN_PITCH, SPIN_ROLL, SPIN_PITCH_AND_ROLL } | The axis a swirling spark, mote or star turns about, which its index & 3 picks. |
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 | BATTLE_EFFECT_ID_RANGE { EFFECT_RANGE_CASTING_IMPACT, EFFECT_RANGE_BEAM, EFFECT_RANGE … } | Where each range of btEffectRunByIdRange's effect kinds starts: the casting impacts, the beams, and the ring and spark effect of critical hits. |
Functions
| Name | Description | |
|---|---|---|
static inline void | btDMAStop (volatile Uint16 *channel) | Stops a DMA channel and reads its control back, so the stop takes effect before the channel is set up again. |
Description
What every part of the battle effect object shares: its includes, macros and tick-loop helpers.
Macros in detail
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 btEffectRunBoreas(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunGaia(), btEffectRunGround(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunOrbitingSkulls(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunRagnarok(), btEffectRunShatteringOpening(), btEffectRunSparkGroups(), btEffectRunStarfieldFall(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunThorn(), btEffectRunTitanBlade(), btEffectRunVenus(), btEffectRunVolcano(), btEffectRunWhirlwind() and btEffectStartElementStreaks().
Definition at line 48 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(), btEffectOpenCanvasLayer(), btEffectRunBladeRain(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunDjinniEntrance(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFlare(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunSpiderWeb(), btEffectRunStreakVolley(), btEffectRunThorn(), btEffectRunTorch(), btEffectRunWhirlwind(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 50 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(), btEffectOpenCanvasLayer(), btEffectRunFlare(), btEffectRunKirin(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 53 of file battle_effect_internal.h.
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(), btEffectRunShatteringOpening(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 61 of file battle_effect_internal.h.
EFFECT_WIN0_LAYERS
#define EFFECT_WIN0_LAYERS
Window 0, the battle view, shows BG0 to BG2, sprites and blending. Effects pick window 1's layers themselves.
Referenced by btEffectConfigureEffectDisplay(), btEffectOpenCanvasLayer(), btEffectRunBoreas(), btEffectRunDouse(), btEffectRunIce(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunRamses(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 67 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(), btEffectOpenCanvasLayer(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 72 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 btDMAStop().
Definition at line 75 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(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunGatheringLights(), btEffectRunJupiter(), btEffectRunLobbedShells(), btEffectRunMercury(), btEffectRunNereid(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunVenus().
Definition at line 88 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(), btEffectRunBind(), btEffectRunBreak(), btEffectRunCastingImpact(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunJudgment(), btEffectRunLobbedShells(), btEffectRunMoteFountain(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunStarfieldFall(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike(), btEffectRunVolcano() and btUnitProjectToScreen().
Definition at line 93 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 btEffectRunGround(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunMercury(), btEffectRunTargetStrike() and btEffectRunVenus().
Definition at line 98 of file battle_effect_internal.h.
EFFECT_SHOW_DAMAGE
#define EFFECT_SHOW_DAMAGE(hitSound) btPlaybackStartStub(hitSound)
Lets the battle show the damage, playing hitSound (0 keeps the one queued) as the targets react; a second use changes nothing.
Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRagnarok() and 23 more.
Definition at line 107 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).
Referenced by btEffectDrawClippedCanvasLine(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunCastingImpact(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunHealingMotes(), btEffectRunMirroredWall(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStatBoost(), btEffectRunThor(), btEffectRunTorch(), btEffectRunUndeadSword(), btEffectRunUnusedTriangleStrike(), btEffectRunVine() and btEffectWipeCanvas().
Definition at line 111 of file battle_effect_internal.h.
CANVAS_BYTES
#define CANVAS_BYTES (CANVAS_SIZE * CANVAS_SIZE)
Referenced by btCastingImpactEndPrelude(), btEffectEndCanvasLayer(), btEffectEndElementStreaks(), btEffectOpenCanvasLayer(), btEffectRunAnnihilation(), btEffectRunBolt(), btEffectRunByIdRange(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDjinniEntrance(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFromTable(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunPlasma(), btEffectRunRay(), btEffectRunShatteringOpening(), btEffectRunSparkGroups(), btEffectRunStarfieldFall(), btEffectRunSummon(), btEffectRunThor(), btEffectRunTitanBlade(), btEffectRunWhirlwind(), btEffectSetupBlendedDisplay(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer(), btEffectStartElementStreaks() and btEffectTransferCanvas().
Definition at line 112 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 btEffectOpenCanvasLayer(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap(), btEffectStartCanvasLayer() and btEffectStartTiledCanvas().
Definition at line 114 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(), btEffectRunCybele(), btEffectRunStarfieldFall() and btEffectWipeCanvas().
Definition at line 117 of file battle_effect_internal.h.
BACKGROUND_PIXEL_OFFSET
#define BACKGROUND_PIXEL_OFFSET(x, y)
The byte of pixel (x, y) of the battle background: 8x8 tiles of 256 colours,
64 bytes each, 32 to a row, from BG_CHAR_BLOCK(2).
Referenced by btEffectConvertBackgroundToBlueRamp() and btEffectRunQuake().
Definition at line 121 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 btEffectRunRamses() and btEffectRunStarfieldFall().
Definition at line 126 of file battle_effect_internal.h.
BATTLE_VIEW_HEIGHT
#define BATTLE_VIEW_HEIGHT 120
Referenced by btEffectRunBoreas(), btEffectRunCybele() and btEffectRunVolcano().
Definition at line 127 of file battle_effect_internal.h.
BATTLE_VIEW_BOTTOM
#define BATTLE_VIEW_BOTTOM (BATTLE_VIEW_TOP + BATTLE_VIEW_HEIGHT)
Referenced by btEffectRunRamses() and btEffectRunStarfieldFall().
Definition at line 128 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(), btEffectRunOrbitingSkulls(), btEffectRunQuake(), btEffectRunSleep(), btEffectRunStatReduction(), btEffectRunThorn() and btEffectRunUnusedOrbitingSpirals().
Definition at line 132 of file battle_effect_internal.h.
SUMMON_PROJECTION_CENTER_Y
#define SUMMON_PROJECTION_CENTER_Y 240
Where Atalanta and Boreas centre the projection while their formations fly,
lower than the battle's BATTLE_PROJECTION_CENTER_Y.
Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 136 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(), btEffectRunCastingImpact(), btEffectRunCriticalHit(), btEffectRunDjinniEntrance(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunJudgment(), btEffectRunNeptune(), btEffectRunRamses() and btEffectStartElementStreaks().
Definition at line 140 of file battle_effect_internal.h.
BACKGROUND_DARKENED_LEVEL
#define BACKGROUND_DARKENED_LEVEL BACKGROUND_DARKEN_TICKS
The level a canvas darkens the battle background to, a level a tick.
Referenced by btEffectEndCanvasLayer(), btEffectRunCondemn() and btEffectSetupBlendedDisplay().
Definition at line 142 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 btEffectRunBurstShower(), btEffectRunCybele(), btEffectRunEruption(), btEffectRunGaia(), btEffectRunJudgment(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectStepPaletteToResource() and btPaletteBrightenBgEntries().
Definition at line 146 of file battle_effect_internal.h.
SHEET_PALETTE_BYTES
#define SHEET_PALETTE_BYTES (SHEET_PALETTE_COLORS * 2)
Referenced by btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunJudgment(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSparkGroups(), btEffectRunStarfieldFall(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlSwipe(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike(), btEffectRunVolcano(), btEffectRunWhirlwind(), btEffectStartElementStreaks(), btEffectStepPaletteToResource() and 1 more.
Definition at line 147 of file battle_effect_internal.h.
PARTICLE_DAMPING_NONE
#define PARTICLE_DAMPING_NONE DAMPING_SCALE
btParticleAdvanceWithGravity3D's and 2D's damping that keeps a particle's
whole speed.
Referenced by btEffectRunBoreas(), btEffectRunCybele(), btEffectRunEruption(), btEffectRunImpactBurst(), btEffectRunMars(), btEffectRunPrism(), btEffectRunRagnarok(), btEffectRunShatteringOpening(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStreakVolley() and btEffectRunTitanBlade().
Definition at line 151 of file battle_effect_internal.h.
EFFECT_START_NARROW_CANVAS
#define EFFECT_START_NARROW_CANVAS(bgControl)
Opens the canvas layer at the canvas's own width.
Referenced by btEffectRunAtalanta(), btEffectRunBladeRain(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDouse(), btEffectRunFrost(), btEffectRunHelmSplitter(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunOrbitingSkulls(), btEffectRunSleep(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStatReduction(), btEffectRunSwirlSwipe(), btEffectRunThor(), btEffectRunUndeadSword(), btEffectRunUnusedOrbitingSpirals() and btEffectRunUnusedTriangleStrike().
Definition at line 154 of file battle_effect_internal.h.
EFFECT_LOAD_BLITTER
#define EFFECT_LOAD_BLITTER(slot, flags, mode)
Builds a blitter for the 128x128 canvas (its width and height given to
btEffectBuildBlitter as powers of two) in heap slot slot, for one clip,
mirror and blend mode.
Referenced by btEffectBuildCanvasBlitters(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHaunt(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunRay() and 24 more.
Definition at line 160 of file battle_effect_internal.h.
EFFECT_BLITTER
#define EFFECT_BLITTER(slot) ((DRAW_RECTANGLE)HeapSlots[slot])
The blitter built in heap slot slot.
Referenced by btEffectBuildCanvasBlitters(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHaunt(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunSpire() and 13 more.
Definition at line 164 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(), btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunBurstShower(), btEffectRunCriticalHit(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunOrbitingSkulls(), btEffectRunPrism(), btEffectRunProjectileVolley(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 167 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(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHelmSplitter(), btEffectRunImpactBurst(), btEffectRunJupiter(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunQuake(), btEffectRunRagnarok(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunSpiderWeb(), btEffectRunSpire() and 17 more.
Definition at line 171 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(), btEffectRunBind(), btEffectRunBoreas(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunFrost(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunOrbitingSkulls(), btEffectRunSleep(), btEffectRunStarfieldFall(), btEffectRunStatReduction(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunThor(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike() and btEffectWipeCanvas().
Definition at line 176 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(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBreak(), btEffectRunCastingImpact(), btEffectRunCybele(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunShiningStar(), btEffectRunSparkGroups(), btEffectRunSpiderWeb() and 14 more.
Definition at line 180 of file battle_effect_internal.h.
EFFECT_RELEASE_BLITTERS
#define EFFECT_RELEASE_BLITTERS()
Frees the two blitters, the alternate first.
Referenced by btCastingImpactEndPrelude(), btEffectRunAnnihilation(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBoreas(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunNereid(), btEffectRunShatteringOpening(), btEffectRunStatBoost(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunUndeadSword(), btEffectRunUnusedOrbitingSpirals(), btEffectRunUnusedTriangleStrike(), btEffectRunVolcano() and btEffectRunWhirlwind().
Definition at line 184 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(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunDjinnHeal(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunFroth(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunJupiter(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars(), btEffectRunTargetBursts(), btEffectRunThorn(), btEffectRunTitanBlade(), btEffectRunTorch(), btEffectRunVenus() and btEffectRunVine().
Definition at line 190 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 btEffectRunBolt(), btEffectRunBreak(), btEffectRunCurse(), btEffectRunDeathPlunge(), btEffectRunDrain(), btEffectRunEruption(), btEffectRunGround(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunOrbitingSkulls(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunSpire() and btEffectRunSwirlSwipe().
Definition at line 196 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(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunNeptune(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunProjectileVolley(), btEffectRunRagnarok(), btEffectRunShatteringOpening(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunTitanBlade(), btEffectRunUnusedOrbitingSpirals() and btEffectRunVine().
Definition at line 203 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(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunJudgment(), btEffectRunProjectileVolley() and btEffectRunThor().
Definition at line 206 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 btEffectRunEruption(), btEffectRunFromTable(), btEffectRunJudgment(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall(), btEffectRunSummon(), btEffectRunSwirlingStars() and btEffectRunThor().
Definition at line 210 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 and Judgment's darken through copies of the mote
pictures, a stat reduction's shards through copies of the shard.
Referenced by btEffectRunJudgment(), btEffectRunStatReduction() and btEffectRunThor().
Definition at line 215 of file battle_effect_internal.h.
DIMMED_COPY_CAP
#define DIMMED_COPY_CAP(copy) (CANVAS_LEVEL_BRIGHTEST + 1 - (copy) * 7)
Referenced by btEffectRunJudgment(), btEffectRunStatReduction() and btEffectRunThor().
Definition at line 216 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 219 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(), btEffectRunCastingImpact(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDrain(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunGaia(), btEffectRunHealingMotes(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSparkGroups(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunTitanBlade(), btEffectRunVenus() and btEffectRunVolcano().
Definition at line 224 of file battle_effect_internal.h.
MOTE_SIZE_MAX
#define MOTE_SIZE_MAX 10
The largest of the ten mote pictures.
Referenced by btEffectRunAstralBlast(), btEffectRunFire(), btEffectRunJudgment() and btEffectRunKirin().
Definition at line 232 of file battle_effect_internal.h.
MOTE_DEPTH_NEAR
#define MOTE_DEPTH_NEAR 160
A mote sized by its depth is drawn one size smaller for every MOTE_DEPTH_STEP
past MOTE_DEPTH_NEAR, its depth held between MOTE_DEPTH_NEAR and
MOTE_DEPTH_FAR.
Referenced by btEffectRunDragonCloud(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFroth() and btEffectRunStarfieldFall().
Definition at line 236 of file battle_effect_internal.h.
MOTE_DEPTH_FAR
#define MOTE_DEPTH_FAR 799
Referenced by btEffectRunDragonCloud(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFroth() and btEffectRunStarfieldFall().
Definition at line 237 of file battle_effect_internal.h.
MOTE_DEPTH_STEP
#define MOTE_DEPTH_STEP 64
Referenced by btEffectRunDragonCloud(), btEffectRunEruption(), btEffectRunFire() and btEffectRunStarfieldFall().
Definition at line 238 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 241 of file battle_effect_internal.h.
EFFECT_SWELL_MOTE
#define EFFECT_SWELL_MOTE(size, tick)
Swells a falling mote as the drops clear (Nereid's drops, Titan Blade's dust).
Referenced by btEffectRunNereid() and btEffectRunTitanBlade().
Definition at line 251 of file battle_effect_internal.h.
EFFECT_FALL_MOTE
#define EFFECT_FALL_MOTE(velocityY, gravity, tick)
A falling mote's vertical speed: it falls under gravity, then from tick 80
rises.
Referenced by btEffectRunNereid() and btEffectRunTitanBlade().
Definition at line 260 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(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunRamses() and btEffectRunThor().
Definition at line 265 of file battle_effect_internal.h.
WINDOW_SPAN_INVERTED
#define WINDOW_SPAN_INVERTED WIN_RANGE(1, 0)
A WIN0H value whose left edge is past its right edge, written only on lines outside window 0.
Definition at line 273 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(), btEffectRunShatteringOpening() and btEffectRunStarfieldFall().
Definition at line 277 of file battle_effect_internal.h.
BATTLE_BACKGROUND_HEIGHT
#define BATTLE_BACKGROUND_HEIGHT 120
Referenced by btEffectConvertBackgroundToBlueRamp() and btEffectRunShatteringOpening().
Definition at line 278 of file battle_effect_internal.h.
BATTLE_BACKGROUND_BYTES
#define BATTLE_BACKGROUND_BYTES
Referenced by btEffectConvertBackgroundToBlueRamp(), btEffectRunShatteringOpening(), btEffectRunStarfieldFall() and btEffectTransferFullScreenImage().
Definition at line 279 of file battle_effect_internal.h.
WINDOW_EDGE_RIGHT
#define WINDOW_EDGE_RIGHT ((Uint16 *)RamMapGridMetatileBuffer)
RamMapGridMetatileBuffer 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(), btEffectRunBoreas() and btEffectRunNeptune().
Definition at line 285 of file battle_effect_internal.h.
WINDOW_EDGE_INSETS
#define WINDOW_EDGE_INSETS (RamMapGridMetatileBuffer + 2)
Referenced by btEffectBuildWindowEdgeTable(), btEffectRunBoreas() and btEffectRunNeptune().
Definition at line 286 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 287 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 288 of file battle_effect_internal.h.
BLUE_RAMP_PIXELS
#define BLUE_RAMP_PIXELS RamMapGridMetatileBuffer
RamMapGridMetatileBuffer as the unused blue ramp uses it: a working copy of
the battle background's image.
Referenced by btEffectConvertBackgroundToBlueRamp().
Definition at line 292 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 btEffectRunJudgment(), btEffectRunStatReduction() and btEffectRunThor().
Definition at line 295 of file battle_effect_internal.h.
REAPER_SHEET_RAISED_WIDTH
#define REAPER_SHEET_RAISED_WIDTH 57
The reaper in ReaperSheet, which Condemn and Mortal Danger decode: the reaper with its scythe raised, then swung, then the red crescent the swing leaves.
Referenced by btEffectRunCastingImpact() and btEffectRunCondemn().
Definition at line 305 of file battle_effect_internal.h.
REAPER_SHEET_RAISED_HEIGHT
#define REAPER_SHEET_RAISED_HEIGHT 98
Referenced by btEffectRunCastingImpact() and btEffectRunCondemn().
Definition at line 306 of file battle_effect_internal.h.
REAPER_SHEET_SWUNG_WIDTH
#define REAPER_SHEET_SWUNG_WIDTH 99
Definition at line 307 of file battle_effect_internal.h.
REAPER_SHEET_SWUNG_HEIGHT
#define REAPER_SHEET_SWUNG_HEIGHT 69
Definition at line 308 of file battle_effect_internal.h.
REAPER_SHEET_CRESCENT_WIDTH
#define REAPER_SHEET_CRESCENT_WIDTH 128
Definition at line 309 of file battle_effect_internal.h.
REAPER_SHEET_CRESCENT_HEIGHT
#define REAPER_SHEET_CRESCENT_HEIGHT 91
Definition at line 310 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 323 of file battle_effect_internal.h.
RED_CRESCENT_FADE_A_HEIGHT
#define RED_CRESCENT_FADE_A_HEIGHT 91
Definition at line 324 of file battle_effect_internal.h.
RED_CRESCENT_FADE_B_WIDTH
#define RED_CRESCENT_FADE_B_WIDTH 128
Definition at line 325 of file battle_effect_internal.h.
RED_CRESCENT_FADE_B_HEIGHT
#define RED_CRESCENT_FADE_B_HEIGHT 59
Definition at line 326 of file battle_effect_internal.h.
RED_CRESCENT_FADE_C_WIDTH
#define RED_CRESCENT_FADE_C_WIDTH 122
Definition at line 327 of file battle_effect_internal.h.
RED_CRESCENT_FADE_C_HEIGHT
#define RED_CRESCENT_FADE_C_HEIGHT 29
Definition at line 328 of file battle_effect_internal.h.
RED_CRESCENT_FADE_D_WIDTH
#define RED_CRESCENT_FADE_D_WIDTH 76
Definition at line 329 of file battle_effect_internal.h.
RED_CRESCENT_FADE_D_HEIGHT
#define RED_CRESCENT_FADE_D_HEIGHT 25
Definition at line 330 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 btEffectRunBolt(), btEffectRunCastingImpact() and btEffectRunRay().
Definition at line 346 of file battle_effect_internal.h.
LIGHTNING_BOLT_HEIGHT
#define LIGHTNING_BOLT_HEIGHT 120
Referenced by btEffectRunRay().
Definition at line 347 of file battle_effect_internal.h.
LIGHTNING_BOLT_PICTURE_BYTES
#define LIGHTNING_BOLT_PICTURE_BYTES PICTURE_BYTES(LIGHTNING_BOLT)
Referenced by btEffectRunBolt(), btEffectRunCastingImpact() and btEffectRunRay().
Definition at line 348 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 352 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 353 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 354 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 355 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 357 of file battle_effect_internal.h.
WAVE_HEIGHT
#define WAVE_HEIGHT 16
Referenced by btEffectRunAttackSlash() and btEffectRunFlurry().
Definition at line 358 of file battle_effect_internal.h.
BLUE_ARC_WIDTH
#define BLUE_ARC_WIDTH 48
Referenced by btEffectRunAttackSlash() and btEffectRunFlurry().
Definition at line 359 of file battle_effect_internal.h.
BLUE_ARC_HEIGHT
#define BLUE_ARC_HEIGHT 72
Referenced by btEffectRunAttackSlash() and btEffectRunFlurry().
Definition at line 360 of file battle_effect_internal.h.
YELLOW_ORB_WIDTH
#define YELLOW_ORB_WIDTH 40
Referenced by btEffectPackYellowOrbs(), btEffectRunAttackSlash(), btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunRushingStrike().
Definition at line 361 of file battle_effect_internal.h.
YELLOW_ORB_HEIGHT
#define YELLOW_ORB_HEIGHT 48
Referenced by btEffectPackYellowOrbs(), btEffectRunAttackSlash(), btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunRushingStrike().
Definition at line 362 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(), btEffectRunFlurry() and btEffectRunRushingStrike().
Definition at line 364 of file battle_effect_internal.h.
YELLOW_ORB_PACKED_HEIGHT
#define YELLOW_ORB_PACKED_HEIGHT YELLOW_ORB_HEIGHT
Referenced by btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunRushingStrike().
Definition at line 365 of file battle_effect_internal.h.
YELLOW_ORB_PICTURES
#define YELLOW_ORB_PICTURES 6
Referenced by btEffectPackYellowOrbs(), btEffectRunCastingImpact(), btEffectRunFlurry() and btEffectRunRushingStrike().
Definition at line 366 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 btEffectRunCriticalHit() and btEffectRunFlashingStrike().
Definition at line 369 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 372 of file battle_effect_internal.h.
FIRE_STREAK_HEIGHT
#define FIRE_STREAK_HEIGHT 72
Referenced by btEffectRunAnnihilation() and btEffectRunCastingImpact().
Definition at line 373 of file battle_effect_internal.h.
FIRE_BURST_WIDTH
#define FIRE_BURST_WIDTH 40
Referenced by btEffectRunAnnihilation().
Definition at line 374 of file battle_effect_internal.h.
FIRE_BURST_HEIGHT
#define FIRE_BURST_HEIGHT 80
Referenced by btEffectRunAnnihilation().
Definition at line 375 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 378 of file battle_effect_internal.h.
VENUS_SMALL_DJINNI_HEIGHT
#define VENUS_SMALL_DJINNI_HEIGHT 38
Referenced by btEffectRunVenus().
Definition at line 379 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 381 of file battle_effect_internal.h.
FIRE_BLOB_HEIGHT
#define FIRE_BLOB_HEIGHT 32
Referenced by btEffectRunKirin().
Definition at line 382 of file battle_effect_internal.h.
CRYSTAL_WIDTH
#define CRYSTAL_WIDTH 32
Referenced by btEffectRunPrism().
Definition at line 383 of file battle_effect_internal.h.
CRYSTAL_HEIGHT
#define CRYSTAL_HEIGHT 64
Referenced by btEffectRunPrism().
Definition at line 384 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 387 of file battle_effect_internal.h.
LIGHTNING_PILLAR_HEIGHT
#define LIGHTNING_PILLAR_HEIGHT 112
Referenced by btEffectRunPlasma() and btEffectRunThor().
Definition at line 388 of file battle_effect_internal.h.
FIRE_PILLAR_WIDTH
#define FIRE_PILLAR_WIDTH 34
FirePillarSheetA: the pillar of fire, then two flames.
Referenced by btEffectRunNereid(), btEffectRunTitanBlade() and btEffectRunVolcano().
Definition at line 390 of file battle_effect_internal.h.
FIRE_PILLAR_HEIGHT
#define FIRE_PILLAR_HEIGHT 104
Referenced by btEffectRunNereid(), btEffectRunTitanBlade() and btEffectRunVolcano().
Definition at line 391 of file battle_effect_internal.h.
FIRE_PILLAR_FLAME_WIDTH
#define FIRE_PILLAR_FLAME_WIDTH 20
Referenced by btEffectRunVolcano().
Definition at line 392 of file battle_effect_internal.h.
FIRE_PILLAR_FLAME_HEIGHT
#define FIRE_PILLAR_FLAME_HEIGHT 37
Referenced by btEffectRunVolcano().
Definition at line 393 of file battle_effect_internal.h.
SPIRAL_WIDTH
#define SPIRAL_WIDTH 32
SpiralSheet's pictures.
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 395 of file battle_effect_internal.h.
SPIRAL_HEIGHT
#define SPIRAL_HEIGHT 32
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 396 of file battle_effect_internal.h.
FLAMEBALL_WIDTH
#define FLAMEBALL_WIDTH 40
FlameballSheet and FireballSheet's pictures.
Referenced by btEffectRunJupiter(), btEffectRunPlanetDiver() and btEffectRunProjectileVolley().
Definition at line 399 of file battle_effect_internal.h.
FLAMEBALL_HEIGHT
#define FLAMEBALL_HEIGHT 64
Referenced by btEffectRunJupiter(), btEffectRunPlanetDiver() and btEffectRunProjectileVolley().
Definition at line 400 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() and btEffectRunUnusedTriangleStrike().
Definition at line 403 of file battle_effect_internal.h.
RUNE_HALF_HEIGHT
#define RUNE_HALF_HEIGHT 48
Referenced by btEffectRunBind(), btEffectRunCastingImpact() and btEffectRunUnusedTriangleStrike().
Definition at line 404 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(), btEffectRunHealingMotes() and btEffectRunStatBoost().
Definition at line 409 of file battle_effect_internal.h.
DJINNI_HEIGHT
#define DJINNI_HEIGHT 40
Referenced by btEffectRunBind(), btEffectRunDjinnBeams(), btEffectRunHealingMotes() and btEffectRunStatBoost().
Definition at line 410 of file battle_effect_internal.h.
SMALL_DJINNI_WIDTH
#define SMALL_DJINNI_WIDTH 20
Referenced by btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunGround(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunMercury(), btEffectRunProjectileVolley() and btEffectRunVenus().
Definition at line 411 of file battle_effect_internal.h.
SMALL_DJINNI_HEIGHT
#define SMALL_DJINNI_HEIGHT 40
Referenced by btEffectRunDjinniEntrance(), btEffectRunGround(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunJupiter(), btEffectRunMars() and btEffectRunProjectileVolley().
Definition at line 412 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 btEffectRunCastingImpact(), btEffectRunLobbedShells(), btEffectRunTargetBursts(), btEffectRunTargetMotes() and btEffectRunTargetStrike().
Definition at line 417 of file battle_effect_internal.h.
SMOKE_PUFF_HEIGHT
#define SMOKE_PUFF_HEIGHT 48
Referenced by btEffectRunCastingImpact(), btEffectRunLobbedShells(), btEffectRunTargetBursts(), btEffectRunTargetMotes() and btEffectRunTargetStrike().
Definition at line 418 of file battle_effect_internal.h.
FLASH_BURST_WIDTH
#define FLASH_BURST_WIDTH 32
Referenced by btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunDeathPlunge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunPlanetDiver(), btEffectRunRagnarok(), btEffectRunShatteringOpening(), btEffectRunSparkGroups() and btEffectRunTitanBlade().
Definition at line 419 of file battle_effect_internal.h.
FLASH_BURST_HEIGHT
#define FLASH_BURST_HEIGHT 64
Referenced by btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunDeathPlunge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunPlanetDiver(), btEffectRunRagnarok(), btEffectRunShatteringOpening(), btEffectRunSparkGroups() and btEffectRunTitanBlade().
Definition at line 420 of file battle_effect_internal.h.
SKULL_WIDTH
#define SKULL_WIDTH 24
Referenced by btEffectRunCastingImpact(), btEffectRunHaunt() and btEffectRunOrbitingSkulls().
Definition at line 421 of file battle_effect_internal.h.
SKULL_HEIGHT
#define SKULL_HEIGHT 24
Referenced by btEffectRunCastingImpact(), btEffectRunHaunt() and btEffectRunOrbitingSkulls().
Definition at line 422 of file battle_effect_internal.h.
TORNADO_STRIP_WIDTH
#define TORNADO_STRIP_WIDTH 40
Referenced by btEffectRunCastingImpact() and btEffectRunWhirlwind().
Definition at line 423 of file battle_effect_internal.h.
TORNADO_STRIP_HEIGHT
#define TORNADO_STRIP_HEIGHT 32
Referenced by btEffectRunCastingImpact() and btEffectRunWhirlwind().
Definition at line 424 of file battle_effect_internal.h.
DAGGER_WIDTH
#define DAGGER_WIDTH 24
The pictures of DaggerSheet, ShieldSheet, GlowOrbSheet, VioletStreakSheet and WispSheet.
Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().
Definition at line 427 of file battle_effect_internal.h.
DAGGER_HEIGHT
#define DAGGER_HEIGHT 40
Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().
Definition at line 428 of file battle_effect_internal.h.
SHIELD_WIDTH
#define SHIELD_WIDTH 40
Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().
Definition at line 429 of file battle_effect_internal.h.
SHIELD_HEIGHT
#define SHIELD_HEIGHT 40
Referenced by btEffectRunStatBoost() and btEffectRunStatReduction().
Definition at line 430 of file battle_effect_internal.h.
GLOW_ORB_WIDTH
#define GLOW_ORB_WIDTH 40
Referenced by btEffectRunMars(), btEffectRunStatBoost() and btEffectRunTargetMotes().
Definition at line 431 of file battle_effect_internal.h.
GLOW_ORB_HEIGHT
#define GLOW_ORB_HEIGHT 40
Referenced by btEffectRunMars(), btEffectRunStatBoost() and btEffectRunTargetMotes().
Definition at line 432 of file battle_effect_internal.h.
VIOLET_STREAK_WIDTH
#define VIOLET_STREAK_WIDTH 32
Referenced by btEffectRunStatBoost().
Definition at line 433 of file battle_effect_internal.h.
VIOLET_STREAK_HEIGHT
#define VIOLET_STREAK_HEIGHT 64
Referenced by btEffectRunStatBoost().
Definition at line 434 of file battle_effect_internal.h.
WISP_WIDTH
#define WISP_WIDTH 64
Referenced by btEffectRunStatBoost().
Definition at line 435 of file battle_effect_internal.h.
WISP_HEIGHT
#define WISP_HEIGHT 32
Referenced by btEffectRunStatBoost().
Definition at line 436 of file battle_effect_internal.h.
VORTEX_WIDTH
#define VORTEX_WIDTH 24
VortexSheet's six pictures and HeartSheet's heart.
Definition at line 438 of file battle_effect_internal.h.
VORTEX_HEIGHT
#define VORTEX_HEIGHT 48
Definition at line 439 of file battle_effect_internal.h.
HEART_WIDTH
#define HEART_WIDTH 22
Referenced by btEffectRunTargetMotes().
Definition at line 440 of file battle_effect_internal.h.
HEART_HEIGHT
#define HEART_HEIGHT 42
Referenced by btEffectRunTargetMotes().
Definition at line 441 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() and btEffectRunNereid().
Definition at line 443 of file battle_effect_internal.h.
WATER_WAVE_HEIGHT
#define WATER_WAVE_HEIGHT 32
Referenced by btEffectRunHail(), btEffectRunNeptune() and btEffectRunNereid().
Definition at line 444 of file battle_effect_internal.h.
WATER_SPLASH_WIDTH
#define WATER_SPLASH_WIDTH 48
Referenced by btEffectRunNeptune().
Definition at line 445 of file battle_effect_internal.h.
WATER_SPLASH_HEIGHT
#define WATER_SPLASH_HEIGHT 48
Referenced by btEffectRunNeptune().
Definition at line 446 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(), btEffectOpenCanvasLayer(), btEffectRunShatteringOpening(), btEffectSetupCanvasTileMap() and btEffectStartCanvasLayer().
Definition at line 449 of file battle_effect_internal.h.
EFFECT_SET_CANVAS_AFFINE
#define EFFECT_SET_CANVAS_AFFINE()
BG2 shows the canvas from screen line 16 down (BG2Y is -16.0), stretched to twice its width: the 128x128 canvas across the battle view.
Referenced by btEffectOpenCanvasLayer(), btEffectRunShatteringOpening() and btEffectStartCanvasLayer().
Definition at line 457 of file battle_effect_internal.h.
CANVAS_WAVE_BG2X
#define CANVAS_WAVE_BG2X(sway) ((sway) >> 10)
A line's 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 btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunStreakVolley(), btEffectRunTargetMotes(), btEffectRunTorch() and btEffectRunUnusedOrbitingSpirals().
Definition at line 469 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(), btEffectStartCanvasLayer() and btEffectStartTiledCanvas().
Definition at line 472 of file battle_effect_internal.h.
Enumerations in detail
REAPER_SHEET_PICTURE
enum REAPER_SHEET_PICTURE
Where each of the reaper's pictures begins in its sprite sheet, 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 313 of file battle_effect_internal.h.
RED_CRESCENT_PICTURE
enum RED_CRESCENT_PICTURE
Where each picture of the fading red crescent begins in its sprite sheet, 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 334 of file battle_effect_internal.h.
DJINNI_ENTRANCE_LENGTH
enum DJINNI_ENTRANCE_LENGTH
What btEffectRunDjinniEntrance takes added to its element; the element alone
plays the 64-tick entrance.
| Enumerator | Value | Description |
|---|---|---|
DJINNI_ENTRANCE_LONG | ELEMENT_COUNT | The long entrance: 84 ticks instead of 64, ending in a burst of motes. |
Definition at line 484 of file battle_effect_internal.h.
DJINNI_ENTRANCE_ANCHOR
enum DJINNI_ENTRANCE_ANCHOR
Where btEffectRunDjinniEntrance's Djinni appears.
| Enumerator | Value | Description |
|---|---|---|
DJINNI_ANCHOR_OVER_TARGET | over the first target | |
DJINNI_ANCHOR_TARGET_X | at the first target's x, at depth 0 | |
DJINNI_ANCHOR_OVER_USER | ||
DJINNI_ANCHOR_USER_X | at the user's x, at depth 0; no caller | |
DJINNI_ANCHOR_CENTRE | in the centre of the field |
Definition at line 491 of file battle_effect_internal.h.
SPARK_GROUPS_MODE
enum SPARK_GROUPS_MODE
Where btEffectRunSparkGroups' bursts go off.
| Enumerator | Value | Description |
|---|---|---|
SPARK_GROUPS_NOVA | at (60, 48); the damage shows on tick 24 | |
SPARK_GROUPS_DYNAMITE | at (60, 64), orange; the damage shows on tick 2 | |
SPARK_GROUPS_RISING | below the user, in the LightningBolt colours, the sparks rising; the damage shows on tick 2 |
Definition at line 501 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 510 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 517 of file battle_effect_internal.h.
SUMMON_FORMATION
enum SUMMON_FORMATION
The summons' sprite formations (btEffectPlaceFormationSprites and
btEffectRunImpactBurst), each named for the summon that keeps it.
| Enumerator | Value | Description |
|---|---|---|
SUMMON_FORMATION_THOR | nine in a 3x3 grid at 32-pixel spacing | |
SUMMON_FORMATION_NEREID | twelve in rows of 1, 3, 4 and 4, from 16 left and 32 up | |
SUMMON_FORMATION_CYBELE | eight in rows of 3, 2 and 3, from 16 right | |
SUMMON_FORMATION_TIAMAT | eight drawn at 1.25 times their size |
Definition at line 525 of file battle_effect_internal.h.
SPIN_AXIS
enum SPIN_AXIS
The axis a swirling spark, mote or star turns about, which its index & 3 picks.
| Enumerator | Value | Description |
|---|---|---|
SPIN_YAW | ||
SPIN_PITCH | ||
SPIN_ROLL | ||
SPIN_PITCH_AND_ROLL |
Definition at line 536 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 546 of file battle_effect_internal.h.
BATTLE_EFFECT_ID_RANGE
enum BATTLE_EFFECT_ID_RANGE
Where each range of btEffectRunByIdRange's effect kinds starts: the casting
impacts, the beams, and the ring and spark effect of critical hits.
| Enumerator | Value | Description |
|---|---|---|
EFFECT_RANGE_CASTING_IMPACT | 100 | |
EFFECT_RANGE_BEAM | 136 | |
EFFECT_RANGE_RING_AND_SPARK | EFFECT_ID_CRITICAL_OFFSET |
Definition at line 556 of file battle_effect_internal.h.
Functions in detail
btDMAStop
static inline void btDMAStop(volatile Uint16 *channel)
Stops a DMA channel and reads its control back, so the stop takes effect before the channel is set up again.
Referenced by btEffectArmBg2AffineHBlankDMA(), btEffectArmPaletteHBlankDMA(), btEffectArmWin0HBlankDMA() and btEffectBuildWindowEdgeTable().
Definition at line 79 of file battle_effect_internal.h.