mirror of
https://github.com/cellos51/balatro-gba.git
synced 2026-09-09 01:16:05 -05:00
* refactor: remove game prefix from extracted functions * fix: align state info table callbacks
73 lines
1.3 KiB
C
73 lines
1.3 KiB
C
/**
|
|
* @file round.h
|
|
* @brief API relative to the Rounds we play
|
|
*/
|
|
|
|
#ifndef GAME_ROUND_H
|
|
#define GAME_ROUND_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
/**
|
|
* @brief 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.
|
|
*/
|
|
void toggle_flaming_score(void);
|
|
|
|
/**
|
|
* @brief Get the index of the last played card
|
|
*
|
|
* @return int
|
|
*/
|
|
int get_played_top(void);
|
|
|
|
/**
|
|
* @brief Get the number of cards played
|
|
*
|
|
* @return int
|
|
*/
|
|
int get_played_size(void);
|
|
|
|
/**
|
|
* @brief Get the index of the last discarded card
|
|
*
|
|
* @return int
|
|
*/
|
|
int get_discard_top(void);
|
|
|
|
/**
|
|
* @brief Get the index of the card that is currently being scored
|
|
*
|
|
* @return int
|
|
*/
|
|
int get_scored_card_index(void);
|
|
|
|
/**
|
|
* @brief Set whether the current card should get triggered again
|
|
*
|
|
* @param new_retrigger true if the card should trigger again, false if not
|
|
*/
|
|
void set_retrigger(bool new_retrigger);
|
|
|
|
/**
|
|
* @brief Change to the round card selection background
|
|
*/
|
|
void round_change_background_selecting(void);
|
|
|
|
/**
|
|
* @brief Change to the round card playing background
|
|
*/
|
|
void round_change_background_playing(void);
|
|
|
|
/**
|
|
* @brief Round state initialization
|
|
*/
|
|
void round_on_init(void);
|
|
|
|
/**
|
|
* @brief Round state update
|
|
*/
|
|
void round_on_update(void);
|
|
|
|
#endif // GAME_ROUND_H
|