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

API relative to the Rounds we play. More...

#include <stdbool.h>

Go to the source code of this file.

Functions

void toggle_flaming_score (void)
 Checks whether the score that would result from the current Chips and Mult exceeds the current Blind's score requirement, and applies the flaming effect if needed.
 
int get_played_top (void)
 Get the index of the last played card.
 
int get_played_size (void)
 Get the number of cards played.
 
int get_discard_top (void)
 Get the index of the last discarded card.
 
int get_scored_card_index (void)
 Get the index of the card that is currently being scored.
 
void set_retrigger (bool new_retrigger)
 Set whether the current card should get triggered again.
 
void game_round_change_background_selecting (void)
 Change to the round card selection background.
 
void game_round_change_background_playing (void)
 Change to the round card playing background.
 
void game_round_on_init (void)
 Round state initialization.
 
void game_round_on_update (void)
 Round state update.
 

Detailed Description

API relative to the Rounds we play.

Definition in file round.h.

Function Documentation

◆ game_round_change_background_playing()

void game_round_change_background_playing ( void  )

Change to the round card playing background.

Definition at line 400 of file round.c.

◆ game_round_change_background_selecting()

void game_round_change_background_selecting ( void  )

Change to the round card selection background.

Definition at line 338 of file round.c.

◆ game_round_on_init()

void game_round_on_init ( void  )

Round state initialization.

Definition at line 1975 of file round.c.

◆ game_round_on_update()

void game_round_on_update ( void  )

Round state update.

Definition at line 2046 of file round.c.

◆ get_discard_top()

int get_discard_top ( void  )

Get the index of the last discarded card.

Returns
int

Definition at line 265 of file round.c.

◆ get_played_size()

int get_played_size ( void  )

Get the number of cards played.

Returns
int

Definition at line 248 of file round.c.

◆ get_played_top()

int get_played_top ( void  )

Get the index of the last played card.

Returns
int

Definition at line 243 of file round.c.

◆ get_scored_card_index()

int get_scored_card_index ( void  )

Get the index of the card that is currently being scored.

Returns
int

Definition at line 296 of file round.c.

◆ set_retrigger()

void set_retrigger ( bool  new_retrigger)

Set whether the current card should get triggered again.

Parameters
new_retriggertrue if the card should trigger again, false if not

Definition at line 301 of file round.c.

◆ toggle_flaming_score()

void toggle_flaming_score ( void  )

Checks whether the score that would result from the current Chips and Mult exceeds the current Blind's score requirement, and applies the flaming effect if needed.

Definition at line 1425 of file round.c.