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

All the functions used specifically to interact with Jokers. This includes browsing, swapping, selling, etc. More...

#include "selection_grid.h"

Go to the source code of this file.

Functions

int jokers_sel_row_get_size (void)
 Returns the size of the Jokers' row at the top of the game screen. Is equal to the number of Jokers owned.
 
bool jokers_sel_row_on_selection_changed (SelectionGrid *selection_grid, int row_idx, const Selection *prev_selection, const Selection *new_selection)
 Handle directional inputs on the Jokers' row at the top of the game screen.
 
void jokers_sel_row_on_key_transit (SelectionGrid *selection_grid, Selection *selection)
 Handle button inputs on the Jokers' row at the top of the game screen.
 

Detailed Description

All the functions used specifically to interact with Jokers. This includes browsing, swapping, selling, etc.

Definition in file joker_row.h.

Function Documentation

◆ jokers_sel_row_get_size()

int jokers_sel_row_get_size ( void  )

Returns the size of the Jokers' row at the top of the game screen. Is equal to the number of Jokers owned.

Returns
int

Definition at line 11 of file joker_row.c.

◆ jokers_sel_row_on_key_transit()

void jokers_sel_row_on_key_transit ( SelectionGrid selection_grid,
Selection *  selection 
)

Handle button inputs on the Jokers' row at the top of the game screen.

Parameters
selection_gridpointer to the SelectionGrid the row is a part of.
selectionpointer to the coordinates of the currently selected button in selection_grid

Definition at line 100 of file joker_row.c.

◆ jokers_sel_row_on_selection_changed()

bool jokers_sel_row_on_selection_changed ( SelectionGrid selection_grid,
int  row_idx,
const Selection *  prev_selection,
const Selection *  new_selection 
)

Handle directional inputs on the Jokers' row at the top of the game screen.

Parameters
selection_gridpointer to the SelectionGrid the row is a part of.
row_idxindex of the row this function is called on.
prev_selectionpointer to the coordinates of the previously selected button in selection_grid
new_selectionpointer to the coordinates of the newly selected button in selection_grid
Returns
bool

Definition at line 16 of file joker_row.c.