GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
shop.h
Go to the documentation of this file.
1
6#ifndef GAME_SHOP_H
7#define GAME_SHOP_H
8
9#include "joker.h"
10
11#include <stdbool.h>
12
17void shop_reset(void);
18
24int shop_get_reroll_cost(void);
25
31void shop_set_reroll_cost(int cost);
32
39
43void shop_change_background(void);
44
48void shop_on_init(void);
49
53void shop_on_update(void);
54
58void shop_on_exit(void);
59
60#endif // GAME_SHOP_H
Functions relative to the handling of Jokers.
void shop_on_exit(void)
Shop cleanup.
Definition shop.c:933
void shop_on_update(void)
Shop state update.
Definition shop.c:923
int shop_get_reroll_cost(void)
Get the current cost to reroll the items sold in the shop.
Definition shop.c:201
void shop_on_init(void)
Shop state initialization.
Definition shop.c:242
void shop_change_background(void)
Change to the shop background.
Definition shop.c:218
Item * shop_get_description_item(void)
Get a pointer to the Card we are currently showing the description of.
Definition shop.c:196
void shop_set_reroll_cost(int cost)
Set the current cost to reroll the items sold in the shop to the given value.
Definition shop.c:206
void shop_reset(void)
Initialize the shop for a run. Resets all the shop data for the run, needs to be called once per run.
Definition shop.c:211
A generic interface for all items that can appear in the shop or be in the inventory....
Definition item.h:83