Skip to Content
The Alchemy Project

include/field/speaker.h

The speaker lookup's view of an actor's sprite, the speaker definitions, and the palette fade's heap slot.

Included by field_engine_tables.c, kalay_tolbi_docks.c, kolima_forest_cliff.c, kolima_forest_floodgate.c, kolima_forest_glade.c, kolima_forest_tree.c, sanctum.c, tree_rooms.c and battle.h.

Structures

NameDescription
structSPEAKER_SPRAn actor's animated sprite (SPR), as far as the pointer to its sprite id.
structSPEAKER_DEFINITIONA speaker definition, a row of SpeakerDefinitions: a sprite, its voice (SPEAKER_VOICE_NONE for none) and the lines it says while Halted.

Macros

NameDescription
#defineSPEAKER_VOICE (sound) ((sound) - SE_VOICE_FIRST)SPEAKER_DEFINITION.value of a voice: the first of its four blip sounds, less SE_VOICE_FIRST.
#defineSPEAKER_VOICE_NONE 255SPEAKER_DEFINITION.value of a sprite with no voice.
#defineSPEAKER_HALTED_LINES_NONE 255SPEAKER_DEFINITION.haltedLines of a sprite Halt never stops: the monsters that talk, and things such as chests, rocks, trees and signposts.
#definePaletteFadeState (*(PALETTE_FADE **)&HeapSlots[HEAP_SLOT_PALETTE_FADE])The palette fade, heap slot HEAP_SLOT_PALETTE_FADE under its own name.

Description

The speaker lookup's view of an actor's sprite, the speaker definitions, and the palette fade's heap slot.

Macros in detail

SPEAKER_VOICE

#define SPEAKER_VOICE(sound) ((sound) - SE_VOICE_FIRST)

SPEAKER_DEFINITION.value of a voice: the first of its four blip sounds, less SE_VOICE_FIRST.

Referenced by SpeakerDefinitions.

Definition at line 25 of file speaker.h.

SPEAKER_VOICE_NONE

#define SPEAKER_VOICE_NONE 255

SPEAKER_DEFINITION.value of a sprite with no voice.

Referenced by fdSpeakerGetVoice() and SpeakerDefinitions.

Definition at line 27 of file speaker.h.

SPEAKER_HALTED_LINES_NONE

#define SPEAKER_HALTED_LINES_NONE 255

SPEAKER_DEFINITION.haltedLines of a sprite Halt never stops: the monsters that talk, and things such as chests, rocks, trees and signposts.

Referenced by fdPsynergyFilterHaltTarget() and SpeakerDefinitions.

Definition at line 30 of file speaker.h.

PaletteFadeState

#define PaletteFadeState (*(PALETTE_FADE **)&HeapSlots[HEAP_SLOT_PALETTE_FADE])

The palette fade, heap slot HEAP_SLOT_PALETTE_FADE under its own name.

Referenced by fdPaletteFadeSetBackdrop(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdPaletteFadeUpdate(), fdPsynergyFadeToCastColor(), fdWeatherStartLightning(), fdWeatherStartLightningFlash(), fdWeatherUpdateLightning(), mnShopSaveAndTintFieldPalette(), mnTitlePaletteFadeSetBackdrop(), mnTitlePaletteFadeSetCurrent(), mnTitlePaletteFadeSetTarget(), mnTitlePaletteFadeStart(), mnTitlePaletteFadeUpdate(), scAltinPeakStepPaletteAnimation(), scKolimaPaletteCapture(), scKolimaPaletteRestore(), scKolimaPaletteSaveCursed(), scKolimaPaletteSaveHealthy(), scSanctumLeaveAfterRefusing(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scTretPaletteSaveMapColors() and scTretPaletteUpdateMapTint().

Definition at line 47 of file speaker.h.