Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_hiding.inc.c
Go to the documentation of this file.
1/* The card grid's (CARD_GRID) hiding, once grid->hide starts it: takes a
2 card off every 2 frames, then kills the grid when none are left */
4 switch (grid->substate) {
5 case 0:
6 break;
7 case 1:
8 if (grid->shown != 0) {
9 grid->shown--;
10 grid->nextSubstate(grid);
11 grid->counter = GFX.funcs.getTime();
12 } else {
13 grid->state = TASK_KILL;
14 }
15 break;
16 case 2:
17 if (GFX.funcs.getTime() - grid->counter >= 2) {
18 grid->substate = 1;
19 }
20 break;
21 }
22}
#define CARD_GRID
The card grid that src/shared's hide_cards and update_hiding take.
Definition album.h:13
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition battle_mode.h:26
GfxState GFX
GFX: the graphics state and its methods.
Definition display.c:209
#define TASK_KILL
Definition task.h:37
s32(* getTime)(void)
Definition gfx.h:31
GfxFuncs funcs
Definition gfx.h:77
void updateHiding(CARD_GRID *grid)
The card grid's (CARD_GRID) hiding, once grid->hide starts it: takes a card off every 2 frames,...