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. | |
All the functions used specifically to interact with Jokers. This includes browsing, swapping, selling, etc.
Definition in file joker_row.h.
| 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.
Definition at line 11 of file joker_row.c.
| 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.
| selection_grid | pointer to the SelectionGrid the row is a part of. |
| selection | pointer to the coordinates of the currently selected button in selection_grid |
Definition at line 100 of file joker_row.c.
| 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.
| selection_grid | pointer to the SelectionGrid the row is a part of. |
| row_idx | index of the row this function is called on. |
| prev_selection | pointer to the coordinates of the previously selected button in selection_grid |
| new_selection | pointer to the coordinates of the newly selected button in selection_grid |
Definition at line 16 of file joker_row.c.