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

The grid of six cards, which the pack screen and the buy screen turn over to the cards drawn. More...

Include dependency graph for card_grid.c:

Go to the source code of this file.

Functions

void STCRDSHP_loadIcons (CardPackGrid *grid)
 Loads the images of the grid's cards into VRAM, one cell each, up to the first empty one.
 
void STCRDSHP_setCards (CardPackGrid *grid, s32 *cards)
 Turns the grid over to six new cards (grid->setCards): keeps the old ones to draw while the slots turn.
 
void STCRDSHP_drawCards (CardPackGrid *grid, s32 previous)
 Draws the cards drawn (or the ones being turned over): each card's image, its numbers or its kind's mark, and its frame.
 
void STCRDSHP_drawTurningSlots (CardPackGrid *grid)
 Draws the cover over each slot turned so far, in the palette of the turn's current frame.
 
void STCRDSHP_updateGrid (CardPackGrid *grid)
 The grid's task: covers its slots one by one (every 2 frames) above the old cards, loads the new ones' images and steps the covers' palette over 11 frames above them, then shows them until they are hidden.
 
CardPackGrid * STCRDSHP_createGrid (CardShop *owner, s32 *cards)
 Creates the grid of six cards, copying the cards given.
 

Detailed Description

The grid of six cards, which the pack screen and the buy screen turn over to the cards drawn.

Definition in file card_grid.c.

Function Documentation

◆ STCRDSHP_loadIcons()

void STCRDSHP_loadIcons ( CardPackGrid *  grid)

Loads the images of the grid's cards into VRAM, one cell each, up to the first empty one.

card_grid.c

Definition at line 8 of file card_grid.c.

Referenced by STCRDSHP_updateGrid().

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

◆ STCRDSHP_setCards()

void STCRDSHP_setCards ( CardPackGrid *  grid,
s32 *  cards 
)

Turns the grid over to six new cards (grid->setCards): keeps the old ones to draw while the slots turn.

Definition at line 32 of file card_grid.c.

Referenced by STCRDSHP_createGrid(), and STCRDSHP_updateGrid().

Here is the caller graph for this function:

◆ STCRDSHP_drawCards()

void STCRDSHP_drawCards ( CardPackGrid *  grid,
s32  previous 
)

Draws the cards drawn (or the ones being turned over): each card's image, its numbers or its kind's mark, and its frame.

The match depends on the digits' x being written dx + 0x27 + x and on cards++ being in the for.

Definition at line 49 of file card_grid.c.

Referenced by STCRDSHP_updateGrid().

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

◆ STCRDSHP_drawTurningSlots()

void STCRDSHP_drawTurningSlots ( CardPackGrid *  grid)

Draws the cover over each slot turned so far, in the palette of the turn's current frame.

Definition at line 127 of file card_grid.c.

Referenced by STCRDSHP_updateGrid().

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

◆ STCRDSHP_updateGrid()

void STCRDSHP_updateGrid ( CardPackGrid *  grid)

The grid's task: covers its slots one by one (every 2 frames) above the old cards, loads the new ones' images and steps the covers' palette over 11 frames above them, then shows them until they are hidden.

< SYSTEM07

Definition at line 149 of file card_grid.c.

Referenced by STCRDSHP_createGrid().

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

◆ STCRDSHP_createGrid()

CardPackGrid * STCRDSHP_createGrid ( CardShop *  owner,
s32 *  cards 
)

Creates the grid of six cards, copying the cards given.

The match depends on cards++ being in the for.

Definition at line 208 of file card_grid.c.

Referenced by STCRDSHP_openPack(), and STCRDSHP_updateBuy().

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