Alchemy
Loading...
Searching...
No Matches

reveal.c File Reference

Reveal. More...

Go to the source code of this file.

Macros

#define REVEAL_END_EVENT   0x40000005
 Psynergy event, stage 4.

Functions

void ObjectDispatch_ApplyValueToKind200Children (s32 value)
 Passes value (as animation timer steps) to every one of the 64 objects whose first sprite part shows sprite 200.
void FieldEffect_WatchLeaderDistance (void)
 Scheduler callback of the timed effect (kind 8): asks for it to end once the leader is 60 pixels from its centre or its time has run out.
void FieldFx_RunReveal (void)
 Starts a screen transition centred on the leader, runs the matching event if there is one, and puts markers round the leader.
void ResetSceneTransitionEffect (void)
 Ends Reveal if it is running: stops its watch, brings the colours back from black over 30 frames and runs stage 4 of the Psynergy event.

Detailed Description

Reveal.

Part of psynergy_effects.c, compiled only through it.

Definition in file reveal.c.

Macro Definition Documentation

◆ REVEAL_END_EVENT

#define REVEAL_END_EVENT   0x40000005

Psynergy event, stage 4.

Definition at line 112 of file reveal.c.

Referenced by ResetSceneTransitionEffect().

Function Documentation

◆ ObjectDispatch_ApplyValueToKind200Children()

void ObjectDispatch_ApplyValueToKind200Children ( s32 value)

Passes value (as animation timer steps) to every one of the 64 objects whose first sprite part shows sprite 200.

Definition at line 9 of file reveal.c.

Referenced by Djinn_ResolvePendingEvent(), FieldFx_RunReveal(), ObjectDispatch_ApplyValueToKind200Children(), and ResetSceneTransitionEffect().

◆ FieldEffect_WatchLeaderDistance()

void FieldEffect_WatchLeaderDistance ( void )

Scheduler callback of the timed effect (kind 8): asks for it to end once the leader is 60 pixels from its centre or its time has run out.

The centre and the time are in the event work from 0xcb8 on (FieldFx_RunReveal).

Definition at line 36 of file reveal.c.

Referenced by Djinn_ResolvePendingEvent(), FieldEffect_WatchLeaderDistance(), FieldFx_RunReveal(), and ResetSceneTransitionEffect().

◆ FieldFx_RunReveal()

void FieldFx_RunReveal ( void )

Starts a screen transition centred on the leader, runs the matching event if there is one, and puts markers round the leader.

Abilities: Reveal (field kind 8).

Definition at line 67 of file reveal.c.

Referenced by BattleFx_DispatchRequestKind(), BattleFx_Run(), Djinn_ResolvePendingEvent(), and FieldFx_RunReveal().

◆ ResetSceneTransitionEffect()

void ResetSceneTransitionEffect ( void )

Ends Reveal if it is running: stops its watch, brings the colours back from black over 30 frames and runs stage 4 of the Psynergy event.

Definition at line 116 of file reveal.c.

Referenced by BattleFx_DispatchRequestKind(), BattleFx_Run(), Djinn_ResolvePendingEvent(), FieldEvent_RunTypeHandler(), and ResetSceneTransitionEffect().