GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
shop.h File Reference

Shop state functions. More...

#include "joker.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

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.
 
int shop_get_reroll_cost (void)
 Get the current cost to reroll the items sold in the shop.
 
void shop_set_reroll_cost (int cost)
 Set the current cost to reroll the items sold in the shop to the given value.
 
Item * shop_get_description_item (void)
 Get a pointer to the Card we are currently showing the description of.
 
void shop_change_background (void)
 Change to the shop background.
 
void shop_on_init (void)
 Shop state initialization.
 
void shop_on_update (void)
 Shop state update.
 
void shop_on_exit (void)
 Shop cleanup.
 

Detailed Description

Shop state functions.

Definition in file shop.h.

Function Documentation

◆ 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()

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 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
costnew reroll price for the shop

Definition at line 206 of file shop.c.