Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
sprite_effect.c File Reference

FIGHTSTG's sprite effects: the 2D effects of techniques and hits, from their sheets. More...

Include dependency graph for sprite_effect.c:

Go to the source code of this file.

Functions

s32 FIGHTSTG_findEffectSheet (s32 effect, s32 *images, s32 *sheet, Vec2 *texPos)
 Finds 2D effect effect's sheet (FIGHTSTG_spriteEffects, FIGHTSTG_effectSheets) and gives its values; returns whether it has one.
 
void FIGHTSTG_updateSpriteEffect (SpriteEffect *task, SpriteAnim **children)
 A 2D effect's task: starts a sprite animation for each entry of its archive (up to 30), on BATTLE_LAYER_FRONT for effects 1000 to 1002 and 1007, else on BATTLE_LAYER_MODELS, and ends once they all have.
 
SpriteEffect * FIGHTSTG_startSpriteEffect (s32 effect, const SVECTOR *pos)
 Starts 2D effect effect (FIGHTSTG_spriteEffects) at pos; killed at once when it has no entry.
 

Variables

EffectSheet FIGHTSTG_effectSheets []
 the 2D effects' sheets; the European version's differ
 
SpriteEffectEntry FIGHTSTG_spriteEffects []
 the 2D effects, ended by an id of -1; the European version's differ
 

Detailed Description

FIGHTSTG's sprite effects: the 2D effects of techniques and hits, from their sheets.

Definition in file sprite_effect.c.

Function Documentation

◆ FIGHTSTG_findEffectSheet()

s32 FIGHTSTG_findEffectSheet ( s32  effect,
s32 *  images,
s32 *  sheet,
Vec2 *  texPos 
)

Finds 2D effect effect's sheet (FIGHTSTG_spriteEffects, FIGHTSTG_effectSheets) and gives its values; returns whether it has one.

Definition at line 425 of file sprite_effect.c.

Referenced by FIGHTSTG_runScriptEffect(), and FIGHTSTG_updateHitEffect().

Here is the caller graph for this function:

◆ FIGHTSTG_updateSpriteEffect()

void FIGHTSTG_updateSpriteEffect ( SpriteEffect *  task,
SpriteAnim **  children 
)

A 2D effect's task: starts a sprite animation for each entry of its archive (up to 30), on BATTLE_LAYER_FRONT for effects 1000 to 1002 and 1007, else on BATTLE_LAYER_MODELS, and ends once they all have.

< the fades, the flashes and the sprite effects over all

< the fades, the flashes and the sprite effects over all

Definition at line 442 of file sprite_effect.c.

Referenced by FIGHTSTG_startSpriteEffect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_startSpriteEffect()

SpriteEffect * FIGHTSTG_startSpriteEffect ( s32  effect,
const SVECTOR *  pos 
)

Starts 2D effect effect (FIGHTSTG_spriteEffects) at pos; killed at once when it has no entry.

Definition at line 495 of file sprite_effect.c.

Referenced by FIGHTSTG_runScriptEffect(), FIGHTSTG_updateHitEffect(), startChange(), wipeFromWireframe(), and wipeToWireframe().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ FIGHTSTG_effectSheets

EffectSheet FIGHTSTG_effectSheets[]

the 2D effects' sheets; the European version's differ

Definition at line 62 of file sprite_effect.c.

Referenced by FIGHTSTG_findEffectSheet(), and FIGHTSTG_updateSpriteEffect().

◆ FIGHTSTG_spriteEffects

SpriteEffectEntry FIGHTSTG_spriteEffects[]

the 2D effects, ended by an id of -1; the European version's differ

Definition at line 270 of file sprite_effect.c.

Referenced by FIGHTSTG_findEffectSheet(), and FIGHTSTG_startSpriteEffect().