src/field/field_engine_speakers.c
Speaker definitions: voices and Halted lines by sprite. More…
Included by field_engine.c.
Macros
| Name | Description | |
|---|---|---|
#define | SPEAKER_DEFINITION_COUNT 130 | The rows of SpeakerDefinitions fdSpeakerFindDefinition searches; the row after them is the default. |
Functions
| Name | Description | |
|---|---|---|
const SPEAKER_DEFINITION * | fdSpeakerFindDefinition (Uint32 id) | Returns the speaker definition of sprite id from SpeakerDefinitions, or its last entry, the default, when there is none. |
Sint32 | fdSpeakerGetActorSprite (Sint32 id) | Returns the sprite id actor id shows, its one sprite's first animation's, or 0 when it shows no single sprite or that animation is absent. |
Sint32 | fdSpeakerGetVoice (Uint32 spriteId) | Returns the voice of sprite spriteId's messages: the first of its four blip sounds, SE_VOICE_FIRST plus its definition's value, or 0 for none (SPEAKER_VOICE_NONE) or with the Speech option off (MainRoutineStateWork.speech). |
Sint32 | fdSpeakerGetHaltedLines (Sint32 id) | Returns SPEAKER_DEFINITION.haltedLines of actor id's sprite: the pair of lines fdTalkToActor gives it while Halted, or SPEAKER_HALTED_LINES_NONE when Halt passes it over (fdPsynergyFilterHaltTarget). |
Description
Speaker definitions: voices and Halted lines by sprite. Part of
field_engine.c.
Macros in detail
SPEAKER_DEFINITION_COUNT
#define SPEAKER_DEFINITION_COUNT 130
The rows of SpeakerDefinitions fdSpeakerFindDefinition searches; the row
after them is the default.
Referenced by fdSpeakerFindDefinition().
Definition at line 8 of file field_engine_speakers.c.
Functions in detail
fdSpeakerFindDefinition
const SPEAKER_DEFINITION *fdSpeakerFindDefinition(Uint32 id)
Returns the speaker definition of sprite id from SpeakerDefinitions, or its
last entry, the default, when there is none.
References SpeakerDefinitions.
Referenced by fdSpeakerGetHaltedLines() and fdSpeakerGetVoice().
Definition at line 12 of file field_engine_speakers.c.
fdSpeakerGetActorSprite
Sint32 fdSpeakerGetActorSprite(Sint32 id)
Returns the sprite id actor id shows, its one sprite's first animation's, or 0 when it shows no single sprite or that animation is absent.
References fdActorLookup() and Sint32.
Referenced by fdSpeakerGetHaltedLines().
Definition at line 32 of file field_engine_speakers.c.
fdSpeakerGetVoice
Sint32 fdSpeakerGetVoice(Uint32 spriteId)
Returns the voice of sprite spriteId's messages: the first of its four blip
sounds, SE_VOICE_FIRST plus its definition's value, or 0 for none
(SPEAKER_VOICE_NONE) or with the Speech option off
(MainRoutineStateWork.speech).
References fdSpeakerFindDefinition(), MainRoutineStateWork and Sint32.
Referenced by fdMessageSetVoiceFromActor(), fdMessageShowAtActor() and fdScriptShowTwoMessagesAndWait().
Definition at line 48 of file field_engine_speakers.c.
fdSpeakerGetHaltedLines
Sint32 fdSpeakerGetHaltedLines(Sint32 id)
Returns SPEAKER_DEFINITION.haltedLines of actor id's sprite: the pair of
lines fdTalkToActor gives it while Halted, or SPEAKER_HALTED_LINES_NONE when
Halt passes it over (fdPsynergyFilterHaltTarget).
References fdSpeakerFindDefinition(), fdSpeakerGetActorSprite() and Sint32.
Referenced by fdPsynergyFilterHaltTarget() and fdTalkToActor().
Definition at line 64 of file field_engine_speakers.c.