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

The screen that opens a card pack from the bag, and the packs' cards. More...

Include dependency graph for pack_open.c:

Go to the source code of this file.

Functions

void STCRDSHP_createPackOpenWindows (CardPackOpen *open, CardPackOpenWindows *win)
 Creates the screen's windows and cursor.
 
void STCRDSHP_showPackPage (CardPackOpen *open, CardPackOpenWindows *win, s32 show)
 Shows the page's packs, the page number and the arrows' labels, or hides them.
 
void STCRDSHP_showPack (CardPackOpen *open, CardPackOpenWindows *win, s32 show)
 Shows the name of the pack under the cursor, how many the bag holds and the help, or hides them.
 
void STCRDSHP_showPackCard (CardPackOpen *open, CardPackOpenWindows *win, s32 show)
 Shows the card under the cursor: its name, how many the player has and its numbers or its text, or hides them (also while it hasn't been seen)
 
void STCRDSHP_drawPackOpen (CardPackOpen *open)
 Draws the screen: the page's packs and the arrows, the pack under the cursor, the help's frame and the card under the cursor.
 
void STCRDSHP_listPacks (CardPackOpen *open)
 Lists the bag's card packs, and how many pages they fill.
 
static void STCRDSHP_choosePack (CardPackOpen *open, CardPackOpenWindows *win)
 The cursor on the page's packs (two columns of four): L1/R1 turn the page, the pad moves it; cross opens the pack, triangle leaves.
 
static void STCRDSHP_closePackList (CardPackOpen *open, CardPackOpenWindows *win)
 Hides the packs' page and the pack under the cursor and closes their panels; the help says the pack is opened, triangle to go back.
 
static void STCRDSHP_openPack (CardPackOpen *open, CardPackOpenWindows *win)
 Once the panels have closed (and the last pack's grid has gone): draws the pack's six cards, one of 16 at random for each slot, adds them to the player's and takes the pack from the bag, then lays them out.
 
static void STCRDSHP_choosePackCard (CardPackOpen *open, CardPackOpenWindows *win)
 The cursor on the cards drawn: left/right show each one; triangle closes them.
 
static void STCRDSHP_closePackOpen (CardPackOpen *open, CardPackOpenWindows *win)
 Leaving, once the help's panel has closed: hides the packs' page and the pack under the cursor and closes their panels.
 
void STCRDSHP_runPackOpen (CardPackOpen *open, CardPackOpenWindows *win)
 The states of the screen that opens a pack: its fades, the page and cursor, and the grid of cards a pack gives.
 
void STCRDSHP_updatePackOpen (CardPackOpen *open, CardPackOpenWindows *win)
 The update of the screen to open a pack.
 
CardPackOpen * STCRDSHP_createPackOpen (CardShop *shop)
 Creates the screen to open a pack.
 

Variables

s32 STCRDSHP_slotCards [123][16]
 The cards each slot of a pack draws one of, 16 each (STCRDSHP_packs)
 
s32 STCRDSHP_slotCards123 [16]
 
s32 STCRDSHP_slotCards124 [86][16]
 
CardPack STCRDSHP_packs []
 
s32 STCRDSHP_glowRows []
 The CLUT rows of the glow around the card drawn last.
 

Detailed Description

The screen that opens a card pack from the bag, and the packs' cards.

Definition in file pack_open.c.

Function Documentation

◆ STCRDSHP_createPackOpenWindows()

void STCRDSHP_createPackOpenWindows ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)

Creates the screen's windows and cursor.

pack_open.c

Definition at line 6 of file pack_open.c.

Referenced by STCRDSHP_updatePackOpen().

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

◆ STCRDSHP_showPackPage()

void STCRDSHP_showPackPage ( CardPackOpen *  open,
CardPackOpenWindows *  win,
s32  show 
)

Shows the page's packs, the page number and the arrows' labels, or hides them.

< ITMNAM

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 38 of file pack_open.c.

Referenced by STCRDSHP_choosePack(), STCRDSHP_closePackList(), STCRDSHP_closePackOpen(), and STCRDSHP_runPackOpen().

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

◆ STCRDSHP_showPack()

void STCRDSHP_showPack ( CardPackOpen *  open,
CardPackOpenWindows *  win,
s32  show 
)

Shows the name of the pack under the cursor, how many the bag holds and the help, or hides them.

< ITMNAM

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 84 of file pack_open.c.

Referenced by STCRDSHP_choosePack(), STCRDSHP_closePackList(), STCRDSHP_closePackOpen(), and STCRDSHP_runPackOpen().

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

◆ STCRDSHP_showPackCard()

void STCRDSHP_showPackCard ( CardPackOpen *  open,
CardPackOpenWindows *  win,
s32  show 
)

Shows the card under the cursor: its name, how many the player has and its numbers or its text, or hides them (also while it hasn't been seen)

< CARDNM

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 106 of file pack_open.c.

Referenced by STCRDSHP_choosePackCard(), and STCRDSHP_runPackOpen().

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

◆ STCRDSHP_drawPackOpen()

void STCRDSHP_drawPackOpen ( CardPackOpen *  open)

Draws the screen: the page's packs and the arrows, the pack under the cursor, the help's frame and the card under the cursor.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 162 of file pack_open.c.

Referenced by STCRDSHP_updatePackOpen().

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

◆ STCRDSHP_listPacks()

void STCRDSHP_listPacks ( CardPackOpen *  open)

Lists the bag's card packs, and how many pages they fill.

Definition at line 281 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen(), and STCRDSHP_updatePackOpen().

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

◆ STCRDSHP_choosePack()

static void STCRDSHP_choosePack ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)
inlinestatic

The cursor on the page's packs (two columns of four): L1/R1 turn the page, the pad moves it; cross opens the pack, triangle leaves.

< SYSTEM02: a cursor moves

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 299 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen().

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

◆ STCRDSHP_closePackList()

static void STCRDSHP_closePackList ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)
inlinestatic

Hides the packs' page and the pack under the cursor and closes their panels; the help says the pack is opened, triangle to go back.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 368 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen().

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

◆ STCRDSHP_openPack()

static void STCRDSHP_openPack ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)
inlinestatic

Once the panels have closed (and the last pack's grid has gone): draws the pack's six cards, one of 16 at random for each slot, adds them to the player's and takes the pack from the bag, then lays them out.

Definition at line 382 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen().

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

◆ STCRDSHP_choosePackCard()

static void STCRDSHP_choosePackCard ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)
inlinestatic

The cursor on the cards drawn: left/right show each one; triangle closes them.

< SYSTEM06

< SYSTEM01

Definition at line 416 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen().

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

◆ STCRDSHP_closePackOpen()

static void STCRDSHP_closePackOpen ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)
inlinestatic

Leaving, once the help's panel has closed: hides the packs' page and the pack under the cursor and closes their panels.

Definition at line 444 of file pack_open.c.

Referenced by STCRDSHP_runPackOpen().

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

◆ STCRDSHP_runPackOpen()

void STCRDSHP_runPackOpen ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)

The states of the screen that opens a pack: its fades, the page and cursor, and the grid of cards a pack gives.

Definition at line 457 of file pack_open.c.

Referenced by STCRDSHP_updatePackOpen().

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

◆ STCRDSHP_updatePackOpen()

void STCRDSHP_updatePackOpen ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)

The update of the screen to open a pack.

Definition at line 573 of file pack_open.c.

Referenced by STCRDSHP_createPackOpen().

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

◆ STCRDSHP_createPackOpen()

CardPackOpen * STCRDSHP_createPackOpen ( CardShop *  shop)

Creates the screen to open a pack.

Definition at line 596 of file pack_open.c.

Referenced by STCRDSHP_startOption().

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

Variable Documentation

◆ STCRDSHP_slotCards

s32 STCRDSHP_slotCards[123][16]

The cards each slot of a pack draws one of, 16 each (STCRDSHP_packs)

STCRDSHP's data, in its order: the pack screen's, the buy screen's and the shop's.

Definition at line 606 of file pack_open.c.

◆ STCRDSHP_slotCards123

s32 STCRDSHP_slotCards123[16]
Initial value:
= {
86, 86, 170, 170, 170, 213, 213, 215,
215, 226, 226, 226, 295, 295, 304, 304,
}

Definition at line 862 of file pack_open.c.

◆ STCRDSHP_slotCards124

s32 STCRDSHP_slotCards124[86][16]

Definition at line 867 of file pack_open.c.

◆ STCRDSHP_packs

CardPack STCRDSHP_packs[]

Definition at line 1041 of file pack_open.c.

Referenced by STCRDSHP_openPack().

◆ STCRDSHP_glowRows

s32 STCRDSHP_glowRows[]
Initial value:
= {
0, 1, 2, 3,
2, 1,
}

The CLUT rows of the glow around the card drawn last.

the CLUT rows of the drawn card's glow

Definition at line 1115 of file pack_open.c.

Referenced by STCRDSHP_drawPackOpen().