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

The shop's main task, with its menu and the money; the files it loads; and the panels' openings and moves. More...

Include dependency graph for shop.c:

Go to the source code of this file.

Functions

void STITSHOP_createShopWindows (ItemShop *shop, ItemShopWindows *win)
 Creates the shop's windows: the help, the shop's name, the money, buy and sell, and the cursor.
 
void STITSHOP_drawShop (ItemShop *shop, ItemShopWindows *win)
 Draws the shop's four frames as they open by scaling, and the background, which scrolls one pixel every other frame, wrapping at 96.
 
void STITSHOP_runShop (ItemShop *shop, ItemShopWindows *win)
 Opens the shop's panels, then up/down and cross pick buy or sell and run that dialog, reopening after it; triangle closes the panels and fades out.
 
void STITSHOP_updateShop (ItemShop *shop, ItemShopWindows *win)
 The shop's task: loads its files, then runs it; goes back to the field when killed.
 
void STITSHOP_showMoney (ItemShop *shop)
 Shows the money left (shop->showMoney), after buying or selling.
 
ItemShop * STITSHOP_createShop (void)
 Creates the item shop (task) for the shop of the mode's argument.
 
void STITSHOP_loadFiles (void)
 Loads the shop's textures and requests its strings.
 
s32 STITSHOP_filesLoading (void)
 Whether the shop's strings are still loading.
 

Detailed Description

The shop's main task, with its menu and the money; the files it loads; and the panels' openings and moves.

Definition in file shop.c.

Function Documentation

◆ STITSHOP_createShopWindows()

void STITSHOP_createShopWindows ( ItemShop *  shop,
ItemShopWindows *  win 
)

Creates the shop's windows: the help, the shop's name, the money, buy and sell, and the cursor.

shop.c

Definition at line 8 of file shop.c.

Referenced by STITSHOP_updateShop().

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

◆ STITSHOP_drawShop()

void STITSHOP_drawShop ( ItemShop *  shop,
ItemShopWindows *  win 
)

Draws the shop's four frames as they open by scaling, and the background, which scrolls one pixel every other frame, wrapping at 96.

< 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

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

Referenced by STITSHOP_updateShop().

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

◆ STITSHOP_runShop()

void STITSHOP_runShop ( ItemShop *  shop,
ItemShopWindows *  win 
)

Opens the shop's panels, then up/down and cross pick buy or sell and run that dialog, reopening after it; triangle closes the panels and fades out.

< SHPNAM

< ITSHOP: STITSHOP's

< ITSHOP: STITSHOP's

< ITSHOP: STITSHOP's

< ITSHOP: STITSHOP's

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 60 of file shop.c.

Referenced by STITSHOP_updateShop().

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

◆ STITSHOP_updateShop()

void STITSHOP_updateShop ( ItemShop *  shop,
ItemShopWindows *  win 
)

The shop's task: loads its files, then runs it; goes back to the field when killed.

Definition at line 171 of file shop.c.

Referenced by STITSHOP_createShop().

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

◆ STITSHOP_showMoney()

void STITSHOP_showMoney ( ItemShop *  shop)

Shows the money left (shop->showMoney), after buying or selling.

Definition at line 206 of file shop.c.

Referenced by STITSHOP_createShop().

Here is the caller graph for this function:

◆ STITSHOP_createShop()

ItemShop * STITSHOP_createShop ( void  )

Creates the item shop (task) for the shop of the mode's argument.

Definition at line 214 of file shop.c.

Here is the call graph for this function:

◆ STITSHOP_loadFiles()

void STITSHOP_loadFiles ( void  )

Loads the shop's textures and requests its strings.

< ITSHOP: STITSHOP's

< ITMNAM

< ITMINF

< SHPNAM

Definition at line 224 of file shop.c.

Here is the call graph for this function:

◆ STITSHOP_filesLoading()

s32 STITSHOP_filesLoading ( void  )

Whether the shop's strings are still loading.

< ITSHOP: STITSHOP's

< ITMNAM

< ITMINF

< SHPNAM

Definition at line 237 of file shop.c.