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

The map's hidden spots, one of which holds a prize, and their effects. More...

#include "field/field_mode.h"
Include dependency graph for hidden_spots.c:

Go to the source code of this file.

Functions

void FIELDSTG_showSpotHint (SpotHint *task)
 The hint after a search without the prize: a sprite that flashes faster the closer the prize is.
 
SpotHint * FIELDSTG_createSpotHint (Vec2 from, Vec2 to)
 Creates the hint for a search at to, from the prize at from.
 
void FIELDSTG_hidePrize (HiddenSpots *task)
 Hides the prize in one of the hidden spots at random (GAME.prizeSpot keeps it)
 
void FIELDSTG_updateHiddenSpots (HiddenSpots *task, HiddenSpotsChildren *children)
 The hidden spots' update: a search plays its effect, then starts a battle where the prize is (and hides it again) or shows a hint, and animates the searched spot's object.
 
HiddenSpots * FIELDSTG_createHiddenSpots (s32 count)
 Creates the hidden spots, the map objects of animation 0xFF, and hides the prize in one (or where it was, in the same mode)
 
HiddenSpots * FIELDSTG_findHiddenSpot (Vec2 *pos, s32 select)
 The hidden spots, when one is within 10 pixels of pos (selecting it if select), or NULL.
 
void FIELDSTG_searchEventSpot (void)
 Searches the hidden spots off the map (x 1000 and up), for an event.
 
void FIELDSTG_drawSpotEffect (SpotEffect *task, Layer *layer)
 The layer's sorted callback that draws a search's effect.
 
void FIELDSTG_updateSpotEffect (SpotEffect *task)
 A search's effect, over the player or, for an event, its actor 0x11B.
 
SpotEffect * FIELDSTG_createSpotEffect (s32 forEvent)
 Creates a search's effect, over the event's actor 0x11B if forEvent, else over the player.
 

Detailed Description

The map's hidden spots, one of which holds a prize, and their effects.

Definition in file hidden_spots.c.

Function Documentation

◆ FIELDSTG_showSpotHint()

void FIELDSTG_showSpotHint ( SpotHint *  task)

The hint after a search without the prize: a sprite that flashes faster the closer the prize is.

hidden_spots.c

< the map, its objects and characters, and the menus

Definition at line 7 of file hidden_spots.c.

Referenced by FIELDSTG_createSpotHint().

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

◆ FIELDSTG_createSpotHint()

SpotHint * FIELDSTG_createSpotHint ( Vec2  from,
Vec2  to 
)

Creates the hint for a search at to, from the prize at from.

Definition at line 57 of file hidden_spots.c.

Referenced by FIELDSTG_updateHiddenSpots().

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

◆ FIELDSTG_hidePrize()

void FIELDSTG_hidePrize ( HiddenSpots *  task)

Hides the prize in one of the hidden spots at random (GAME.prizeSpot keeps it)

Definition at line 67 of file hidden_spots.c.

Referenced by FIELDSTG_createHiddenSpots(), and FIELDSTG_updateHiddenSpots().

Here is the caller graph for this function:

◆ FIELDSTG_updateHiddenSpots()

void FIELDSTG_updateHiddenSpots ( HiddenSpots *  task,
HiddenSpotsChildren *  children 
)

The hidden spots' update: a search plays its effect, then starts a battle where the prize is (and hides it again) or shows a hint, and animates the searched spot's object.

< the hidden spots'

Definition at line 78 of file hidden_spots.c.

Referenced by FIELDSTG_createHiddenSpots().

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

◆ FIELDSTG_createHiddenSpots()

HiddenSpots * FIELDSTG_createHiddenSpots ( s32  count)

Creates the hidden spots, the map objects of animation 0xFF, and hides the prize in one (or where it was, in the same mode)

Definition at line 153 of file hidden_spots.c.

Referenced by FIELDSTG_updateMapObjects().

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

◆ FIELDSTG_findHiddenSpot()

HiddenSpots * FIELDSTG_findHiddenSpot ( Vec2 *  pos,
s32  select 
)

The hidden spots, when one is within 10 pixels of pos (selecting it if select), or NULL.

Definition at line 189 of file hidden_spots.c.

Referenced by FIELDSTG_controlPlayer(), and FIELDSTG_isTileFree().

Here is the caller graph for this function:

◆ FIELDSTG_searchEventSpot()

void FIELDSTG_searchEventSpot ( void  )

Searches the hidden spots off the map (x 1000 and up), for an event.

Definition at line 209 of file hidden_spots.c.

Referenced by FIELDSTG_handleFieldCommand().

Here is the caller graph for this function:

◆ FIELDSTG_drawSpotEffect()

void FIELDSTG_drawSpotEffect ( SpotEffect *  task,
Layer *  layer 
)

The layer's sorted callback that draws a search's effect.

Definition at line 225 of file hidden_spots.c.

Referenced by FIELDSTG_updateSpotEffect().

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

◆ FIELDSTG_updateSpotEffect()

void FIELDSTG_updateSpotEffect ( SpotEffect *  task)

A search's effect, over the player or, for an event, its actor 0x11B.

< the map, its objects and characters, and the menus

< every character (FIELDSTG_createActor)

< every character (FIELDSTG_createActor)

Definition at line 237 of file hidden_spots.c.

Referenced by FIELDSTG_createSpotEffect().

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

◆ FIELDSTG_createSpotEffect()

SpotEffect * FIELDSTG_createSpotEffect ( s32  forEvent)

Creates a search's effect, over the event's actor 0x11B if forEvent, else over the player.

Definition at line 290 of file hidden_spots.c.

Referenced by FIELDSTG_updateHiddenSpots().

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