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 */
3
void
OVL_NAME
(
updateHiding
)(
CARD_GRID
*grid) {
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
}
CARD_GRID
#define CARD_GRID
The card grid that src/shared's hide_cards and update_hiding take.
Definition
album.h:13
OVL_NAME
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition
battle_mode.h:26
GFX
GfxState GFX
GFX: the graphics state and its methods.
Definition
display.c:209
TASK_KILL
#define TASK_KILL
Definition
task.h:37
GfxFuncs::getTime
s32(* getTime)(void)
Definition
gfx.h:31
GfxState::funcs
GfxFuncs funcs
Definition
gfx.h:77
updateHiding
void updateHiding(CARD_GRID *grid)
The card grid's (CARD_GRID) hiding, once grid->hide starts it: takes a card off every 2 frames,...
Definition
update_hiding.inc.c:3
src
shared
update_hiding.inc.c
Generated by
1.9.8