Shop state functions.
More...
#include "joker.h"
#include <stdbool.h>
Go to the source code of this file.
Shop state functions.
Definition in file shop.h.
◆ shop_change_background()
| void shop_change_background |
( |
void |
| ) |
|
Change to the shop background.
Definition at line 218 of file shop.c.
◆ shop_get_description_item()
| Item * shop_get_description_item |
( |
void |
| ) |
|
Get a pointer to the Card we are currently showing the description of.
- Returns
- Item pointer, NULL if no description is currently being shown
Definition at line 196 of file shop.c.
◆ shop_get_reroll_cost()
| int shop_get_reroll_cost |
( |
void |
| ) |
|
Get the current cost to reroll the items sold in the shop.
- Returns
- int
Definition at line 201 of file shop.c.
◆ shop_on_exit()
| void shop_on_exit |
( |
void |
| ) |
|
Shop cleanup.
Definition at line 933 of file shop.c.
◆ shop_on_init()
| void shop_on_init |
( |
void |
| ) |
|
Shop state initialization.
Definition at line 242 of file shop.c.
◆ shop_on_update()
| void shop_on_update |
( |
void |
| ) |
|
Shop state update.
Definition at line 923 of file shop.c.
◆ shop_reset()
Initialize the shop for a run. Resets all the shop data for the run, needs to be called once per run.
Definition at line 211 of file shop.c.
◆ shop_set_reroll_cost()
| void shop_set_reroll_cost |
( |
int |
cost | ) |
|
Set the current cost to reroll the items sold in the shop to the given value.
- Parameters
-
| cost | new reroll price for the shop |
Definition at line 206 of file shop.c.