src/field/script_commands_reveal.c
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | REVEAL_RADIUS 60 | How far the leader may walk from where Reveal was cast, in screen pixels up and down; sideways x counts at about 0.82 of itself, so the edge is an ellipse about 73 pixels to either side. |
#define | REVEAL_TICKS 600 | ten seconds of Reveal |
Functions
| Name | Description | |
|---|---|---|
void | fdActorSetRevealSpriteColor (Sint32 value) | Reveal's colour for the rocks it shows (sprite 200), given at its start and taken back at its end. |
void | fdPsynergyWatchLeaderDistance (void) | As The Broken Seal's, with this game's offsets: counts the timer down and, once the leader is REVEAL_RADIUS from the centre or the timer has run out, requests the effect's end. |
void | fdPsynergyReveal (void) | Reveal: open a circle of the transition on the caster, wash the screen plain, run the Reveal script that matches, then show the markers nearby and watch how far the leader walks. |
void | fdPsynergyEndReveal (void) | Ends Reveal if it is running: stops its watch, brings the colours back from black over 30 ticks and runs the scene's PSYNERGY_PHASE_FADES script. |
Macros in detail
REVEAL_RADIUS
#define REVEAL_RADIUS 60
How far the leader may walk from where Reveal was cast, in screen pixels up and down; sideways x counts at about 0.82 of itself, so the edge is an ellipse about 73 pixels to either side.
Referenced by fdPsynergyWatchLeaderDistance().
Definition at line 32 of file script_commands_reveal.c.
REVEAL_TICKS
#define REVEAL_TICKS 600
ten seconds of Reveal
Referenced by fdPsynergyReveal().
Definition at line 70 of file script_commands_reveal.c.
Functions in detail
fdActorSetRevealSpriteColor
void fdActorSetRevealSpriteColor(Sint32 value)
Reveal's colour for the rocks it shows (sprite 200), given at its start and taken back at its end. Only the loop over the actors is left; value goes unused.
References Sint32.
Referenced by fdPsynergyEndReveal() and fdPsynergyReveal().
Definition at line 6 of file script_commands_reveal.c.
fdPsynergyWatchLeaderDistance
void fdPsynergyWatchLeaderDistance(void)
As The Broken Seal's, with this game's offsets: counts the timer down and,
once the leader is REVEAL_RADIUS from the centre or the timer has run out,
requests the effect's end.
References fdActorLookup(), MainRoutineStateWork and Sint32.
Referenced by fdPsynergyEndReveal() and fdPsynergyReveal().
Definition at line 37 of file script_commands_reveal.c.
fdPsynergyReveal
void fdPsynergyReveal(void)
Reveal: open a circle of the transition on the caster, wash the screen plain, run the Reveal script that matches, then show the markers nearby and watch how far the leader walks.
References fdActorSetRevealSpriteColor(), fdEffectSpawnRevealMarkers(), fdFindPsynergyCue(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdPsynergyWatchLeaderDistance(), fdRunPsynergyScript(), fdScreenTransitionStartWindowHeld(), fdSelectPsynergyTarget(), Sint32, sySetEvent(), sySoundPlayStub() and sySynch().
Referenced by fdPsynergyDispatch() and fdPsynergyRun().
Definition at line 75 of file script_commands_reveal.c.
fdPsynergyEndReveal
void fdPsynergyEndReveal(void)
Ends Reveal if it is running: stops its watch, brings the colours back from
black over 30 ticks and runs the scene's PSYNERGY_PHASE_FADES script.
References fdActorSetRevealSpriteColor(), fdFindPsynergyCue(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdPsynergyWatchLeaderDistance(), fdRunPsynergyScript(), fdSelectPsynergyTarget(), syCloseEvent(), sySoundPlayStub() and sySynch().
Referenced by fdPsynergyDispatch(), fdPsynergyRun() and fdPsynergyRunEnd().
Definition at line 120 of file script_commands_reveal.c.