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

STCRDSHP.PRO: the card packs (mode 0x1300). More...

#include "engine/game.h"
Include dependency graph for card_packs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CardPack
 A card pack: the item and the six lists of 16 cards its slots draw from. More...
 
struct  CardPackGrid
 Draws the six cards drawn from a pack, and turns them over. More...
 
struct  CardShopStock
 The cards a shop sells. More...
 
struct  CardPrice
 A card's price. More...
 
struct  CardShopTitle
 The shop's title for the field it is opened from. More...
 
struct  CardShop
 The card shop's main task (STCRDSHP_createShop): buy cards, open packs or edit the decks. More...
 
struct  CardShopWindows
 The children of the shop. More...
 
struct  CardPackOpen
 The screen to open a pack (STCRDSHP_createPackOpen): the bag's packs, eight a page. More...
 
struct  CardPackOpenWindows
 The children of the screen to open a pack. More...
 
struct  CardShopBuy
 The screen to buy cards (STCRDSHP_createBuy): the shop's cards, six a page. More...
 
struct  CardShopBuyWindows
 
struct  CardShopFuncs
 The shop's helpers (STCRDSHP_funcs) More...
 

Macros

#define OVL_NAME(name)   STCRDSHP_##name
 The name of this overlay's copy of a function of src/shared/.
 
#define CARD_GRID   CardPackGrid
 The card grid that src/shared's hide_cards and update_hiding take.
 
#define CARD_PACK_IDS   315
 The cards are drawn from 315 ids (1-314)
 
#define CARD_PACK_CATEGORY   0x62
 getItemCategory's value for the card packs (the item type 28)
 
#define FILE_CARDSHOP_SPRITES   0x63E
 The sprite sheet of the screen, the shop's textures and the card data (five files, as STCRDABM loads them)
 
#define FILE_CARDSHOP_IMAGES   0x642
 
#define FILE_CARD_DATA   0x7F6
 

Functions

void STCRDSHP_createPackOpenWindows (CardPackOpen *open, CardPackOpenWindows *win)
 pack_open.c
 
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.
 
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.
 
void STCRDSHP_startFader (ScreenFade *task, s32 fadeIn, s32 duration)
 fader.c
 
void STCRDSHP_drawFader (ScreenFade *task)
 
void STCRDSHP_updateFader (ScreenFade *task)
 
ScreenFade * STCRDSHP_createFader (void)
 
void STCRDSHP_loadIcons (CardPackGrid *grid)
 card_grid.c
 
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_hideCards (CardPackGrid *grid)
 
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_updateHiding (CardPackGrid *grid)
 
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.
 
void STCRDSHP_createBuyWindows (CardShopBuy *buy, CardShopBuyWindows *win)
 buy.c
 
void STCRDSHP_showBuyCard (CardShopBuy *buy, CardShopBuyWindows *win, s32 show)
 Shows (or hides) the card under the cursor's name, price, how many the player has and its text or numbers.
 
void STCRDSHP_drawBuy (CardShopBuy *buy)
 Draws the screen: the card under the cursor's frames, the cursor, the arrows and the title.
 
void STCRDSHP_runBuy (CardShopBuy *buy, CardShopBuyWindows *win)
 The states of the screen to buy cards: picking a card (left/right, L1/R1 for the pages), the yes/no to buy it and the messages when the player can't.
 
void STCRDSHP_updateBuy (CardShopBuy *buy, CardShopBuyWindows *win)
 The buy screen's update: takes the shop's stock, six cards a page.
 
CardShopBuy * STCRDSHP_createBuy (CardShop *shop, s32 shopId)
 Creates the screen to buy the cards of a shop.
 
void STCRDSHP_updateScene (Task *task, CardShop **child)
 scene.c
 
void STCRDSHP_createShopWindows (CardShop *shop, CardShopWindows *win)
 shop.c
 
void STCRDSHP_showTitle (CardShop *shop, CardShopWindows *win, s32 show)
 Shows or hides the shop's title and the money.
 
void STCRDSHP_showOptions (CardShop *shop, CardShopWindows *win, s32 show)
 Shows or hides the options (buy cards, open a pack, edit the decks) and the help.
 
void STCRDSHP_drawShop (CardShop *shop)
 Draws the scrolling background and the panels as they open.
 
void STCRDSHP_runShop (CardShop *shop, CardShopWindows *win)
 Opens the panels, moves the cursor and starts what was chosen.
 
void STCRDSHP_showMoney (CardShop *shop)
 Shows the money left (after buying)
 
void STCRDSHP_updateShop (CardShop *shop, CardShopWindows *win)
 The shop's update: loads its files, then runs it; leaves to the field or the deck editor.
 
CardShop * STCRDSHP_createShop (void)
 Creates the card shop (task) for the shop of the mode's argument, titled for the field it is opened from; the cursor starts on the deck editor's option when coming back from it.
 
void STCRDSHP_loadFiles (void)
 Loads the shop's textures and requests its strings.
 
s32 STCRDSHP_filesLoading (void)
 Whether the shop's strings are still loading.
 
void STCRDSHP_startFade (PanelAnim *fade, s32 fadeIn)
 
s32 STCRDSHP_updateFade (PanelAnim *fade)
 
void STCRDSHP_startLerp (MenuLerp *lerp, s32 from, s32 to, s32 frames)
 
s32 STCRDSHP_updateLerp (MenuLerp *lerp)
 
CardShopStock * STCRDSHP_getStock (s32 shop)
 The stock of a shop (the first one's if it has none), counting its cards.
 
s16 STCRDSHP_getPrice (s32 card)
 The price of a card.
 

Variables

s32 STCRDSHP_slotCards [123][16]
 STCRDSHP's data, in its order: the pack screen's, the buy screen's and the shop's.
 
s32 STCRDSHP_slotCards123 []
 
s32 STCRDSHP_slotCards124 [86][16]
 
CardPack STCRDSHP_packs []
 
s32 STCRDSHP_glowRows []
 the CLUT rows of the drawn card's glow
 
s32 STCRDSHP_cursorRows []
 the CLUT rows of the cursor's frames
 
CardShopTitle STCRDSHP_titles []
 The shop's title for each field it is opened from, up to mode 0.
 
CardShopFuncs STCRDSHP_funcs
 The shops' helpers.
 
s16 STCRDSHP_shopCards [24][8]
 the cards each shop sells
 
CardPrice STCRDSHP_prices []
 The cards the shops sell and their prices.
 
CardShopStock STCRDSHP_stocks []
 Each shop's cards.
 

Detailed Description

STCRDSHP.PRO: the card packs (mode 0x1300).

Opening a pack, an item, uses it up and draws six cards, one from each of its slots' lists (STCRDSHP_packs), which are then added to the player's cards.

Definition in file card_packs.h.

Macro Definition Documentation

◆ OVL_NAME

#define OVL_NAME (   name)    STCRDSHP_##name

The name of this overlay's copy of a function of src/shared/.

Definition at line 11 of file card_packs.h.

◆ CARD_GRID

#define CARD_GRID   CardPackGrid

The card grid that src/shared's hide_cards and update_hiding take.

Definition at line 13 of file card_packs.h.

◆ CARD_PACK_IDS

#define CARD_PACK_IDS   315

The cards are drawn from 315 ids (1-314)

Definition at line 22 of file card_packs.h.

◆ CARD_PACK_CATEGORY

#define CARD_PACK_CATEGORY   0x62

getItemCategory's value for the card packs (the item type 28)

Definition at line 25 of file card_packs.h.

◆ FILE_CARDSHOP_SPRITES

#define FILE_CARDSHOP_SPRITES   0x63E

The sprite sheet of the screen, the shop's textures and the card data (five files, as STCRDABM loads them)

Definition at line 34 of file card_packs.h.

◆ FILE_CARDSHOP_IMAGES

#define FILE_CARDSHOP_IMAGES   0x642

Definition at line 35 of file card_packs.h.

◆ FILE_CARD_DATA

#define FILE_CARD_DATA   0x7F6

Definition at line 36 of file card_packs.h.

Function Documentation

◆ STCRDSHP_createPackOpenWindows()

void STCRDSHP_createPackOpenWindows ( CardPackOpen *  open,
CardPackOpenWindows *  win 
)

pack_open.c

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_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:

◆ STCRDSHP_startFader()

void STCRDSHP_startFader ( ScreenFade *  task,
s32  fadeIn,
s32  duration 
)

fader.c

◆ STCRDSHP_drawFader()

void STCRDSHP_drawFader ( ScreenFade *  task)

◆ STCRDSHP_updateFader()

void STCRDSHP_updateFader ( ScreenFade *  task)

◆ STCRDSHP_createFader()

ScreenFade * STCRDSHP_createFader ( void  )

Referenced by STCRDSHP_closeOptions(), and STCRDSHP_runShop().

Here is the caller graph for this function:

◆ STCRDSHP_loadIcons()

void STCRDSHP_loadIcons ( CardPackGrid *  grid)

card_grid.c

card_grid.c

Definition at line 8 of file card_grid.c.

Referenced by STCRDSHP_updateGrid().

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

◆ STCRDSHP_setCards()

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().

Here is the caller graph for this function:

◆ STCRDSHP_hideCards()

void STCRDSHP_hideCards ( CardPackGrid *  grid)

Referenced by STCRDSHP_createGrid().

Here is the caller graph for this function:

◆ STCRDSHP_drawCards()

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().

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

◆ STCRDSHP_drawTurningSlots()

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().

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

◆ STCRDSHP_updateHiding()

void STCRDSHP_updateHiding ( CardPackGrid *  grid)

Referenced by STCRDSHP_updateGrid().

Here is the caller graph for this function:

◆ 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().

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

◆ 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().

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

◆ STCRDSHP_createBuyWindows()

void STCRDSHP_createBuyWindows ( CardShopBuy *  buy,
CardShopBuyWindows *  win 
)

buy.c

buy.c

Definition at line 6 of file buy.c.

Referenced by STCRDSHP_updateBuy().

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

◆ STCRDSHP_showBuyCard()

void STCRDSHP_showBuyCard ( CardShopBuy *  buy,
CardShopBuyWindows *  win,
s32  show 
)

Shows (or hides) the card under the cursor's name, price, how many the player has and its text or numbers.

< CARDNM

< CRDSHP: STCRDSHP's, and STCRDDEK's

< 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 31 of file buy.c.

Referenced by STCRDSHP_chooseBuyCard(), STCRDSHP_closeBuy(), and STCRDSHP_openBuyCard().

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

◆ STCRDSHP_drawBuy()

void STCRDSHP_drawBuy ( CardShopBuy *  buy)

Draws the screen: the card under the cursor's frames, the cursor, the arrows and the title.

< 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 92 of file buy.c.

Referenced by STCRDSHP_updateBuy().

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

◆ STCRDSHP_runBuy()

void STCRDSHP_runBuy ( CardShopBuy *  buy,
CardShopBuyWindows *  win 
)

The states of the screen to buy cards: picking a card (left/right, L1/R1 for the pages), the yes/no to buy it and the messages when the player can't.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< SYSTEM07

Definition at line 364 of file buy.c.

Referenced by STCRDSHP_updateBuy().

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

◆ STCRDSHP_updateBuy()

void STCRDSHP_updateBuy ( CardShopBuy *  buy,
CardShopBuyWindows *  win 
)

The buy screen's update: takes the shop's stock, six cards a page.

The match depends on pages holding the remainder first and the partial page being a variable of its own.

Definition at line 434 of file buy.c.

Referenced by STCRDSHP_createBuy().

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

◆ STCRDSHP_createBuy()

CardShopBuy * STCRDSHP_createBuy ( CardShop *  shop,
s32  shopId 
)

Creates the screen to buy the cards of a shop.

Definition at line 473 of file buy.c.

Referenced by STCRDSHP_startOption().

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

◆ STCRDSHP_updateScene()

void STCRDSHP_updateScene ( Task *  task,
CardShop **  child 
)

scene.c

◆ STCRDSHP_createShopWindows()

void STCRDSHP_createShopWindows ( CardShop *  shop,
CardShopWindows *  win 
)

shop.c

shop.c

Definition at line 7 of file shop.c.

Referenced by STCRDSHP_updateShop().

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

◆ STCRDSHP_showTitle()

void STCRDSHP_showTitle ( CardShop *  shop,
CardShopWindows *  win,
s32  show 
)

Shows or hides the shop's title and the money.

< SHPNAM

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 31 of file shop.c.

Referenced by STCRDSHP_endOptions(), and STCRDSHP_runShop().

Here is the caller graph for this function:

◆ STCRDSHP_showOptions()

void STCRDSHP_showOptions ( CardShop *  shop,
CardShopWindows *  win,
s32  show 
)

Shows or hides the options (buy cards, open a pack, edit the decks) and the help.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 45 of file shop.c.

Referenced by STCRDSHP_closeOptions(), and STCRDSHP_runShop().

Here is the caller graph for this function:

◆ STCRDSHP_drawShop()

void STCRDSHP_drawShop ( CardShop *  shop)

Draws the scrolling background and the panels as they open.

< 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 62 of file shop.c.

Referenced by STCRDSHP_updateShop().

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

◆ STCRDSHP_runShop()

void STCRDSHP_runShop ( CardShop *  shop,
CardShopWindows *  win 
)

Opens the panels, moves the cursor and starts what was chosen.

< what is unavailable

< CRDSHP: STCRDSHP's, and STCRDDEK's

< SYSTEM07

Definition at line 199 of file shop.c.

Referenced by STCRDSHP_updateShop().

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

◆ STCRDSHP_showMoney()

void STCRDSHP_showMoney ( CardShop *  shop)

Shows the money left (after buying)

Definition at line 284 of file shop.c.

Referenced by STCRDSHP_createShop().

Here is the caller graph for this function:

◆ STCRDSHP_updateShop()

void STCRDSHP_updateShop ( CardShop *  shop,
CardShopWindows *  win 
)

The shop's update: loads its files, then runs it; leaves to the field or the deck editor.

< STCRDDEK

Definition at line 293 of file shop.c.

Referenced by STCRDSHP_createShop().

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

◆ STCRDSHP_createShop()

CardShop * STCRDSHP_createShop ( void  )

Creates the card shop (task) for the shop of the mode's argument, titled for the field it is opened from; the cursor starts on the deck editor's option when coming back from it.

Requests the card data and strings

< STCRDDEK

< CARDNM

< CARDST

Definition at line 333 of file shop.c.

Here is the call graph for this function:

◆ STCRDSHP_loadFiles()

void STCRDSHP_loadFiles ( void  )

Loads the shop's textures and requests its strings.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDNM

< CARDST

< SHPNAM

< ITMNAM

Definition at line 365 of file shop.c.

Here is the call graph for this function:

◆ STCRDSHP_filesLoading()

s32 STCRDSHP_filesLoading ( void  )

Whether the shop's strings are still loading.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDNM

< CARDST

< SHPNAM

< ITMNAM

Definition at line 379 of file shop.c.

◆ STCRDSHP_startFade()

void STCRDSHP_startFade ( PanelAnim *  fade,
s32  fadeIn 
)

◆ STCRDSHP_updateFade()

s32 STCRDSHP_updateFade ( PanelAnim *  fade)

◆ STCRDSHP_startLerp()

void STCRDSHP_startLerp ( MenuLerp *  lerp,
s32  from,
s32  to,
s32  frames 
)

◆ STCRDSHP_updateLerp()

s32 STCRDSHP_updateLerp ( MenuLerp *  lerp)

◆ STCRDSHP_getStock()

CardShopStock * STCRDSHP_getStock ( s32  shop)

The stock of a shop (the first one's if it has none), counting its cards.

Definition at line 401 of file shop.c.

◆ STCRDSHP_getPrice()

s16 STCRDSHP_getPrice ( s32  card)

The price of a card.

Definition at line 422 of file shop.c.

Variable Documentation

◆ STCRDSHP_slotCards

s32 STCRDSHP_slotCards[123][16]
extern

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

the cards each slot of a pack draws from

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[]
extern

Definition at line 862 of file pack_open.c.

◆ STCRDSHP_slotCards124

s32 STCRDSHP_slotCards124[86][16]
extern

Definition at line 867 of file pack_open.c.

◆ STCRDSHP_packs

CardPack STCRDSHP_packs[]
extern

Definition at line 1041 of file pack_open.c.

Referenced by STCRDSHP_openPack().

◆ STCRDSHP_glowRows

s32 STCRDSHP_glowRows[]
extern

the CLUT rows of the drawn card's glow

the CLUT rows of the drawn card's glow

Definition at line 1115 of file pack_open.c.

Referenced by STCRDSHP_drawPackOpen().

◆ STCRDSHP_cursorRows

s32 STCRDSHP_cursorRows[]
extern

the CLUT rows of the cursor's frames

the CLUT rows of the cursor's frames

Definition at line 484 of file buy.c.

Referenced by STCRDSHP_drawBuy().

◆ STCRDSHP_titles

CardShopTitle STCRDSHP_titles[]
extern

The shop's title for each field it is opened from, up to mode 0.

Definition at line 434 of file shop.c.

Referenced by STCRDSHP_createShop().

◆ STCRDSHP_funcs

◆ STCRDSHP_shopCards

s16 STCRDSHP_shopCards[24][8]
extern

the cards each shop sells

the cards each shop sells

Definition at line 445 of file shop.c.

◆ STCRDSHP_prices

CardPrice STCRDSHP_prices[]
extern

The cards the shops sell and their prices.

Definition at line 472 of file shop.c.

Referenced by STCRDSHP_getPrice().

◆ STCRDSHP_stocks

CardShopStock STCRDSHP_stocks[]
extern

Each shop's cards.

Definition at line 483 of file shop.c.

Referenced by STCRDSHP_getStock().