|
Digimon World 3 decomp
The European version, SLES_039.36
|
The grid of six cards, which the pack screen and the buy screen turn over to the cards drawn. More...
#include "cardgame/card_packs.h"#include "shared/hide_cards.inc.c"#include "shared/update_hiding.inc.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. | |
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.
| void STCRDSHP_loadIcons | ( | CardPackGrid * | grid | ) |
Loads the images of the grid's cards into VRAM, one cell each, up to the first empty one.
Definition at line 8 of file card_grid.c.
Referenced by STCRDSHP_updateGrid().
| 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().
| 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().
| 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().
| 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().
| 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().