|
Digimon World 3 decomp
The European version, SLES_039.36
|
The screen that opens a card pack from the bag, and the packs' cards. More...
#include "cardgame/card_packs.h"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. | |
The screen that opens a card pack from the bag, and the packs' cards.
Definition in file pack_open.c.
| void STCRDSHP_createPackOpenWindows | ( | CardPackOpen * | open, |
| CardPackOpenWindows * | win | ||
| ) |
Creates the screen's windows and cursor.
Definition at line 6 of file pack_open.c.
Referenced by STCRDSHP_updatePackOpen().
| 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().
| 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().
| 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().
| 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().
| 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().
|
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().
|
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().
|
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().
|
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().
|
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().
| 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().
| 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().
| 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().
| 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.
| s32 STCRDSHP_slotCards123[16] |
Definition at line 862 of file pack_open.c.
| s32 STCRDSHP_slotCards124[86][16] |
Definition at line 867 of file pack_open.c.
| CardPack STCRDSHP_packs[] |
Definition at line 1041 of file pack_open.c.
Referenced by STCRDSHP_openPack().
| s32 STCRDSHP_glowRows[] |
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().