Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
card_packs.h
Go to the documentation of this file.
1#ifndef STCRDSHP_H
2#define STCRDSHP_H
3
4/* STCRDSHP.PRO: the card packs (mode 0x1300). Opening a pack, an item, uses
5 it up and draws six cards, one from each of its slots' lists
6 (STCRDSHP_packs), which are then added to the player's cards. */
7
8#include "engine/game.h"
9
10/* The name of this overlay's copy of a function of src/shared/ */
11#define OVL_NAME(name) STCRDSHP_##name
12/* The card grid that src/shared's hide_cards and update_hiding take */
13#define CARD_GRID CardPackGrid
14
15/* A card pack: the item and the six lists of 16 cards its slots draw from */
16typedef struct CardPack {
17 /* 0x00 */ s32 item;
18 /* 0x04 */ s32 *slots[6];
19} CardPack;
20
21/* The cards are drawn from 315 ids (1-314) */
22#define CARD_PACK_IDS 315
23
24/* getItemCategory's value for the card packs (the item type 28) */
25#define CARD_PACK_CATEGORY 0x62
26
27/* The sprite sheet of the screen, the shop's textures and the card data
28 (five files, as STCRDABM loads them) */
29#if VERSION_US || VERSION_JP
30#define FILE_CARDSHOP_SPRITES 0x62E
31#define FILE_CARDSHOP_IMAGES 0x632
32#define FILE_CARD_DATA 0x7E7
33#elif VERSION_EU
34#define FILE_CARDSHOP_SPRITES 0x63E
35#define FILE_CARDSHOP_IMAGES 0x642
36#define FILE_CARD_DATA 0x7F6
37#endif
38
39/* Draws the six cards drawn from a pack, and turns them over */
40typedef struct CardPackGrid {
42 /* 0x50 */ struct CardShop *owner; /* never read */
43 /* 0x54 */ s32 layer;
44 /* 0x58 */ s32 depth;
45 /* 0x5C */ s32 pad5C; /* never read or written (STCRDABM's grid: the page's first card) */
46 /* 0x60 */ s32 pad60; /* never read or written (STCRDABM's grid: the page being turned's) */
47 /* 0x64 */ s32 shown; /* cards drawn */
48 /* 0x68 */ s32 turned; /* slots turned so far */
49 /* 0x6C */ s32 time;
50 /* 0x70 */ s32 frame;
51 /* 0x74 */ s32 pad74; /* never read or written */
52 /* 0x78 */ s32 pad78; /* never read or written */
53 /* 0x7C */ s32 cards[6];
54 /* 0x94 */ s32 prevCards[6]; /* the cards being turned */
55 /* 0xAC */ u8 padAC[0x10]; /* never read or written */
56 /* 0xBC */ void (*setCards)(struct CardPackGrid *grid, s32 *cards);
57 /* 0xC0 */ void (*hide)(struct CardPackGrid *grid);
59
60/* The cards a shop sells */
61typedef struct CardShopStock {
62 /* 0x0 */ s32 shop;
63 /* 0x4 */ s32 count;
64 /* 0x8 */ s16 *cards; /* 0-terminated */
66
67/* A card's price */
68typedef struct CardPrice {
69 /* 0x0 */ s16 card;
70 /* 0x2 */ s16 price;
71} CardPrice;
72
73/* The shop's title for the field it is opened from */
74typedef struct CardShopTitle {
75 /* 0x0 */ s32 mode; /* GAME.fieldMode; 0 ends the list */
76 /* 0x4 */ s32 title; /* string of file 0x95 */
78
79/* The card shop's main task (STCRDSHP_createShop): buy cards, open packs
80 or edit the decks */
81typedef struct CardShop {
83 /* 0x050 */ s32 layer;
84 /* 0x054 */ s32 depth;
85 /* 0x058 */ s32 scroll; /* of the background */
86 /* 0x05C */ s32 scrollWait; /* it moves every other frame */
87 /* 0x060 */ s32 shop; /* the game mode's argument */
88 /* 0x064 */ s32 title;
89 /* 0x068 */ s32 toDeckEditor;
90 /* 0x06C */ s32 cursor;
91 /* 0x070 */ s16 items[0x194]; /* the bag's, to look for packs */
92 /* 0x398 */ PanelAnim fades[3];
93 /* 0x3C8 */ void (*showMoney)(struct CardShop *shop);
94} CardShop;
95
96/* The children of the shop */
97typedef struct CardShopWindows {
98 /* 0x00 */ TextWindow *title;
99 /* 0x04 */ TextWindow *help;
100 /* 0x08 */ TextWindow *message;
102 /* 0x10 */ TextWindow *money;
103 /* 0x14 */ TextWindow *options[3];
104 /* 0x20 */ Cursor *cursor;
105 /* 0x24 */ Task *dialog; /* buying cards or opening a pack */
106 /* 0x28 */ ScreenFade *fade;
108
109/* The screen to open a pack (STCRDSHP_createPackOpen): the bag's packs, eight
110 a page */
111typedef struct CardPackOpen {
113 /* 0x050 */ struct CardShop *shop;
114 /* 0x054 */ s32 layer;
115 /* 0x058 */ s32 depth;
116 /* 0x05C */ s32 cursor; /* the pack under the cursor, in packs[] */
117 /* 0x060 */ s32 page;
118 /* 0x064 */ s32 pages;
119 /* 0x068 */ s32 arrowFrame; /* the page arrows' palette */
120 /* 0x06C */ s32 arrowTime; /* compared with the time but never updated */
121 /* 0x070 */ s32 cards[6]; /* drawn from the pack opened */
122 /* 0x088 */ s32 card; /* the one under the cursor, in cards[] */
123 /* 0x08C */ s32 glowShown; /* the glow of the card under the cursor */
124 /* 0x090 */ s32 glowFrame;
125 /* 0x094 */ s32 glowTime;
126 /* 0x098 */ s16 packs[0x194]; /* the bag's card packs */
127 /* 0x3C0 */ s32 packCount;
128 /* 0x3C4 */ s16 items[0x194]; /* the bag's items */
129 /* 0x6EC */ s32 pad; /* never read or written */
130 /* 0x6F0 */ PanelAnim fades[4];
132
133/* The children of the screen to open a pack */
134typedef struct CardPackOpenWindows {
135 /* 0x00 */ TextWindow *packs[8]; /* the page's */
136 /* 0x20 */ Cursor *cursor;
137 /* 0x24 */ TextWindow *name; /* the pack's */
139 /* 0x2C */ TextWindow *count; /* how many the bag holds */
140 /* 0x30 */ TextWindow *help[2];
141 /* 0x38 */ TextWindow *prev; /* by the arrows */
142 /* 0x3C */ TextWindow *next;
143 /* 0x40 */ TextWindow *page;
144 /* 0x44 */ TextWindow *slash;
145 /* 0x48 */ TextWindow *pages;
146 /* 0x4C */ TextWindow *cardName; /* the card under the cursor's */
148 /* 0x54 */ TextWindow *points;
150 /* 0x5C */ TextWindow *cardCount; /* how many the player has */
151 /* 0x60 */ TextWindow *cardText;
152 /* 0x64 */ TextWindow *apLabel;
153 /* 0x68 */ TextWindow *ap;
154 /* 0x6C */ TextWindow *hpLabel;
155 /* 0x70 */ TextWindow *hp;
156 /* 0x74 */ CardPackGrid *grid;
158
159/* The screen to buy cards (STCRDSHP_createBuy): the shop's cards, six a page */
160typedef struct CardShopBuy {
162 /* 0x50 */ struct CardShop *shop;
163 /* 0x54 */ s32 layer;
164 /* 0x58 */ s32 depth;
165 /* 0x5C */ s32 column; /* the card under the cursor, on the page */
166 /* 0x60 */ s32 cursorShown;
167 /* 0x64 */ s32 cursorFrame;
168 /* 0x68 */ s32 cursorTime;
169 /* 0x6C */ s32 page;
170 /* 0x70 */ s32 pages;
171 /* 0x74 */ s32 cards[6]; /* the page's */
172 /* 0x8C */ s32 arrowsShown;
173 /* 0x90 */ s32 arrowsTime;
174 /* 0x94 */ s32 choice;
175 /* 0x98 */ s32 chosen;
176 /* 0x9C */ s32 price;
177 /* 0xA0 */ s32 shopId; /* the shop's game mode argument */
178 /* 0xA4 */ s32 count;
179 /* 0xA8 */ struct CardShopStock *stock;
180 /* 0xAC */ PanelAnim fades[3];
182
183typedef struct CardShopBuyWindows {
184 /* 0x00 */ TextWindow *name; /* the card under the cursor's */
186 /* 0x08 */ TextWindow *points;
188 /* 0x10 */ TextWindow *count; /* how many the player has */
189 /* 0x14 */ TextWindow *text; /* its effect (TEXT_CARD_EFFECTS) */
190 /* 0x18 */ TextWindow *apLabel;
191 /* 0x1C */ TextWindow *ap;
192 /* 0x20 */ TextWindow *hpLabel;
193 /* 0x24 */ TextWindow *hp;
195 /* 0x2C */ TextWindow *price;
196 /* 0x30 */ TextWindow *prev; /* by the arrows */
197 /* 0x34 */ TextWindow *next;
198 /* 0x38 */ TextWindow *message; /* the total, or why the card can't be bought */
199 /* 0x3C */ TextWindow *yes;
200 /* 0x40 */ TextWindow *no;
201 /* 0x44 */ Cursor *cursor;
202 /* 0x48 */ CardPackGrid *grid;
204
205/* The shop's helpers (STCRDSHP_funcs) */
206typedef struct CardShopFuncs {
207 /* 0x00 */ void (*loadFiles)(void);
208 /* 0x04 */ s32 (*filesLoading)(void);
209 /* 0x08 */ void (*startFade)(PanelAnim *fade, s32 fadeIn);
210 /* 0x0C */ s32 (*updateFade)(PanelAnim *fade);
211 /* 0x10 */ void (*startLerp)(MenuLerp *lerp, s32 from, s32 to, s32 frames);
212 /* 0x14 */ s32 (*updateLerp)(MenuLerp *lerp);
213 /* 0x18 */ struct CardShopStock *(*getStock)(s32 shop);
214 /* 0x1C */ s16 (*getPrice)(s32 card);
216
217/* STCRDSHP's data, in its order: the pack screen's, the buy screen's and the
218 shop's */
219extern s32 STCRDSHP_slotCards[123][16]; /* the cards each slot of a pack draws from */
221extern s32 STCRDSHP_slotCards124[86][16];
222extern CardPack STCRDSHP_packs[];
223extern s32 STCRDSHP_glowRows[]; /* the CLUT rows of the drawn card's glow */
224extern s32 STCRDSHP_cursorRows[]; /* the CLUT rows of the cursor's frames */
227extern s16 STCRDSHP_shopCards[24][8]; /* the cards each shop sells */
230
231/* pack_open.c */
241
242/* fader.c */
243void STCRDSHP_startFader(ScreenFade *task, s32 fadeIn, s32 duration);
247
248/* card_grid.c */
252void STCRDSHP_drawCards(CardPackGrid *grid, s32 previous);
257
258/* buy.c */
265
266/* scene.c */
267void STCRDSHP_updateScene(Task *task, CardShop **child);
268
269/* shop.c */
278void STCRDSHP_loadFiles(void);
280void STCRDSHP_startFade(PanelAnim *fade, s32 fadeIn);
282void STCRDSHP_startLerp(MenuLerp *lerp, s32 from, s32 to, s32 frames);
286
287#endif
void STCRDSHP_listPacks(CardPackOpen *open)
Lists the bag's card packs, and how many pages they fill.
Definition pack_open.c:281
void STCRDSHP_updateFader(ScreenFade *task)
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 num...
Definition buy.c:31
CardShopStock * STCRDSHP_getStock(s32 shop)
The stock of a shop (the first one's if it has none), counting its cards.
Definition shop.c:401
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),...
Definition buy.c:364
s32 STCRDSHP_cursorRows[]
the CLUT rows of the cursor's frames
Definition buy.c:484
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 tur...
Definition card_grid.c:32
void STCRDSHP_drawShop(CardShop *shop)
Draws the scrolling background and the panels as they open.
Definition shop.c:62
s16 STCRDSHP_getPrice(s32 card)
The price of a card.
Definition shop.c:422
void STCRDSHP_createPackOpenWindows(CardPackOpen *open, CardPackOpenWindows *win)
pack_open.c
Definition pack_open.c:6
s32 STCRDSHP_filesLoading(void)
Whether the shop's strings are still loading.
Definition shop.c:379
CardPackOpen * STCRDSHP_createPackOpen(CardShop *shop)
Creates the screen to open a pack.
Definition pack_open.c:596
s32 STCRDSHP_glowRows[]
the CLUT rows of the drawn card's glow
Definition pack_open.c:1115
s32 STCRDSHP_updateLerp(MenuLerp *lerp)
void STCRDSHP_startFader(ScreenFade *task, s32 fadeIn, s32 duration)
fader.c
CardPrice STCRDSHP_prices[]
The cards the shops sell and their prices.
Definition shop.c:472
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 p...
Definition pack_open.c:457
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,...
Definition pack_open.c:106
void STCRDSHP_showPackPage(CardPackOpen *open, CardPackOpenWindows *win, s32 show)
Shows the page's packs, the page number and the arrows' labels, or hides them.
Definition pack_open.c:38
CardShopStock STCRDSHP_stocks[]
Each shop's cards.
Definition shop.c:483
s16 STCRDSHP_shopCards[24][8]
the cards each shop sells
Definition shop.c:445
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.
Definition shop.c:45
CardPackGrid * STCRDSHP_createGrid(CardShop *owner, s32 *cards)
Creates the grid of six cards, copying the cards given.
Definition card_grid.c:208
CardShopTitle STCRDSHP_titles[]
The shop's title for each field it is opened from, up to mode 0.
Definition shop.c:434
void STCRDSHP_updatePackOpen(CardPackOpen *open, CardPackOpenWindows *win)
The update of the screen to open a pack.
Definition pack_open.c:573
void STCRDSHP_drawFader(ScreenFade *task)
s32 STCRDSHP_slotCards[123][16]
STCRDSHP's data, in its order: the pack screen's, the buy screen's and the shop's.
Definition pack_open.c:606
s32 STCRDSHP_slotCards123[]
Definition pack_open.c:862
void STCRDSHP_showTitle(CardShop *shop, CardShopWindows *win, s32 show)
Shows or hides the shop's title and the money.
Definition shop.c:31
CardPack STCRDSHP_packs[]
Definition pack_open.c:1041
void STCRDSHP_loadIcons(CardPackGrid *grid)
card_grid.c
Definition card_grid.c:8
void STCRDSHP_drawBuy(CardShopBuy *buy)
Draws the screen: the card under the cursor's frames, the cursor, the arrows and the title.
Definition buy.c:92
s32 STCRDSHP_updateFade(PanelAnim *fade)
CardShopFuncs STCRDSHP_funcs
The shops' helpers.
Definition shop.c:440
void STCRDSHP_updateHiding(CardPackGrid *grid)
CardShopBuy * STCRDSHP_createBuy(CardShop *shop, s32 shopId)
Creates the screen to buy the cards of a shop.
Definition buy.c:473
void STCRDSHP_updateScene(Task *task, CardShop **child)
scene.c
CardShop * STCRDSHP_createShop(void)
Creates the card shop (task) for the shop of the mode's argument, titled for the field it is opened f...
Definition shop.c:333
void STCRDSHP_showMoney(CardShop *shop)
Shows the money left (after buying)
Definition shop.c:284
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 m...
Definition card_grid.c:49
void STCRDSHP_drawTurningSlots(CardPackGrid *grid)
Draws the cover over each slot turned so far, in the palette of the turn's current frame.
Definition card_grid.c:127
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 th...
Definition pack_open.c:162
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.
Definition shop.c:293
ScreenFade * STCRDSHP_createFader(void)
void STCRDSHP_runShop(CardShop *shop, CardShopWindows *win)
Opens the panels, moves the cursor and starts what was chosen.
Definition shop.c:199
void STCRDSHP_startFade(PanelAnim *fade, s32 fadeIn)
void STCRDSHP_hideCards(CardPackGrid *grid)
void STCRDSHP_updateBuy(CardShopBuy *buy, CardShopBuyWindows *win)
The buy screen's update: takes the shop's stock, six cards a page.
Definition buy.c:434
void STCRDSHP_createBuyWindows(CardShopBuy *buy, CardShopBuyWindows *win)
buy.c
Definition buy.c:6
void STCRDSHP_loadFiles(void)
Loads the shop's textures and requests its strings.
Definition shop.c:365
s32 STCRDSHP_slotCards124[86][16]
Definition pack_open.c:867
void STCRDSHP_updateGrid(CardPackGrid *grid)
The grid's task: covers its slots one by one (every 2 frames) above the old cards,...
Definition card_grid.c:149
void STCRDSHP_createShopWindows(CardShop *shop, CardShopWindows *win)
shop.c
Definition shop.c:7
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.
Definition pack_open.c:84
void STCRDSHP_startLerp(MenuLerp *lerp, s32 from, s32 to, s32 frames)
signed int s32
Definition common.h:11
signed short s16
Definition common.h:9
unsigned char u8
Definition common.h:8
#define TASK_HEADER(Type)
Definition task.h:39
long open(char *name, unsigned long mode)
The kernel's file functions (libapi.h); the sim: device is the PC's.
Draws the six cards drawn from a pack, and turns them over.
Definition card_packs.h:40
s32 cards[6]
Definition card_packs.h:53
s32 pad60
never read or written (STCRDABM's grid: the page being turned's)
Definition card_packs.h:46
s32 pad5C
never read or written (STCRDABM's grid: the page's first card)
Definition card_packs.h:45
u8 padAC[0x10]
never read or written
Definition card_packs.h:55
s32 pad78
never read or written
Definition card_packs.h:52
s32 turned
slots turned so far
Definition card_packs.h:48
s32 pad74
never read or written
Definition card_packs.h:51
void(* setCards)(struct CardPackGrid *grid, s32 *cards)
Definition card_packs.h:56
s32 prevCards[6]
the cards being turned
Definition card_packs.h:54
struct CardShop * owner
never read
Definition card_packs.h:42
s32 shown
cards drawn
Definition card_packs.h:47
void(* hide)(struct CardPackGrid *grid)
Definition card_packs.h:57
The children of the screen to open a pack.
Definition card_packs.h:134
TextWindow * count
how many the bag holds
Definition card_packs.h:139
TextWindow * page
Definition card_packs.h:143
TextWindow * pointsLabel
Definition card_packs.h:147
TextWindow * cardCount
how many the player has
Definition card_packs.h:150
TextWindow * packs[8]
the page's
Definition card_packs.h:135
TextWindow * help[2]
Definition card_packs.h:140
TextWindow * cardName
the card under the cursor's
Definition card_packs.h:146
TextWindow * hpLabel
Definition card_packs.h:154
TextWindow * prev
by the arrows
Definition card_packs.h:141
TextWindow * countLabel
Definition card_packs.h:138
TextWindow * ap
Definition card_packs.h:153
TextWindow * name
the pack's
Definition card_packs.h:137
TextWindow * pages
Definition card_packs.h:145
TextWindow * cardText
Definition card_packs.h:151
TextWindow * slash
Definition card_packs.h:144
TextWindow * hp
Definition card_packs.h:155
TextWindow * apLabel
Definition card_packs.h:152
TextWindow * cardCountLabel
Definition card_packs.h:149
CardPackGrid * grid
Definition card_packs.h:156
TextWindow * points
Definition card_packs.h:148
TextWindow * next
Definition card_packs.h:142
The screen to open a pack (STCRDSHP_createPackOpen): the bag's packs, eight a page.
Definition card_packs.h:111
s32 cards[6]
drawn from the pack opened
Definition card_packs.h:121
s32 card
the one under the cursor, in cards[]
Definition card_packs.h:122
s32 arrowTime
compared with the time but never updated
Definition card_packs.h:120
struct CardShop * shop
Definition card_packs.h:113
s32 arrowFrame
the page arrows' palette
Definition card_packs.h:119
s32 cursor
the pack under the cursor, in packs[]
Definition card_packs.h:116
PanelAnim fades[4]
Definition card_packs.h:130
s32 glowShown
the glow of the card under the cursor
Definition card_packs.h:123
s16 packs[0x194]
the bag's card packs
Definition card_packs.h:126
s32 pad
never read or written
Definition card_packs.h:129
s16 items[0x194]
the bag's items
Definition card_packs.h:128
A card pack: the item and the six lists of 16 cards its slots draw from.
Definition card_packs.h:16
s32 * slots[6]
Definition card_packs.h:18
A card's price.
Definition card_packs.h:68
TextWindow * yes
Definition card_packs.h:199
TextWindow * prev
by the arrows
Definition card_packs.h:196
TextWindow * priceLabel
Definition card_packs.h:194
CardPackGrid * grid
Definition card_packs.h:202
TextWindow * ap
Definition card_packs.h:191
TextWindow * name
the card under the cursor's
Definition card_packs.h:184
TextWindow * price
Definition card_packs.h:195
TextWindow * no
Definition card_packs.h:200
TextWindow * points
Definition card_packs.h:186
TextWindow * text
its effect (TEXT_CARD_EFFECTS)
Definition card_packs.h:189
TextWindow * countLabel
Definition card_packs.h:187
TextWindow * pointsLabel
Definition card_packs.h:185
TextWindow * next
Definition card_packs.h:197
TextWindow * message
the total, or why the card can't be bought
Definition card_packs.h:198
TextWindow * apLabel
Definition card_packs.h:190
TextWindow * hp
Definition card_packs.h:193
TextWindow * count
how many the player has
Definition card_packs.h:188
TextWindow * hpLabel
Definition card_packs.h:192
The screen to buy cards (STCRDSHP_createBuy): the shop's cards, six a page.
Definition card_packs.h:160
struct CardShopStock * stock
Definition card_packs.h:179
s32 cards[6]
the page's
Definition card_packs.h:171
struct CardShop * shop
Definition card_packs.h:162
s32 column
the card under the cursor, on the page
Definition card_packs.h:165
PanelAnim fades[3]
Definition card_packs.h:180
s32 shopId
the shop's game mode argument
Definition card_packs.h:177
The shop's helpers (STCRDSHP_funcs)
Definition card_packs.h:206
s16(* getPrice)(s32 card)
Definition card_packs.h:214
s32(* updateFade)(PanelAnim *fade)
Definition card_packs.h:210
void(* startLerp)(MenuLerp *lerp, s32 from, s32 to, s32 frames)
Definition card_packs.h:211
s32(* filesLoading)(void)
Definition card_packs.h:208
s32(* updateLerp)(MenuLerp *lerp)
Definition card_packs.h:212
void(* loadFiles)(void)
Definition card_packs.h:207
void(* startFade)(PanelAnim *fade, s32 fadeIn)
Definition card_packs.h:209
The cards a shop sells.
Definition card_packs.h:61
s16 * cards
0-terminated
Definition card_packs.h:64
The shop's title for the field it is opened from.
Definition card_packs.h:74
s32 title
string of file 0x95
Definition card_packs.h:76
s32 mode
GAME.fieldMode; 0 ends the list.
Definition card_packs.h:75
The children of the shop.
Definition card_packs.h:97
Task * dialog
buying cards or opening a pack
Definition card_packs.h:105
TextWindow * moneyLabel
Definition card_packs.h:101
TextWindow * money
Definition card_packs.h:102
TextWindow * help
Definition card_packs.h:99
ScreenFade * fade
Definition card_packs.h:106
Cursor * cursor
Definition card_packs.h:104
TextWindow * title
Definition card_packs.h:98
TextWindow * options[3]
Definition card_packs.h:103
TextWindow * message
Definition card_packs.h:100
The card shop's main task (STCRDSHP_createShop): buy cards, open packs or edit the decks.
Definition card_packs.h:81
void(* showMoney)(struct CardShop *shop)
Definition card_packs.h:93
s32 depth
Definition card_packs.h:84
s16 items[0x194]
the bag's, to look for packs
Definition card_packs.h:91
s32 cursor
Definition card_packs.h:90
s32 layer
Definition card_packs.h:83
s32 toDeckEditor
Definition card_packs.h:89
s32 scrollWait
it moves every other frame
Definition card_packs.h:86
s32 scroll
of the background
Definition card_packs.h:85
s32 title
Definition card_packs.h:88
PanelAnim fades[3]
Definition card_packs.h:92
s32 shop
the game mode's argument
Definition card_packs.h:87
A menu cursor: a text window showing one of the CURSOR_FRAMES glyphs.
Definition text.h:19
Moves a value towards a target in fixed point, as the menu overlays' startLerp and updateLerp do.
Definition menu.h:27
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
Definition menu.h:18
Fades the whole screen to black and back with a subtractive rectangle.
Definition gfx.h:361
Any task, seen through its header.
Definition task.h:62
A text window (createTextWindow): up to six text buffers (0 is shown, 1-5 are "work" buffers that con...
Definition text.h:131