|
Digimon World 3 decomp
The European version, SLES_039.36
|
The card shop's main task, which opens the pack screen or the buy screen; the files it loads; its helpers; and the shops' stock and prices. More...
#include "cardgame/card_packs.h"#include "shared/start_fade.inc.c"#include "shared/update_fade.inc.c"#include "shared/start_lerp.inc.c"#include "shared/update_lerp.inc.c"Go to the source code of this file.
Functions | |
| void | STCRDSHP_createShopWindows (CardShop *shop, CardShopWindows *win) |
| Creates the shop's windows and its cursor. | |
| 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. | |
| static void | STCRDSHP_chooseOption (CardShop *shop, CardShopWindows *win) |
| Up/down choose buy one card, open booster or edit folder; cross starts it, triangle leaves the shop. | |
| static void | STCRDSHP_startOption (CardShop *shop, CardShopWindows *win) |
| Starts what was chosen: the screen to buy cards, the one to open a pack when the bag has one (else a message), or the deck editor once the shop has closed. | |
| static void | STCRDSHP_closeOptions (CardShop *shop, CardShopWindows *win) |
| Hides the options and the cursor and closes their panel; leaving the shop (step unset), also fades the screen out. | |
| static void | STCRDSHP_endOptions (CardShop *shop, CardShopWindows *win) |
| Once the options' panel has closed: waits for the screen chosen, or closes the title's panel to leave. | |
| 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. | |
| 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 | |
| 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 (STCRDSHP_stocks), up to 0. | |
| CardPrice | STCRDSHP_prices [] |
| The cards the shops sell and their prices. | |
| CardShopStock | STCRDSHP_stocks [] |
| Each shop's cards. | |
The card shop's main task, which opens the pack screen or the buy screen; the files it loads; its helpers; and the shops' stock and prices.
Definition in file shop.c.
| void STCRDSHP_createShopWindows | ( | CardShop * | shop, |
| CardShopWindows * | win | ||
| ) |
Creates the shop's windows and its cursor.
shop.c
Definition at line 7 of file shop.c.
Referenced by STCRDSHP_updateShop().
| 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().
| 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().
| 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().
|
inlinestatic |
Up/down choose buy one card, open booster or edit folder; cross starts it, triangle leaves the shop.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 110 of file shop.c.
Referenced by STCRDSHP_runShop().
|
inlinestatic |
Starts what was chosen: the screen to buy cards, the one to open a pack when the bag has one (else a message), or the deck editor once the shop has closed.
Definition at line 139 of file shop.c.
Referenced by STCRDSHP_runShop().
|
inlinestatic |
Hides the options and the cursor and closes their panel; leaving the shop (step unset), also fades the screen out.
Definition at line 172 of file shop.c.
Referenced by STCRDSHP_runShop().
|
inlinestatic |
Once the options' panel has closed: waits for the screen chosen, or closes the title's panel to leave.
Definition at line 186 of file shop.c.
Referenced by 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().
| void STCRDSHP_showMoney | ( | CardShop * | shop | ) |
Shows the money left (after buying)
Definition at line 284 of file shop.c.
Referenced by STCRDSHP_createShop().
| 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().
| 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.
| void STCRDSHP_loadFiles | ( | void | ) |
| s32 STCRDSHP_filesLoading | ( | void | ) |
| CardShopStock * STCRDSHP_getStock | ( | s32 | shop | ) |
| CardShopTitle STCRDSHP_titles[] |
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().
| CardShopFuncs STCRDSHP_funcs |
The shops' helpers.
Definition at line 440 of file shop.c.
Referenced by STCRDSHP_chooseBuyCard(), STCRDSHP_closeBuy(), STCRDSHP_closeBuyTotal(), STCRDSHP_closeOptions(), STCRDSHP_closePackList(), STCRDSHP_closePackOpen(), STCRDSHP_endOptions(), STCRDSHP_openBuyCard(), STCRDSHP_openBuyTotal(), STCRDSHP_openPack(), STCRDSHP_runBuy(), STCRDSHP_runPackOpen(), STCRDSHP_runShop(), STCRDSHP_showBuyCard(), STCRDSHP_updateBuy(), and STCRDSHP_updateShop().
| s16 STCRDSHP_shopCards[24][8] |
The cards each shop sells (STCRDSHP_stocks), up to 0.
the cards each shop sells
| CardPrice STCRDSHP_prices[] |
The cards the shops sell and their prices.
Definition at line 472 of file shop.c.
Referenced by STCRDSHP_getPrice().
| CardShopStock STCRDSHP_stocks[] |
Each shop's cards.
Definition at line 483 of file shop.c.
Referenced by STCRDSHP_getStock().