diff --git a/affine__background_8c_source.html b/affine__background_8c_source.html
index 417f03a5..7d069604 100644
--- a/affine__background_8c_source.html
+++ b/affine__background_8c_source.html
@@ -151,10 +151,10 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
12static IWRAM_CODE
void s_affine_background_prep_bgaff_arr();
- 14static BG_AFFINE _bgaff_arr[SCREEN_HEIGHT + 1];
- 15static AFF_SRC_EX _asx = {0};
-
- 17static uint _timer = 0;
+ 14static BG_AFFINE s_bgaff_arr[SCREEN_HEIGHT + 1];
+ 15static AFF_SRC_EX s_asx = {0};
+
+ 17static uint s_timer = 0;
@@ -176,7 +176,7 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
-
+
@@ -189,21 +189,21 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
-
-
-
-
+
+
+
+
- 52 _asx.sx = ((lu_sin(_timer * 100)) >> 8) + 256;
+ 52 s_asx.sx = ((lu_sin(s_timer * 100)) >> 8) + 256;
- 54 _asx.sy = ((lu_sin(_timer * 100 + 0x4000)) >> 8) + 256;
-
+ 54 s_asx.sy = ((lu_sin(s_timer * 100 + 0x4000)) >> 8) + 256;
+
- 57 bg_rotscale_ex(&_bgaff_arr[0], &_asx);
-
+ 57 bg_rotscale_ex(&s_bgaff_arr[0], &s_asx);
+
-
+
@@ -213,7 +213,7 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
-
+
72 clr_rgbscale(&pal_bg_mem[
AFFINE_BG_PB] + i, affine_background_gfxPal + i, 1, color);
@@ -231,14 +231,14 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
-
83 if (_background == new_bg)
+
83 if (s_background == new_bg)
-
+
88 s_background = new_bg;
-
+
93 REG_BG2CNT &= ~BG_AFF_32x32;
@@ -278,28 +278,28 @@ $(document).ready(function(){initNavTree('affine__background_8c_source.html','')
127 for (u16 vcount = 0; vcount < SCREEN_HEIGHT; vcount++)
-
129 const s32 timer_s32 = _timer << 8;
+
129 const s32 timer_s32 = s_timer << 8;
130 const s32 vcount_s32 = vcount << 8;
131 const s16 vcount_s16 = vcount;
132 const s32 vcount_sine = lu_sin(vcount_s32 + timer_s32 / ANIMATION_SPEED_DIVISOR);
-
134 _asx.scr_x = (SCREEN_WIDTH / 2);
+
134 s_asx.scr_x = (SCREEN_WIDTH / 2);
-
136 _asx.scr_y = vcount_s16 - (SCREEN_HEIGHT / 2);
-
137 _asx.tex_x = (1000 * 1000) + (vcount_sine);
-
138 _asx.tex_y = (1000 * 1000);
-
-
-
141 _asx.alpha = vcount_sine + (timer_s32 / ANIMATION_SPEED_DIVISOR);
+
136 s_asx.scr_y = vcount_s16 - (SCREEN_HEIGHT / 2);
+
137 s_asx.tex_x = (1000 * 1000) + (vcount_sine);
+
138 s_asx.tex_y = (1000 * 1000);
+
+
+
141 s_asx.alpha = vcount_sine + (timer_s32 / ANIMATION_SPEED_DIVISOR);
-
143 bg_rotscale_ex(&_bgaff_arr[vcount], &_asx);
+
143 bg_rotscale_ex(&s_bgaff_arr[vcount], &s_asx);
-
150 _bgaff_arr[SCREEN_HEIGHT] = _bgaff_arr[0];
+
150 s_bgaff_arr[SCREEN_HEIGHT] = s_bgaff_arr[0];
Utilities for affine background on GBA.
void affine_background_set_color(COLOR color)
Update the affine background color.
diff --git a/blind_8c_source.html b/blind_8c_source.html
index 70cf7ec0..70523141 100644
--- a/blind_8c_source.html
+++ b/blind_8c_source.html
@@ -176,16 +176,16 @@ $(document).ready(function(){initNavTree('blind_8c_source.html',''); initResizab
-
39static List unbeaten_boss_blinds;
-
40static List unbeaten_showdown_blinds;
+
39static List s_unbeaten_boss_blinds;
+
40static List s_unbeaten_showdown_blinds;
-
45static const u32 ante_lut[] = {100, 300, 800, 2000, 5000, 11000, 20000, 35000, 50000};
+
45static const u32 ANTE_LUT[] = {100, 300, 800, 2000, 5000, 11000, 20000, 35000, 50000};
-
48static Blind _blind_type_map[BLIND_TYPE_MAX] = {
+
48static Blind s_blind_type_map[BLIND_TYPE_MAX] = {
49 {BLIND_TYPE_SMALL, FIX_ONE, 3},
50 {BLIND_TYPE_BIG, (FIX_ONE * 3) / 2, 4},
51 {BLIND_TYPE_HOOK, FIX_ONE * 2, 5},
@@ -234,12 +234,12 @@ $(document).ready(function(){initNavTree('blind_8c_source.html',''); initResizab
94 if (ante < 0 || ante > MAX_ANTE)
-
97 return fx2int(_blind_type_map[type].score_req_multipler * ante_lut[ante]);
+
97 return fx2int(s_blind_type_map[type].score_req_multipler * ANTE_LUT[ante]);
100int blind_get_reward(
enum BlindType type)
-
102 return _blind_type_map[type].reward;
+
102 return s_blind_type_map[type].reward;
@@ -251,11 +251,11 @@ $(document).ready(function(){initNavTree('blind_8c_source.html',''); initResizab
-
-
+
114 s_unbeaten_showdown_blinds =
list_init();
+
-
118 List* p_unbeaten_blinds = showdown ? &unbeaten_showdown_blinds : &unbeaten_boss_blinds;
+
118 List* p_unbeaten_blinds = showdown ? &s_unbeaten_showdown_blinds : &s_unbeaten_boss_blinds;
@@ -265,13 +265,13 @@ $(document).ready(function(){initNavTree('blind_8c_source.html',''); initResizab
126 for (
int i = lower_blind; i <= upper_blind; i++)
-
+
132enum BlindType roll_blind_type(
bool showdown)
-
134 List* p_unbeaten_blinds = showdown ? &unbeaten_showdown_blinds : &unbeaten_boss_blinds;
+
134 List* p_unbeaten_blinds = showdown ? &s_unbeaten_showdown_blinds : &s_unbeaten_boss_blinds;
@@ -290,7 +290,7 @@ $(document).ready(function(){initNavTree('blind_8c_source.html',''); initResizab
150void set_blind_beaten(
enum BlindType type)
152 bool showdown = (type >= BLIND_TYPE_SHOWDOWN);
-
153 List* p_unbeaten_blinds = showdown ? &unbeaten_showdown_blinds : &unbeaten_boss_blinds;
+
153 List* p_unbeaten_blinds = showdown ? &s_unbeaten_showdown_blinds : &s_unbeaten_boss_blinds;
diff --git a/blind__select_8c_source.html b/blind__select_8c_source.html
index 14435ba1..1efdf3d7 100644
--- a/blind__select_8c_source.html
+++ b/blind__select_8c_source.html
@@ -165,7 +165,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
25static const u32 TM_DISP_BLIND_PANEL_FINISH = 7;
26static const u32 TM_DISP_BLIND_PANEL_START = 1;
-
+
30static void game_blind_select_start_anim_seq(
void);
31static void game_blind_select_handle_input(
void);
@@ -237,11 +237,11 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
-
100 if (timer == TM_END_ANIM_SEQ)
+
100 if (s_timer == TM_END_ANIM_SEQ)
102 game_blind_select_print_blinds_reqs_and_rewards();
-
+
@@ -312,7 +312,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
173static void game_blind_select_handle_input()
-
175 if (timer == TM_BLIND_SELECT_START && g_game_vars.current_blind == BLIND_TYPE_BOSS)
+
175 if (s_timer == TM_BLIND_SELECT_START && g_game_vars.current_blind == BLIND_TYPE_BOSS)
177 selection_y = BLIND_ROW;
@@ -337,7 +337,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
-
+
@@ -370,7 +370,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
230 game_blind_select_print_blinds_reqs_and_rewards();
231 highlight_select_button();
-
+
@@ -381,7 +381,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
242static void game_blind_select_selected_anim_seq()
-
+
246 Rect blinds_rect = POP_MENU_ANIM_RECT;
247 blinds_rect.top -= 1;
@@ -396,28 +396,28 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
-
259 else if (timer >= MENU_POP_OUT_ANIM_FRAMES)
+
259 else if (s_timer >= MENU_POP_OUT_ANIM_FRAMES)
261 for (
int i = 0; i < NUM_BLINDS_PER_ANTE; i++)
263 obj_hide(blind_select_tokens[i]->obj);
-
+
271static void game_blind_select_display_blind_panel()
-
273 if (timer >= TM_DISP_BLIND_PANEL_FINISH)
+
273 if (s_timer >= TM_DISP_BLIND_PANEL_FINISH)
-
280 if (timer == TM_DISP_BLIND_PANEL_START)
+
280 if (s_timer == TM_DISP_BLIND_PANEL_START)
@@ -435,9 +435,9 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
-
298 for (
int y = 0; y < timer; y++)
+
298 for (
int y = 0; y < s_timer; y++)
-
300 int y_from = 26 + y - timer;
+
300 int y_from = 26 + y - s_timer;
303 Rect from = {0, y_from, 8, y_from};
@@ -592,7 +592,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
-
+
@@ -615,7 +615,7 @@ $(document).ready(function(){initNavTree('blind__select_8c_source.html',''); ini
diff --git a/card_8c_source.html b/card_8c_source.html
index c2b67303..667f7398 100644
--- a/card_8c_source.html
+++ b/card_8c_source.html
@@ -159,17 +159,17 @@ $(document).ready(function(){initNavTree('card_8c_source.html',''); initResizabl
-
22const static u16 _card_sprite_lut[NUM_SUITS][NUM_RANKS] = {
+
22const static u16 CARD_SPRITE_LUT[NUM_SUITS][NUM_RANKS] = {
23 {0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192},
24 {208, 224, 240, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400},
25 {416, 432, 448, 464, 480, 496, 512, 528, 544, 560, 576, 592, 608},
26 {624, 640, 656, 672, 688, 704, 720, 736, 752, 768, 784, 800, 816}
-
29const static u16 _deck_sprite_lut[DECK_TYPE_MAX] = {0, 16, 32, 48, 64, 80};
+
29const static u16 DECK_SPRITE_LUT[DECK_TYPE_MAX] = {0, 16, 32, 48, 64, 80};
-
31bool high_contrast = DEFAULT_HIGH_CONTRAST;
-
32bool more_readable = DEFAULT_MORE_READABLE;
+
31static bool s_high_contrast = DEFAULT_HIGH_CONTRAST;
+
32static bool s_more_readable = DEFAULT_MORE_READABLE;
@@ -178,8 +178,8 @@ $(document).ready(function(){initNavTree('card_8c_source.html',''); initResizabl
39void set_cards_high_contrast(
bool enable)
-
41 high_contrast = enable;
-
+
41 s_high_contrast = enable;
+
44 GRIT_CPY(&pal_obj_mem[CARD_PB * PAL_ROW_LEN], high_contrast_deck_pal_gfxPal);
@@ -191,17 +191,17 @@ $(document).ready(function(){initNavTree('card_8c_source.html',''); initResizabl
52void set_cards_more_readable(
bool enable)
-
54 more_readable = enable;
+
54 s_more_readable = enable;
57bool get_cards_high_contrast(
void)
-
+
59 return s_high_contrast;
62bool get_cards_more_readable(
void)
-
+
64 return s_more_readable;
@@ -264,10 +264,10 @@ $(document).ready(function(){initNavTree('card_8c_source.html',''); initResizabl
124void card_object_set_sprite(
CardObject* card_object,
int layer)
126 int tile_index = CARD_TID + (layer * CARD_SPRITE_OFFSET);
-
127 const unsigned int* card_tiles = more_readable ? deck_big_gfxTiles : deck_gfxTiles;
+
127 const unsigned int* card_tiles = s_more_readable ? deck_big_gfxTiles : deck_gfxTiles;
-
130 &card_tiles[_card_sprite_lut[card_object->card->suit][card_object->card->rank] *
TILE_SIZE],
+
130 &card_tiles[CARD_SPRITE_LUT[card_object->card->suit][card_object->card->rank] *
TILE_SIZE],
@@ -285,7 +285,7 @@ $(document).ready(function(){initNavTree('card_8c_source.html',''); initResizabl
145 int tile_index = CARD_TID + (layer * CARD_SPRITE_OFFSET);
-
148 &decks_face_down_gfxTiles[_deck_sprite_lut[deck] *
TILE_SIZE],
+
148 &decks_face_down_gfxTiles[DECK_SPRITE_LUT[deck] *
TILE_SIZE],
diff --git a/common__ui_8c_source.html b/common__ui_8c_source.html
index adbd3afb..9d4e1c6f 100644
--- a/common__ui_8c_source.html
+++ b/common__ui_8c_source.html
@@ -152,7 +152,7 @@ $(document).ready(function(){initNavTree('common__ui_8c_source.html',''); initRe
13typedef void (*BackgroundRenderCallback)(void);
-
+
18static const BackgroundRenderCallback bgCallbacks[] = {
@@ -169,7 +169,7 @@ $(document).ready(function(){initNavTree('common__ui_8c_source.html',''); initRe
-
+
@@ -177,13 +177,13 @@ $(document).ready(function(){initNavTree('common__ui_8c_source.html',''); initRe
-
+
39 s_background = BG_NONE;
-
41 if (
id != background && bgCallbacks[
id] != NULL)
+
41 if (
id != s_background && bgCallbacks[
id] != NULL)
-
+
diff --git a/deck__types_8c.html b/deck__types_8c.html
index c52bd15b..ac73a8b3 100644
--- a/deck__types_8c.html
+++ b/deck__types_8c.html
@@ -189,9 +189,9 @@ Functions
|
-| static const char | deck_names [DECK_TYPE_MAX][DECK_NAME_LENGTH] |
-| | List of DeckType names, all formatted to be centered in a string of 13 characters.
|
-| |
+| static const char | DECK_NAMES [DECK_TYPE_MAX][DECK_NAME_LENGTH] |
+| | List of DeckType names, all formatted to be centered in a string of 13 characters.
|
+| |
| static const PrintDescCallback | deck_description_functions [DECK_TYPE_MAX] |
| |
@@ -644,8 +644,8 @@ Variables
-
-◆ deck_names
+
+◆ DECK_NAMES
@@ -654,7 +654,7 @@ Variables
- | const char deck_names[DECK_TYPE_MAX][DECK_NAME_LENGTH] |
+ const char DECK_NAMES[DECK_TYPE_MAX][DECK_NAME_LENGTH] |
|
diff --git a/deck__types_8c.js b/deck__types_8c.js
index f90ea14d..da910415 100644
--- a/deck__types_8c.js
+++ b/deck__types_8c.js
@@ -9,5 +9,5 @@ var deck__types_8c =
[ "print_desc_red_deck", "deck__types_8c.html#ae06a285687193be23c00a00b209eb521", null ],
[ "print_desc_yellow_deck", "deck__types_8c.html#a0428dc33e219e8dd950bf541b57a4ef7", null ],
[ "print_empty_desc_line", "deck__types_8c.html#a72695ce33b02b8163efcd58a1d3190c2", null ],
- [ "deck_names", "deck__types_8c.html#aa69c0508a53c09b17c5283a1e5be751a", null ]
+ [ "DECK_NAMES", "deck__types_8c.html#aca3bc778faeef112f513ae0a84c5e378", null ]
];
\ No newline at end of file
diff --git a/deck__types_8c_source.html b/deck__types_8c_source.html
index 37330e4d..36ceebac 100644
--- a/deck__types_8c_source.html
+++ b/deck__types_8c_source.html
@@ -148,7 +148,7 @@ $(document).ready(function(){initNavTree('deck__types_8c_source.html',''); initR
12#define TTE_COLOR_TEXT_FORMAT "#{cx:0x%X000}%s"
-
17static const char deck_names[DECK_TYPE_MAX][DECK_NAME_LENGTH] = {
+
17static const char DECK_NAMES[DECK_TYPE_MAX][DECK_NAME_LENGTH] = {
@@ -178,7 +178,7 @@ $(document).ready(function(){initNavTree('deck__types_8c_source.html',''); initR
-
45 tte_printf(
"#{P:%d,%d; cx:0x%X000}%s", pos.x, pos.y, TTE_WHITE_PB,
deck_names[deck]);
+
45 tte_printf(
"#{P:%d,%d; cx:0x%X000}%s", pos.x, pos.y, TTE_WHITE_PB,
DECK_NAMES[deck]);
@@ -384,8 +384,8 @@ $(document).ready(function(){initNavTree('deck__types_8c_source.html',''); initR
static void print_empty_desc_line(int pos_x, int pos_y)
Print an empty string of 13 characters long at given coordinates. Reduces boilerplate in deck descrip...
static void print_desc_painted_deck(BG_POINT pos)
Print the decription of the Painted Deck.
static void print_desc_blue_deck(BG_POINT pos)
Print the decription of the Blue Deck.
-
static const char deck_names[DECK_TYPE_MAX][DECK_NAME_LENGTH]
List of DeckType names, all formatted to be centered in a string of 13 characters.
static void print_desc_green_deck(BG_POINT pos)
Print the decription of the Green Deck.
+
static const char DECK_NAMES[DECK_TYPE_MAX][DECK_NAME_LENGTH]
List of DeckType names, all formatted to be centered in a string of 13 characters.
static void print_desc_red_deck(BG_POINT pos)
Print the decription of the Red Deck.
void print_deck_description(enum DeckType deck, BG_POINT pos)
Prints the Deck description string to the screen at the given position.
Functions related to the different types of Decks.
diff --git a/def__state__info__table_8h_source.html b/def__state__info__table_8h_source.html
index 73a176ae..782049d4 100644
--- a/def__state__info__table_8h_source.html
+++ b/def__state__info__table_8h_source.html
@@ -165,17 +165,17 @@ $(document).ready(function(){initNavTree('def__state__info__table_8h_source.html
-
void game_round_on_init(void)
Round state initialization.
-
void game_round_on_update(void)
Round state update.
+
void game_round_on_init(void)
Round state initialization.
+
void game_round_on_update(void)
Round state update.
void game_round_end_on_exit(void)
Round end cleanup.
void game_round_end_on_init(void)
Round end state initialization.
void game_round_end_on_update(void)
Round end state update.
void game_run_setup_on_exit(void)
Run Setup menu cleanup.
void game_run_setup_on_update(void)
Run Setup menu state update.
void game_run_setup_on_init(void)
Run Setup menu state initialization.
-
void game_shop_on_exit(void)
Shop cleanup.
+
void game_shop_on_exit(void)
Shop cleanup.
void game_shop_on_init(void)
Shop state initialization.
-
void game_shop_on_update(void)
Shop state update.
+
void game_shop_on_update(void)
Shop state update.
void splash_screen_on_exit(void)
Exit the splash screen.
void splash_screen_on_update(void)
Update splash screen timers and print the remaining time accordingly.
void splash_screen_on_init(void)
Initialize the splash screen by printing the splash screen text.
diff --git a/font_8c_source.html b/font_8c_source.html
index 649f6d3a..350bc557 100644
--- a/font_8c_source.html
+++ b/font_8c_source.html
@@ -144,7 +144,7 @@ $(document).ready(function(){initNavTree('font_8c_source.html',''); initResizabl
-
7static const char* s_font_point_lookup[] = {
+
7static const char* FONT_POINT_LOOKUP[] = {
@@ -161,7 +161,7 @@ $(document).ready(function(){initNavTree('font_8c_source.html',''); initResizabl
-
23 return s_font_point_lookup[val];
+
23 return FONT_POINT_LOOKUP[val];
diff --git a/game_8c_source.html b/game_8c_source.html
index f31024cc..969e2ec4 100644
--- a/game_8c_source.html
+++ b/game_8c_source.html
@@ -269,31 +269,31 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
-
132static List _owned_jokers_list;
-
133static List _discarded_jokers_list;
-
134static List _expired_jokers_list;
+
132static List s_owned_jokers_list;
+
133static List s_discarded_jokers_list;
+
134static List s_expired_jokers_list;
-
137static Card* deck[MAX_DECK_SIZE] = {NULL};
-
138static int deck_top = -1;
+
137static Card* s_deck[MAX_DECK_SIZE] = {NULL};
+
138static int s_deck_top = -1;
-
141static int shortcut_joker_count = 0;
+
141static int s_shortcut_joker_count = 0;
-
143static int four_fingers_joker_count = 0;
+
143static int s_four_fingers_joker_count = 0;
145void deck_push(
Card* card)
-
147 if (deck_top >= MAX_DECK_SIZE - 1)
+
147 if (s_deck_top >= MAX_DECK_SIZE - 1)
-
149 deck[++deck_top] = card;
+
149 s_deck[++s_deck_top] = card;
-
+
-
156 return deck[deck_top--];
+
156 return s_deck[s_deck_top--];
159void display_ante(
void)
@@ -314,9 +314,9 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
-
-
-
+
+
+
@@ -347,9 +347,9 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
-
+
-
+
213 remove_owned_joker(0);
214 joker_object_destroy(&joker_object);
@@ -362,9 +362,9 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
-
-
-
+
+
+
@@ -383,12 +383,12 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
244static inline void discarded_jokers_update_loop(
void)
-
+
-
+
@@ -404,7 +404,7 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
265static inline void held_jokers_update_loop(
void)
-
267 static const int spacing_lut[MAX_JOKERS_HELD_SIZE][MAX_JOKERS_HELD_SIZE] = {
+
267 static const int SPACING_LUT[MAX_JOKERS_HELD_SIZE][MAX_JOKERS_HELD_SIZE] = {
@@ -414,15 +414,15 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
275 FIXED hand_x = int2fx(HELD_JOKERS_POS.x);
-
+
-
+
279 int jokers_top =
list_get_len(&s_owned_jokers_list) - 1;
-
285 joker->tx = hand_x - int2fx(spacing_lut[jokers_top][i]);
+
285 joker->tx = hand_x - int2fx(SPACING_LUT[jokers_top][i]);
@@ -435,12 +435,12 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
296static inline void expired_jokers_update_loop(
void)
-
+
-
+
@@ -450,7 +450,7 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
312 int expired_joker_idx = 0;
-
+
315 while ((expired_joker =
list_itr_next(&joker_itr)) && expired_joker != joker_object)
@@ -502,7 +502,7 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
363bool is_joker_owned(
int joker_id)
-
+
@@ -517,72 +517,72 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
378List* get_jokers_list(
void)
-
380 return &_owned_jokers_list;
+
380 return &s_owned_jokers_list;
383List* get_expired_jokers_list(
void)
-
385 return &_expired_jokers_list;
+
385 return &s_expired_jokers_list;
388List* get_discarded_jokers_list(
void)
-
390 return &_discarded_jokers_list;
+
390 return &s_discarded_jokers_list;
393bool is_shortcut_joker_active(
void)
-
395 return shortcut_joker_count > 0;
+
395 return s_shortcut_joker_count > 0;
398int get_straight_and_flush_size(
void)
-
400 return four_fingers_joker_count > 0 ? STRAIGHT_AND_FLUSH_SIZE_FOUR_FINGERS
-
401 : STRAIGHT_AND_FLUSH_SIZE_DEFAULT;
+
400 return s_four_fingers_joker_count > 0 ? STRAIGHT_AND_FLUSH_SIZE_FOUR_FINGERS
+
401 : STRAIGHT_AND_FLUSH_SIZE_DEFAULT;
-
+
411 if (joker_object->joker->id == FOUR_FINGERS_JOKER_ID)
-
413 four_fingers_joker_count++;
+
413 s_four_fingers_joker_count++;
416 if (joker_object->joker->id == SHORTCUT_JOKER_ID)
-
418 shortcut_joker_count++;
+
418 s_shortcut_joker_count++;
422void remove_owned_joker(
int owned_joker_idx)
-
+
428 if (joker_object->joker->id == FOUR_FINGERS_JOKER_ID)
-
430 four_fingers_joker_count--;
+
430 s_four_fingers_joker_count--;
433 if (joker_object->joker->id == SHORTCUT_JOKER_ID)
-
435 shortcut_joker_count--;
+
435 s_shortcut_joker_count--;
-
+
443int get_deck_top(
void)
-
+
448int get_num_discards_remaining(
void)
@@ -775,23 +775,23 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
636int deck_get_size(
void)
-
+
638 return s_deck_top + 1;
641static int deck_get_max_size(
void)
-
+
647void deck_shuffle(
void)
-
649 for (
int i = deck_top; i > 0; i--)
+
649 for (
int i = s_deck_top; i > 0; i--)
-
652 Card* temp = deck[i];
-
-
+
652 Card* temp = s_deck[i];
+
653 s_deck[i] = s_deck[j];
+
@@ -861,7 +861,7 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
Functions relative to manipulating and analyzing the contents of the Hand, a.k.a. the Cards we hold a...
int get_hand_top(void)
Get the position in hand array of the last card obtained.
Functions relative to the handling of Jokers.
-
void joker_set_rollable(int joker_id, bool rollable)
Set whether a Joker is available to be rolled for the shop, packs, etc.
+
void joker_set_rollable(int joker_id, bool rollable)
Set whether a Joker is available to be rolled for the shop, packs, etc.
All the functions used specifically to interact with Jokers. This includes browsing,...
Header of shared rects and points needed for ui.
@@ -878,11 +878,11 @@ $(document).ready(function(){initNavTree('game_8c_source.html',''); initResizabl
Main menu state functions.
Common functions to handle RNG manipulation. Using this interface has three goals:
-
void rng_update(void)
Update the CPU cycles counter and accumulate it into a bigger u32 timer_acc variable.
+
void rng_update(void)
Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
u32 rng_get_u32(void)
Get the next "randomly" generated number in the sequence from the current seed.
API relative to the Rounds we play.
int get_discard_top(void)
Get the index of the last discarded card.
-
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
+
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
int get_played_top(void)
Get the index of the last played card.
Round end game state functions.
Setup Run menu state functions.
diff --git a/game__over_8c_source.html b/game__over_8c_source.html
index 172314a4..570f634c 100644
--- a/game__over_8c_source.html
+++ b/game__over_8c_source.html
@@ -266,17 +266,17 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
-
129static enum EndCondition condition = END_CONDITION_NONE;
-
130static u32 timer = TM_ZERO;
-
131static bool reuse_seed =
false;
-
132static bool continue_run =
false;
+
129static enum EndCondition s_end_condition = END_CONDITION_NONE;
+
130static u32 s_timer = TM_ZERO;
+
131static bool s_reuse_seed =
false;
+
132static bool s_continue_run =
false;
134static void game_over_common_init(
enum EndCondition init_condition)
-
136 condition = init_condition;
-
-
-
139 continue_run =
false;
+
136 s_end_condition = init_condition;
+
+
138 s_reuse_seed =
false;
+
139 s_continue_run =
false;
@@ -353,14 +353,14 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
-
+
-
+
-
218 if (timer < GAME_OVER_ANIM_FRAMES)
+
218 if (s_timer < GAME_OVER_ANIM_FRAMES)
@@ -372,7 +372,7 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
-
230 else if (timer == GAME_OVER_ANIM_FRAMES)
+
230 else if (s_timer == GAME_OVER_ANIM_FRAMES)
232 char best_hand_str[UINT_MAX_DIGITS + 1];
@@ -436,7 +436,7 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
-
294 if (timer >= GAME_OVER_ANIM_FRAMES)
+
294 if (s_timer >= GAME_OVER_ANIM_FRAMES)
@@ -447,14 +447,14 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
-
303 condition = END_CONDITION_NONE;
+
303 s_end_condition = END_CONDITION_NONE;
305 u32 previous_seed = g_game_vars.rng_info.
seed;
-
+
-
+
313 g_game_vars.rng_info.
seed = UNDEFINED;
@@ -494,9 +494,9 @@ $(document).ready(function(){initNavTree('game__over_8c_source.html',''); initRe
347static void reuse_seed_on_pressed(
void)
-
349 reuse_seed = !reuse_seed;
+
349 s_reuse_seed = !s_reuse_seed;
-
351 reuse_seed ? REUSE_SEED_BTN_ON_SRC_RECT : REUSE_SEED_BTN_OFF_SRC_RECT,
+
351 s_reuse_seed ? REUSE_SEED_BTN_ON_SRC_RECT : REUSE_SEED_BTN_OFF_SRC_RECT,
352 REUSE_SEED_BTN_DEST_POS
diff --git a/globals_d.html b/globals_d.html
index fd5dd456..964b53a5 100644
--- a/globals_d.html
+++ b/globals_d.html
@@ -133,7 +133,7 @@ $(document).ready(function(){initNavTree('globals_d.html',''); initResizable();
Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:
- d -
@@ -1092,7 +1092,7 @@ Functions
- Returns
- u16 value of the color, not a pointer
-Definition at line 177 of file joker.c.
+Definition at line 178 of file joker.c.
@@ -1112,7 +1112,7 @@ Functions
@@ -1154,7 +1154,7 @@ Functions
@@ -1174,7 +1174,7 @@ Functions
@@ -1193,7 +1193,7 @@ Functions
@@ -1213,7 +1213,7 @@ Functions
@@ -1241,7 +1241,7 @@ Functions
-Definition at line 299 of file joker.c.
+Definition at line 300 of file joker.c.
@@ -1261,7 +1261,7 @@ Functions
@@ -1289,7 +1289,7 @@ Functions
-Definition at line 271 of file joker.c.
+Definition at line 272 of file joker.c.
@@ -1318,7 +1318,7 @@ Functions
- Returns
- UNDEFINED in case of error, the buy price of the joker otherwise.
-Definition at line 291 of file joker.c.
+Definition at line 292 of file joker.c.
@@ -1338,7 +1338,7 @@ Functions
@@ -1358,7 +1358,7 @@ Functions
@@ -1381,7 +1381,7 @@ Functions
Roll and create a new JokerObject item.
- Returns
- Newly created
Item* (JokerObject) or NULL if none available.
-Definition at line 387 of file joker.c.
+Definition at line 388 of file joker.c.
@@ -1417,7 +1417,7 @@ Functions
@@ -1447,7 +1447,7 @@ Functions
@@ -1469,7 +1469,7 @@ Functions
Reset rollable jokers to include all jokers in the registry.
-Definition at line 336 of file joker.c.
+Definition at line 337 of file joker.c.
@@ -1508,7 +1508,7 @@ Functions
-Definition at line 308 of file joker.c.
+Definition at line 309 of file joker.c.
diff --git a/joker_8h_source.html b/joker_8h_source.html
index 2a0c2e9e..283d5fec 100644
--- a/joker_8h_source.html
+++ b/joker_8h_source.html
@@ -354,13 +354,13 @@ $(document).ready(function(){initNavTree('joker_8h_source.html',''); initResizab
Graphic utility functions.
The core structure for items in the shop and inventory. Provides a common API for the shop and invent...
-void joker_object_dispose(Item **joker_object)
Destroy a JokerObject item, free its resources, and make it available to be rolled.
-u16 joker_get_rarity_color(u8 rarity, bool main_color)
Get Joker rarity panel color.
-Item * joker_object_roll_new(void)
Roll and create a new JokerObject item.
-int joker_object_get_buy_price(Item *joker_object)
Returns the buy price of the joker object.
-void joker_object_add_to_owned(Item *joker_object)
Add a Joker to the list of owned Jokers and place it in the joker row.
-void joker_reset_rollable_jokers(void)
Reset rollable jokers to include all jokers in the registry.
-void joker_set_rollable(int joker_id, bool rollable)
Set whether a Joker is available to be rolled for the shop, packs, etc.
+void joker_object_dispose(Item **joker_object)
Destroy a JokerObject item, free its resources, and make it available to be rolled.
+u16 joker_get_rarity_color(u8 rarity, bool main_color)
Get Joker rarity panel color.
+Item * joker_object_roll_new(void)
Roll and create a new JokerObject item.
+int joker_object_get_buy_price(Item *joker_object)
Returns the buy price of the joker object.
+void joker_object_add_to_owned(Item *joker_object)
Add a Joker to the list of owned Jokers and place it in the joker row.
+void joker_reset_rollable_jokers(void)
Reset rollable jokers to include all jokers in the registry.
+void joker_set_rollable(int joker_id, bool rollable)
Set whether a Joker is available to be rolled for the shop, packs, etc.
A generic interface for all items that can appear in the shop or be in the inventory....
diff --git a/joker__effects_8c_source.html b/joker__effects_8c_source.html
index 222afece..b9d85088 100644
--- a/joker__effects_8c_source.html
+++ b/joker__effects_8c_source.html
@@ -176,7 +176,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
36 return JOKER_EFFECT_FLAG_NONE; \
-
+
@@ -876,7 +876,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
738 SCORE_ON_EVENT_ONLY(JOKER_EVENT_INDEPENDENT, joker_event)
- 739 *joker_effect = &shared_joker_effect;
+ 739 *joker_effect = &s_shared_joker_effect;
741 (*joker_effect)->mult = 4;
@@ -896,7 +896,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
757 if (scored_card->suit == sinful_suit)
- 759 *joker_effect = &shared_joker_effect;
+ 759 *joker_effect = &s_shared_joker_effect;
761 (*joker_effect)->mult = 3;
762 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -957,7 +957,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 820 *joker_effect = &shared_joker_effect;
+ 820 *joker_effect = &s_shared_joker_effect;
822 (*joker_effect)->mult = 8;
823 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -979,7 +979,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 842 *joker_effect = &shared_joker_effect;
+ 842 *joker_effect = &s_shared_joker_effect;
844 (*joker_effect)->mult = 12;
845 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1001,7 +1001,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 864 *joker_effect = &shared_joker_effect;
+ 864 *joker_effect = &s_shared_joker_effect;
866 (*joker_effect)->mult = 10;
867 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1023,7 +1023,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 886 *joker_effect = &shared_joker_effect;
+ 886 *joker_effect = &s_shared_joker_effect;
888 (*joker_effect)->mult = 12;
889 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1045,7 +1045,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 908 *joker_effect = &shared_joker_effect;
+ 908 *joker_effect = &s_shared_joker_effect;
910 (*joker_effect)->mult = 10;
911 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1067,7 +1067,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 930 *joker_effect = &shared_joker_effect;
+ 930 *joker_effect = &s_shared_joker_effect;
932 (*joker_effect)->chips = 50;
933 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1089,7 +1089,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 952 *joker_effect = &shared_joker_effect;
+ 952 *joker_effect = &s_shared_joker_effect;
954 (*joker_effect)->chips = 100;
955 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1111,7 +1111,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 974 *joker_effect = &shared_joker_effect;
+ 974 *joker_effect = &s_shared_joker_effect;
976 (*joker_effect)->chips = 80;
977 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1133,7 +1133,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 996 *joker_effect = &shared_joker_effect;
+ 996 *joker_effect = &s_shared_joker_effect;
998 (*joker_effect)->chips = 100;
999 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1155,7 +1155,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1018 *joker_effect = &shared_joker_effect;
+ 1018 *joker_effect = &s_shared_joker_effect;
1020 (*joker_effect)->chips = 80;
1021 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1178,7 +1178,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1039 if (played_size <= 3)
- 1041 *joker_effect = &shared_joker_effect;
+ 1041 *joker_effect = &s_shared_joker_effect;
1043 (*joker_effect)->mult = 20;
1044 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1196,7 +1196,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1057 SCORE_ON_EVENT_ONLY(JOKER_EVENT_INDEPENDENT, joker_event)
- 1059 *joker_effect = &shared_joker_effect;
+ 1059 *joker_effect = &s_shared_joker_effect;
1061 List* jokers = get_jokers_list();
@@ -1228,7 +1228,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1089 SCORE_ON_EVENT_ONLY(JOKER_EVENT_INDEPENDENT, joker_event)
- 1091 *joker_effect = &shared_joker_effect;
+ 1091 *joker_effect = &s_shared_joker_effect;
1093 (*joker_effect)->mult =
rng_get_u32() % (MISPRINT_MAX_MULT + 1);
@@ -1248,7 +1248,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1109 if (scored_card->rank == TEN || scored_card->rank == FOUR)
- 1111 *joker_effect = &shared_joker_effect;
+ 1111 *joker_effect = &s_shared_joker_effect;
1113 (*joker_effect)->chips = 10;
1114 (*joker_effect)->mult = 4;
@@ -1276,7 +1276,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1139 *joker_effect = &shared_joker_effect;
+ 1139 *joker_effect = &s_shared_joker_effect;
1140 (*joker_effect)->mult = 8;
1141 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1300,7 +1300,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1161 if (get_num_discards_remaining() > 0)
- 1163 *joker_effect = &shared_joker_effect;
+ 1163 *joker_effect = &s_shared_joker_effect;
1165 (*joker_effect)->chips = 30 * get_num_discards_remaining();
1166 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1322,7 +1322,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1183 if (get_num_discards_remaining() == 0)
- 1185 *joker_effect = &shared_joker_effect;
+ 1185 *joker_effect = &s_shared_joker_effect;
1187 (*joker_effect)->mult = 15;
1188 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1356,7 +1356,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1217 if (all_cards_are_spades_or_clubs)
- 1219 *joker_effect = &shared_joker_effect;
+ 1219 *joker_effect = &s_shared_joker_effect;
1221 (*joker_effect)->xmult = 3;
1222 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1374,7 +1374,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1235 SCORE_ON_EVENT_ONLY(JOKER_EVENT_INDEPENDENT, joker_event)
- 1237 *joker_effect = &shared_joker_effect;
+ 1237 *joker_effect = &s_shared_joker_effect;
1239 (*joker_effect)->chips = (get_deck_top() + 1) * 2;
@@ -1416,7 +1416,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1276 case JOKER_EVENT_ON_CARD_HELD:
- 1279 *joker_effect = &shared_joker_effect;
+ 1279 *joker_effect = &s_shared_joker_effect;
1281 (*joker_effect)->mult = 2 * card_get_value(scored_card);
1282 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1443,7 +1443,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1304 if ((
rng_get_u32() % 2 == 0) && card_is_face(scored_card))
- 1306 *joker_effect = &shared_joker_effect;
+ 1306 *joker_effect = &s_shared_joker_effect;
1308 (*joker_effect)->money = 1;
1309 effect_flags_ret = JOKER_EFFECT_FLAG_MONEY;
@@ -1465,7 +1465,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1326 if ((
rng_get_u32() % 2 == 0) && card_is_face(scored_card))
- 1328 *joker_effect = &shared_joker_effect;
+ 1328 *joker_effect = &s_shared_joker_effect;
1330 (*joker_effect)->money = 2;
1331 effect_flags_ret = JOKER_EFFECT_FLAG_MONEY;
@@ -1487,7 +1487,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1348 if (scored_card->rank == ACE)
- 1350 *joker_effect = &shared_joker_effect;
+ 1350 *joker_effect = &s_shared_joker_effect;
1352 (*joker_effect)->chips = 20;
1353 (*joker_effect)->mult = 4;
@@ -1510,7 +1510,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1371 if (card_is_face(scored_card))
- 1373 *joker_effect = &shared_joker_effect;
+ 1373 *joker_effect = &s_shared_joker_effect;
1375 (*joker_effect)->chips = 30;
1376 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1528,7 +1528,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1389 SCORE_ON_EVENT_ONLY(JOKER_EVENT_INDEPENDENT, joker_event)
- 1391 *joker_effect = &shared_joker_effect;
+ 1391 *joker_effect = &s_shared_joker_effect;
@@ -1553,7 +1553,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1414 if (g_game_vars.money > 0)
- 1416 *joker_effect = &shared_joker_effect;
+ 1416 *joker_effect = &s_shared_joker_effect;
1418 (*joker_effect)->chips = g_game_vars.money * 2;
1419 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1575,7 +1575,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1436 if (card_is_face(scored_card))
- 1438 *joker_effect = &shared_joker_effect;
+ 1438 *joker_effect = &s_shared_joker_effect;
1440 (*joker_effect)->mult = 5;
1441 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1604,7 +1604,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1465 if (card_get_value(scored_card) % 2 == 0)
- 1467 *joker_effect = &shared_joker_effect;
+ 1467 *joker_effect = &s_shared_joker_effect;
1469 (*joker_effect)->mult = 4;
1470 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1628,7 +1628,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1489 if (card_get_value(scored_card) % 2 == 1)
- 1491 *joker_effect = &shared_joker_effect;
+ 1491 *joker_effect = &s_shared_joker_effect;
1493 (*joker_effect)->chips = 31;
1494 effect_flags_ret = JOKER_EFFECT_FLAG_CHIPS;
@@ -1651,7 +1651,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1512 if (get_num_hands_remaining() == 0)
- 1514 *joker_effect = &shared_joker_effect;
+ 1514 *joker_effect = &s_shared_joker_effect;
1516 (*joker_effect)->xmult = 3;
1517 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1680,7 +1680,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1542 case JOKER_EVENT_ON_CARD_SCORED_END:
- 1543 *joker_effect = &shared_joker_effect;
+ 1543 *joker_effect = &s_shared_joker_effect;
1545 (*joker_effect)->retrigger = (*p_remaining_retriggers > 0);
1546 if ((*joker_effect)->retrigger)
@@ -1711,7 +1711,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1574 *joker_effect = &shared_joker_effect;
+ 1574 *joker_effect = &s_shared_joker_effect;
1576 (*joker_effect)->xmult = 2;
1577 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1733,7 +1733,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1596 *joker_effect = &shared_joker_effect;
+ 1596 *joker_effect = &s_shared_joker_effect;
1598 (*joker_effect)->xmult = 3;
1599 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1755,7 +1755,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1618 *joker_effect = &shared_joker_effect;
+ 1618 *joker_effect = &s_shared_joker_effect;
1620 (*joker_effect)->xmult = 4;
1621 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1777,7 +1777,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1640 *joker_effect = &shared_joker_effect;
+ 1640 *joker_effect = &s_shared_joker_effect;
1642 (*joker_effect)->xmult = 3;
1643 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1799,7 +1799,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1662 *joker_effect = &shared_joker_effect;
+ 1662 *joker_effect = &s_shared_joker_effect;
1664 (*joker_effect)->xmult = 2;
1665 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1822,7 +1822,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1683 if (g_game_vars.money > 0)
- 1685 *joker_effect = &shared_joker_effect;
+ 1685 *joker_effect = &s_shared_joker_effect;
1687 (*joker_effect)->mult = (g_game_vars.money / 5) * 2;
1688 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1844,7 +1844,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1705 if (scored_card->rank == QUEEN)
- 1707 *joker_effect = &shared_joker_effect;
+ 1707 *joker_effect = &s_shared_joker_effect;
1709 (*joker_effect)->mult = 13;
1710 effect_flags_ret = JOKER_EFFECT_FLAG_MULT;
@@ -1882,7 +1882,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1745 *joker_effect = &shared_joker_effect;
+ 1745 *joker_effect = &s_shared_joker_effect;
1747 (*joker_effect)->xmult = 2;
1748 effect_flags_ret = JOKER_EFFECT_FLAG_XMULT;
@@ -1917,7 +1917,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1778 if (get_num_hands_remaining() == 0)
- 1780 *joker_effect = &shared_joker_effect;
+ 1780 *joker_effect = &s_shared_joker_effect;
1783 if ((*joker_effect)->retrigger)
@@ -2047,7 +2047,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1910 *joker_effect = &shared_joker_effect;
+ 1910 *joker_effect = &s_shared_joker_effect;
1912 (*joker_effect)->retrigger =
@@ -2094,7 +2094,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1957 *joker_effect = &shared_joker_effect;
+ 1957 *joker_effect = &s_shared_joker_effect;
1960 if ((*joker_effect)->retrigger)
@@ -2106,7 +2106,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
1968 case JOKER_EVENT_ON_HAND_SCORED_END:
- 1969 *joker_effect = &shared_joker_effect;
+ 1969 *joker_effect = &s_shared_joker_effect;
1970 effect_flags_ret = JOKER_EFFECT_FLAG_MESSAGE;
1972 (*p_hands_left_until_exp)--;
@@ -2114,9 +2114,9 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
- 1977 static const char* seltzer_messages[] =
+ 1977 static const char* SELTZER_MESSAGES[] =
1978 {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"};
- 1979 (*joker_effect)->message = (
char*)seltzer_messages[(*p_hands_left_until_exp) - 1];
+ 1979 (*joker_effect)->message = (
char*)SELTZER_MESSAGES[(*p_hands_left_until_exp) - 1];
@@ -2151,7 +2151,7 @@ $(document).ready(function(){initNavTree('joker__effects_8c_source.html',''); in
2013 case JOKER_EVENT_ON_CARD_SCORED_END:
- 2014 *joker_effect = &shared_joker_effect;
+ 2014 *joker_effect = &s_shared_joker_effect;
2017 (*joker_effect)->retrigger =
diff --git a/main__menu_8c_source.html b/main__menu_8c_source.html
index d0626f6d..65b3d905 100644
--- a/main__menu_8c_source.html
+++ b/main__menu_8c_source.html
@@ -218,10 +218,10 @@ $(document).ready(function(){initNavTree('main__menu_8c_source.html',''); initRe
-
+
- 84static enum MainButtons last_highlighted_button = PLAY_BTN_IDX;
+ 84static enum MainButtons s_last_highlighted_button = PLAY_BTN_IDX;
@@ -246,16 +246,16 @@ $(document).ready(function(){initNavTree('main__menu_8c_source.html',''); initRe
-
106 main_menu_ace = card_object_new(card_new(SPADES, ACE));
-
107 card_object_set_sprite(main_menu_ace, 0);
+
106 s_main_menu_ace = card_object_new(card_new(SPADES, ACE));
+
107 card_object_set_sprite(s_main_menu_ace, 0);
-
109 main_menu_ace->sprite->obj->attr0 |= ATTR0_AFF_DBL;
-
110 main_menu_ace->tscale = float2fx(0.8f);
-
+
109 s_main_menu_ace->sprite->obj->attr0 |= ATTR0_AFF_DBL;
+
110 s_main_menu_ace->tscale = float2fx(0.8f);
+
-
115 Selection sel_init = {last_highlighted_button, 0};
+
115 Selection sel_init = {s_last_highlighted_button, 0};
116 main_menu_selection_grid.selection = sel_init;
@@ -266,7 +266,7 @@ $(document).ready(function(){initNavTree('main__menu_8c_source.html',''); initRe
-
124 main_menu_ace->trotation = lu_sin((g_game_vars.timer << 8) / 2) / 3;
+
124 s_main_menu_ace->trotation = lu_sin((g_game_vars.timer << 8) / 2) / 3;
@@ -276,12 +276,12 @@ $(document).ready(function(){initNavTree('main__menu_8c_source.html',''); initRe
-
132 last_highlighted_button = main_menu_selection_grid.selection.x;
+
132 s_last_highlighted_button = main_menu_selection_grid.selection.x;
-
136 card_destroy(&main_menu_ace->card);
-
137 card_object_destroy(&main_menu_ace);
+
136 card_destroy(&s_main_menu_ace->card);
+
137 card_object_destroy(&s_main_menu_ace);
diff --git a/mgba__logger_8c_source.html b/mgba__logger_8c_source.html
index 8d52de35..54e40768 100644
--- a/mgba__logger_8c_source.html
+++ b/mgba__logger_8c_source.html
@@ -158,18 +158,18 @@ $(document).ready(function(){initNavTree('mgba__logger_8c_source.html',''); init
18static const u32 MGBA_LOG_BUFFER_SIZE = 0x100;
19static const u16 MGBA_LOG_LEVEL_MASK = 0x7;
-
21static bool mgba_logger_available =
false;
+
21static bool s_mgba_logger_available =
false;
25 *MGBA_REG_DEBUG_ENABLE = MGBA_ENABLE_MAGIC;
-
26 mgba_logger_available = (*MGBA_REG_DEBUG_ENABLE == MGBA_ENABLE_OK);
-
27 return mgba_logger_available;
+
26 s_mgba_logger_available = (*MGBA_REG_DEBUG_ENABLE == MGBA_ENABLE_OK);
+
27 return s_mgba_logger_available;
30static void mgba_vprintf(MgbaLogLevel level,
const char* fmt, va_list args)
-
32 if (!mgba_logger_available || fmt == NULL)
+
32 if (!s_mgba_logger_available || fmt == NULL)
35 vsnprintf(MGBA_REG_DEBUG_STRING, MGBA_LOG_BUFFER_SIZE, fmt, args);
@@ -187,7 +187,7 @@ $(document).ready(function(){initNavTree('mgba__logger_8c_source.html',''); init
48void mgba_func_printf(MgbaLogLevel level,
const char* func_name,
const char* fmt, ...)
-
50 if (!mgba_logger_available || func_name == NULL || fmt == NULL)
+
50 if (!s_mgba_logger_available || func_name == NULL || fmt == NULL)
diff --git a/navtreeindex0.js b/navtreeindex0.js
index b9b57456..843f6221 100644
--- a/navtreeindex0.js
+++ b/navtreeindex0.js
@@ -95,8 +95,8 @@ var NAVTREEINDEX0 =
"deck__types_8c.html#a72695ce33b02b8163efcd58a1d3190c2":[3,0,1,7,8],
"deck__types_8c.html#a736be51786cebff18770985e85d6a24e":[3,0,1,7,5],
"deck__types_8c.html#a994dd3e5b28e324cbff3f7c3d69d28ce":[3,0,1,7,3],
-"deck__types_8c.html#aa69c0508a53c09b17c5283a1e5be751a":[3,0,1,7,9],
"deck__types_8c.html#ab4e7764cc1e6cf64ebb03078795d2be4":[3,0,1,7,4],
+"deck__types_8c.html#aca3bc778faeef112f513ae0a84c5e378":[3,0,1,7,9],
"deck__types_8c.html#ae06a285687193be23c00a00b209eb521":[3,0,1,7,6],
"deck__types_8c.html#aeb6c51fe050fea32811f33e01f5c8542":[3,0,1,7,0],
"deck__types_8c_source.html":[3,0,1,7],
diff --git a/random_8c_source.html b/random_8c_source.html
index c36e3c01..cda7be00 100644
--- a/random_8c_source.html
+++ b/random_8c_source.html
@@ -147,7 +147,7 @@ $(document).ready(function(){initNavTree('random_8c_source.html',''); initResiza
-
10static u32 timer_acc = 0;
+
10static u32 s_timer_acc = 0;
@@ -161,7 +161,7 @@ $(document).ready(function(){initNavTree('random_8c_source.html',''); initResiza
-
21 timer_acc += (u32)REG_TM1D;
+
21 s_timer_acc += (u32)REG_TM1D;
@@ -177,7 +177,7 @@ $(document).ready(function(){initNavTree('random_8c_source.html',''); initResiza
@@ -203,7 +203,7 @@ $(document).ready(function(){initNavTree('random_8c_source.html',''); initResiza
Game global game variables struct definition.
Common functions to handle RNG manipulation. Using this interface has three goals:
-
void rng_update(void)
Update the CPU cycles counter and accumulate it into a bigger u32 timer_acc variable.
+
void rng_update(void)
Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
void rng_shuffle_seed(void)
Uses the CPU cycles counter to randomize the RNG seed as much as possible. This will be called by the...
void rng_set_seed(u32 seed)
Set the rng seed to the chosen value, and reset the step counter to 0. The seed will be capped at MAX...
void rng_restore(RngInfo info)
Restore RNG info struct in the GameVariables. Sets the seed and seeks the position step in the rng se...
diff --git a/random_8h.html b/random_8h.html
index f57dbc4c..6c909205 100644
--- a/random_8h.html
+++ b/random_8h.html
@@ -155,7 +155,7 @@ Functions
| | Starts counting CPU cycles, this will be used by rng_shuffle_seed to generate a more random seed. To be called once on game start.
|
| |
| void | rng_update (void) |
-
| | Update the CPU cycles counter and accumulate it into a bigger u32 timer_acc variable.
|
+
| | Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
|
| |
| void | rng_set_seed (u32 seed) |
| | Set the rng seed to the chosen value, and reset the step counter to 0. The seed will be capped at MAX_BASE36 for compatibility with the Seed Input screen used to choose a seed for seeded runs.
|
@@ -320,7 +320,7 @@ Functions
-
Update the CPU cycles counter and accumulate it into a bigger u32 timer_acc variable.
+
Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
Definition at line 19 of file random.c.
diff --git a/random_8h_source.html b/random_8h_source.html
index 3b4ed950..ff820a6e 100644
--- a/random_8h_source.html
+++ b/random_8h_source.html
@@ -165,7 +165,7 @@ $(document).ready(function(){initNavTree('random_8h_source.html',''); initResiza
-
void rng_update(void)
Update the CPU cycles counter and accumulate it into a bigger u32 timer_acc variable.
+
void rng_update(void)
Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
void rng_shuffle_seed(void)
Uses the CPU cycles counter to randomize the RNG seed as much as possible. This will be called by the...
void rng_set_seed(u32 seed)
Set the rng seed to the chosen value, and reset the step counter to 0. The seed will be capped at MAX...
void rng_restore(RngInfo info)
Restore RNG info struct in the GameVariables. Sets the seed and seeks the position step in the rng se...
diff --git a/round_8c.html b/round_8c.html
index f949db68..ac6e2203 100644
--- a/round_8c.html
+++ b/round_8c.html
@@ -432,50 +432,50 @@ Variables
| |
| static const int | HAND_SPACING_LUT [MAX_HAND_SIZE] |
| |
-
| static CardObject * | played [MAX_SELECTION_SIZE] = {NULL} |
-
| |
-
| static int | played_top = -1 |
-
| |
-
| static Card * | discard_pile [MAX_DECK_SIZE] = {NULL} |
-
| |
-
| static int | discard_top = -1 |
-
| |
-
| static int | scored_card_index = 0 |
-
| |
-
| static bool | retrigger = false |
-
| |
-
| static ListItr | _joker_scored_itr |
-
| |
-
| static ListItr | _joker_card_scored_end_itr |
-
| |
-
| static ListItr | _joker_round_end_itr |
-
| |
-
| static u32 | temp_score = 0 |
-
| |
-
| static bool | score_flames_active = false |
-
| |
-
| static FIXED | lerped_score = 0 |
-
| |
-
| static FIXED | lerped_temp_score = 0 |
-
| |
-
| static bool | sound_played = false |
-
| |
-
| static bool | discarded_card = false |
-
| |
-
| static int | cards_drawn = 0 |
-
| |
-
| static int | cards_discarded = 0 |
-
| |
-
| static bool | moving_card = false |
-
| |
-
| static bool | card_moved_too_fast = false |
-
| |
-
| static bool | card_selected_instead_of_moved = false |
-
| |
-
| static const int | card_swap_time_threshold = 6 |
-
| |
-
| static int | selection_hit_timer = UNDEFINED |
-
| |
+
| static CardObject * | s_played_hand [MAX_SELECTION_SIZE] = {NULL} |
+
| |
+
| static int | s_played_top = -1 |
+
| |
+
| static Card * | s_discard_pile [MAX_DECK_SIZE] = {NULL} |
+
| |
+
| static int | s_discard_top = -1 |
+
| |
+
| static int | s_scored_card_index = 0 |
+
| |
+
| static bool | s_retrigger = false |
+
| |
+
| static ListItr | s_joker_scored_itr |
+
| |
+
| static ListItr | s_joker_card_scored_end_itr |
+
| |
+
| static ListItr | s_joker_round_end_itr |
+
| |
+
| static u32 | s_temp_score = 0 |
+
| |
+
| static bool | s_score_flames_active = false |
+
| |
+
| static FIXED | s_lerped_score = 0 |
+
| |
+
| static FIXED | s_lerped_temp_score = 0 |
+
| |
+
| static bool | s_sound_played = false |
+
| |
+
| static bool | s_discarded_card = false |
+
| |
+
| static int | s_cards_drawn = 0 |
+
| |
+
| static int | s_cards_discarded = 0 |
+
| |
+
| static bool | s_moving_card = false |
+
| |
+
| static bool | s_card_moved_too_fast = false |
+
| |
+
| static bool | s_card_selected_instead_of_moved = false |
+
| |
+
| static const int | CARD_SWAP_TIME_THRESHOLD = 6 |
+
| |
+
| static int | s_selection_hit_timer = UNDEFINED |
+
| |
Data structures and implementation of functions relative to the Rounds we play.
@@ -956,7 +956,7 @@ Variables
Draw the next card at the top of the Deck and play a little Sprite animation to position it in our hand.
-
Definition at line 1124 of file round.c.
+
Definition at line 1125 of file round.c.
@@ -1034,7 +1034,7 @@ Variables
@@ -1090,7 +1090,7 @@ Variables
- Returns
- true if a scoring Joker was encountered, false if not
- See also
- JokerEvent
-Definition at line 1485 of file round.c.
+Definition at line 1486 of file round.c.
@@ -1413,7 +1413,7 @@ Variables
@@ -1650,7 +1650,7 @@ Variables
Determines if the round is over, be it because we lost or won the round.
- Returns
- true if the round is over, false if we can still play.
-Definition at line 1048 of file round.c.
+Definition at line 1049 of file round.c.
@@ -1672,7 +1672,7 @@ Variables
Round state initialization.
-Definition at line 1970 of file round.c.
+Definition at line 1975 of file round.c.
@@ -1694,7 +1694,7 @@ Variables
Round state update.
-Definition at line 2041 of file round.c.
+Definition at line 2046 of file round.c.
@@ -1752,7 +1752,7 @@ Variables
@@ -1780,7 +1780,7 @@ Variables
@@ -1836,7 +1836,7 @@ Variables
@@ -1924,7 +1924,7 @@ Variables
@@ -2132,7 +2132,7 @@ Variables
- Returns
- bool
- See also
- check_and_score_joker_for_event
-Definition at line 1541 of file round.c.
+Definition at line 1544 of file round.c.
@@ -2169,7 +2169,7 @@ Variables
- Returns
- bool
-Definition at line 1815 of file round.c.
+Definition at line 1820 of file round.c.
@@ -2205,7 +2205,7 @@ Variables
-Definition at line 1772 of file round.c.
+Definition at line 1775 of file round.c.
@@ -2237,7 +2237,7 @@ Variables
- Returns
- true if the Joker scoring loop has returned early
- See also
- check_and_score_joker_for_event
-Definition at line 1627 of file round.c.
+Definition at line 1630 of file round.c.
@@ -2268,7 +2268,7 @@ Variables
Score all played cards in order, then Jokers after each one.
- Returns
- true if the Cards scoring loop has returned early.
-Definition at line 1558 of file round.c.
+Definition at line 1561 of file round.c.
@@ -2300,7 +2300,7 @@ Variables
- Returns
- true if the Joker scoring loop has returned early
- See also
- check_and_score_joker_for_event
-Definition at line 1741 of file round.c.
+Definition at line 1744 of file round.c.
@@ -2332,7 +2332,7 @@ Variables
- Returns
- true if the Joker scoring loop has returned early
- See also
- check_and_score_joker_for_event
-Definition at line 1677 of file round.c.
+Definition at line 1680 of file round.c.
@@ -2364,7 +2364,7 @@ Variables
- Returns
- true if the Joker scoring loop has returned early
- See also
- check_and_score_joker_for_event
-Definition at line 1714 of file round.c.
+Definition at line 1717 of file round.c.
@@ -2392,7 +2392,7 @@ Variables
@@ -2420,7 +2420,7 @@ Variables
@@ -2512,7 +2512,7 @@ Variables
@@ -2596,7 +2596,7 @@ Variables
@@ -2624,7 +2624,7 @@ Variables
@@ -2730,83 +2730,11 @@ Variables
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 1424 of file round.c.
+Definition at line 1425 of file round.c.
-
-◆ _joker_card_scored_end_itr
-
-
-
-
-
-
-
-
- | ListItr _joker_card_scored_end_itr |
-
-
- |
-
-static |
-
-
-
-
-
-◆ _joker_round_end_itr
-
-
-
-
-
-
-
-
- | ListItr _joker_round_end_itr |
-
-
- |
-
-static |
-
-
-
-
-
-◆ _joker_scored_itr
-
-
◆ BIG_BLIND_TITLE_SRC_RECT
@@ -2903,8 +2831,8 @@ Variables
-
-◆ card_moved_too_fast
+
+◆ CARD_SWAP_TIME_THRESHOLD
@@ -2913,55 +2841,7 @@ Variables
- | bool card_moved_too_fast = false |
-
-
- |
-
-static |
-
-
-
-
-
-◆ card_selected_instead_of_moved
-
-
-
-
-
-
-
-
- | bool card_selected_instead_of_moved = false |
-
-
- |
-
-static |
-
-
-
-
-
-◆ card_swap_time_threshold
-
-
-
-
-
-
-
-
- | const int card_swap_time_threshold = 6 |
+ const int CARD_SWAP_TIME_THRESHOLD = 6 |
|
@@ -2973,126 +2853,6 @@ Variables
Definition at line 541 of file round.c.
-
-
-
-◆ cards_discarded
-
-
-
-
-
-
-
-
- | int cards_discarded = 0 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ cards_drawn
-
-
-
-
-
-
-
-
- | int cards_drawn = 0 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ discard_pile
-
-
-
-
-
-
-
-
- | Card* discard_pile[MAX_DECK_SIZE] = {NULL} |
-
-
- |
-
-static |
-
-
-
-
-
-◆ discard_top
-
-
-
-
-
-
-
-
- | int discard_top = -1 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ discarded_card
-
-
-
-
-
-
-
-
- | bool discarded_card = false |
-
-
- |
-
-static |
-
-
-
@@ -3403,78 +3163,6 @@ Variables
Definition at line 94 of file round.c.
-
-
-
-◆ lerped_score
-
-
-
-
-
-
-
-
- | FIXED lerped_score = 0 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ lerped_temp_score
-
-
-
-
-
-
-
-
- | FIXED lerped_temp_score = 0 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ moving_card
-
-
-
-
-
-
-
-
- | bool moving_card = false |
-
-
- |
-
-static |
-
-
-
@@ -3499,30 +3187,6 @@ Variables
Definition at line 201 of file round.c.
-
-
-
-◆ played
-
-
-
-
-
-
-
-
- | CardObject* played[MAX_SELECTION_SIZE] = {NULL} |
-
-
- |
-
-static |
-
-
-
@@ -3549,8 +3213,8 @@ Variables
-
-◆ played_top
+
+◆ s_card_moved_too_fast
@@ -3559,7 +3223,343 @@ Variables
- | int played_top = -1 |
+ bool s_card_moved_too_fast = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_card_selected_instead_of_moved
+
+
+
+
+
+
+
+
+ | bool s_card_selected_instead_of_moved = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_cards_discarded
+
+
+
+
+
+
+
+
+ | int s_cards_discarded = 0 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_cards_drawn
+
+
+
+
+
+
+
+
+ | int s_cards_drawn = 0 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_discard_pile
+
+
+
+
+
+
+
+
+ | Card* s_discard_pile[MAX_DECK_SIZE] = {NULL} |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_discard_top
+
+
+
+
+
+
+
+
+ | int s_discard_top = -1 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_discarded_card
+
+
+
+
+
+
+
+
+ | bool s_discarded_card = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_joker_card_scored_end_itr
+
+
+
+
+
+
+
+
+ | ListItr s_joker_card_scored_end_itr |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_joker_round_end_itr
+
+
+
+
+
+
+
+
+ | ListItr s_joker_round_end_itr |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_joker_scored_itr
+
+
+
+◆ s_lerped_score
+
+
+
+
+
+
+
+
+ | FIXED s_lerped_score = 0 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_lerped_temp_score
+
+
+
+
+
+
+
+
+ | FIXED s_lerped_temp_score = 0 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_moving_card
+
+
+
+
+
+
+
+
+ | bool s_moving_card = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_played_hand
+
+
+
+
+
+
+
+
+ | CardObject* s_played_hand[MAX_SELECTION_SIZE] = {NULL} |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_played_top
+
+
+
+
+
+
+
+
+ | int s_played_top = -1 |
|
@@ -3573,8 +3573,8 @@ Variables
-
-◆ retrigger
+
+◆ s_retrigger
@@ -3583,7 +3583,7 @@ Variables
- | bool retrigger = false |
+ bool s_retrigger = false |
|
@@ -3595,6 +3595,126 @@ Variables
Definition at line 220 of file round.c.
+
+
+
+◆ s_score_flames_active
+
+
+
+
+
+
+
+
+ | bool s_score_flames_active = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_scored_card_index
+
+
+
+
+
+
+
+
+ | int s_scored_card_index = 0 |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_selection_hit_timer
+
+
+
+
+
+
+
+
+ | int s_selection_hit_timer = UNDEFINED |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_sound_played
+
+
+
+
+
+
+
+
+ | bool s_sound_played = false |
+
+
+ |
+
+static |
+
+
+
+
+
+◆ s_temp_score
+
+
+
+
+
+
+
+
+ | u32 s_temp_score = 0 |
+
+
+ |
+
+static |
+
+
+
@@ -3691,126 +3811,6 @@ Variables
Definition at line 67 of file round.c.
-
-
-
-◆ score_flames_active
-
-
-
-
-
-
-
-
- | bool score_flames_active = false |
-
-
- |
-
-static |
-
-
-
-
-
-◆ scored_card_index
-
-
-
-
-
-
-
-
- | int scored_card_index = 0 |
-
-
- |
-
-static |
-
-
-
-
-
-◆ selection_hit_timer
-
-
-
-
-
-
-
-
- | int selection_hit_timer = UNDEFINED |
-
-
- |
-
-static |
-
-
-
-
-
-◆ sound_played
-
-
-
-
-
-
-
-
- | bool sound_played = false |
-
-
- |
-
-static |
-
-
-
-
-
-◆ temp_score
-
-
-
-
-
-
-
-
- | u32 temp_score = 0 |
-
-
- |
-
-static |
-
-
-
diff --git a/round_8c_source.html b/round_8c_source.html
index 386faf53..524dafd3 100644
--- a/round_8c_source.html
+++ b/round_8c_source.html
@@ -345,32 +345,32 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
209 {28, 28, 28, 28, 27, 21, 18, 15, 13, 12, 10, 9, 9, 8, 8, 7};
- 212static CardObject* played[MAX_SELECTION_SIZE] = {NULL};
- 213static int played_top = -1;
+ 212static CardObject* s_played_hand[MAX_SELECTION_SIZE] = {NULL};
+ 213static int s_played_top = -1;
- 215static Card* discard_pile[MAX_DECK_SIZE] = {NULL};
- 216static int discard_top = -1;
+ 215static Card* s_discard_pile[MAX_DECK_SIZE] = {NULL};
+ 216static int s_discard_top = -1;
- 219static int scored_card_index = 0;
- 220static bool retrigger =
false;
+ 219static int s_scored_card_index = 0;
+ 220static bool s_retrigger =
false;
- 223static ListItr _joker_scored_itr;
- 224static ListItr _joker_card_scored_end_itr;
- 225static ListItr _joker_round_end_itr;
+ 223static ListItr s_joker_scored_itr;
+ 224static ListItr s_joker_card_scored_end_itr;
+ 225static ListItr s_joker_round_end_itr;
- 227static u32 temp_score = 0;
- 228static bool score_flames_active =
false;
- 229static FIXED lerped_score = 0;
- 230static FIXED lerped_temp_score = 0;
+ 227static u32 s_temp_score = 0;
+ 228static bool s_score_flames_active =
false;
+ 229static FIXED s_lerped_score = 0;
+ 230static FIXED s_lerped_temp_score = 0;
- 233static bool sound_played =
false;
- 234static bool discarded_card =
false;
+ 233static bool s_sound_played =
false;
+ 234static bool s_discarded_card =
false;
- 236static int cards_drawn = 0;
- 237static int cards_discarded = 0;
+ 236static int s_cards_drawn = 0;
+ 237static int s_cards_discarded = 0;
@@ -379,62 +379,62 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
-
250 return played_top + 1;
+
250 return s_played_top + 1;
-
260 if (played_top >= MAX_SELECTION_SIZE - 1)
+
260 if (s_played_top >= MAX_SELECTION_SIZE - 1)
-
262 played[++played_top] = card_object;
+
262 s_played_hand[++s_played_top] = card_object;
-
+
267 return s_discard_top;
-
279 if (discard_top >= MAX_DECK_SIZE - 1)
+
279 if (s_discard_top >= MAX_DECK_SIZE - 1)
-
281 discard_pile[++discard_top] = card;
+
281 s_discard_pile[++s_discard_top] = card;
-
+
291 if (s_discard_top < 0)
-
293 return discard_pile[discard_top--];
+
293 return s_discard_pile[s_discard_top--];
-
298 return scored_card_index;
+
298 return s_scored_card_index;
-
303 retrigger = new_retrigger;
+
303 s_retrigger = new_retrigger;
@@ -447,16 +447,16 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
318 for (
int i = 0; i < NUM_SUITS; i++)
- 321 for (
int i = 0; i <= played_top; i++)
+ 321 for (
int i = 0; i <= s_played_top; i++)
-
+ 327 if (!s_played_hand[i])
- 329 ranks_out[played[i]->card->rank]++;
- 330 suits_out[played[i]->card->suit]++;
+ 329 ranks_out[s_played_hand[i]->card->rank]++;
+ 330 suits_out[s_played_hand[i]->card->suit]++;
@@ -650,18 +650,18 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 531static bool moving_card =
false;
+ 531static bool s_moving_card =
false;
- 535static bool card_moved_too_fast =
false;
- 536static bool card_selected_instead_of_moved =
false;
+ 535static bool s_card_moved_too_fast =
false;
+ 536static bool s_card_selected_instead_of_moved =
false;
- 541static const int card_swap_time_threshold = 6;
- 542static int selection_hit_timer = UNDEFINED;
+ 541static const int CARD_SWAP_TIME_THRESHOLD = 6;
+ 542static int s_selection_hit_timer = UNDEFINED;
544static bool game_round_hand_row_on_selection_changed(
@@ -674,8 +674,8 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
552 int next_card_idx = UNDEFINED;
- 555 card_moved_too_fast = (selection_hit_timer != UNDEFINED) &&
- 556 (g_game_vars.timer - selection_hit_timer) < card_swap_time_threshold;
+ 555 s_card_moved_too_fast = (s_selection_hit_timer != UNDEFINED) &&
+ 556 (g_game_vars.timer - s_selection_hit_timer) < CARD_SWAP_TIME_THRESHOLD;
558 if (prev_selection->y == GAME_PLAYING_HAND_SEL_Y)
@@ -689,8 +689,8 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
568 bool on_the_same_row = new_selection->y == prev_selection->y;
- 570 if (on_the_same_row && key_is_down(SELECT_CARD) && !card_moved_too_fast &&
- 571 !card_selected_instead_of_moved)
+ 570 if (on_the_same_row && key_is_down(SELECT_CARD) && !s_card_moved_too_fast &&
+ 571 !s_card_selected_instead_of_moved)
573 bool moved_by_one_tile = abs(new_selection->x - prev_selection->x) == 1;
@@ -703,7 +703,7 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
-
+ 584 s_moving_card =
true;
@@ -719,10 +719,10 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 600 if (key_released(SELECT_CARD) || (card_moved_too_fast && !moving_card))
+ 600 if (key_released(SELECT_CARD) || (s_card_moved_too_fast && !s_moving_card))
- 603 card_selected_instead_of_moved =
true;
+ 603 s_card_selected_instead_of_moved =
true;
605 if (next_card_idx != UNDEFINED)
@@ -744,18 +744,18 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
623 if (key_hit(SELECT_CARD))
- 625 selection_hit_timer = g_game_vars.timer;
+ 625 s_selection_hit_timer = g_game_vars.timer;
627 else if (key_released(SELECT_CARD))
- 629 if (!moving_card && !card_selected_instead_of_moved)
+ 629 if (!s_moving_card && !s_card_selected_instead_of_moved)
-
- 634 card_moved_too_fast =
false;
- 635 card_selected_instead_of_moved =
false;
- 636 selection_hit_timer = UNDEFINED;
+ 633 s_moving_card =
false;
+ 634 s_card_moved_too_fast =
false;
+ 635 s_card_selected_instead_of_moved =
false;
+ 636 s_selection_hit_timer = UNDEFINED;
638 else if (key_hit(DESELECT_CARDS))
@@ -884,19 +884,19 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
769 if (card_object_is_selected(hand[card_idx]) ||
get_hand_state() == HAND_SHUFFLING)
-
+ 771 if (!s_discarded_card)
773 *hand_x = int2fx(CARD_DISCARD_PNT.x);
774 *hand_y = int2fx(CARD_DISCARD_PNT.y);
-
+
-
+
-
+ 783 s_sound_played =
true;
786 if (hand[card_idx]->x >= *hand_x)
@@ -908,8 +908,8 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
-
- 796 sound_played =
false;
+
+ 796 s_sound_played =
false;
797 g_game_vars.timer = TM_ZERO;
@@ -922,7 +922,7 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 809 discarded_card =
true;
+ 809 s_discarded_card =
true;
@@ -945,13 +945,13 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 832 if (card_idx == 0 && discarded_card ==
false && g_game_vars.timer % FRAMES(10) == 0)
+ 832 if (card_idx == 0 && s_discarded_card ==
false && g_game_vars.timer % FRAMES(10) == 0)
- 837 sound_played =
false;
-
+ 837 s_sound_played =
false;
+ 838 s_cards_discarded = 0;
840 g_game_vars.timer = TM_ZERO;
@@ -972,9 +972,9 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
858 bool flush_selection[MAX_HAND_SIZE] = {
false};
-
+
- 861 for (
int i = 0; i <= played_top; i++)
+ 861 for (
int i = 0; i <= s_played_top; i++)
863 final_selection[i] = flush_selection[i];
@@ -985,32 +985,32 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
871 bool straight_selection[MAX_HAND_SIZE] = {
false};
-
+
- 874 for (
int i = 0; i <= played_top; i++)
+ 874 for (
int i = 0; i <= s_played_top; i++)
876 final_selection[i] = final_selection[i] || straight_selection[i];
-
+
- 884 for (
int i = 0; i <= played_top; i++)
+ 884 for (
int i = 0; i <= s_played_top; i++)
886 if (final_selection[i])
- 888 card_object_set_selected(played[i],
true);
+ 888 card_object_set_selected(s_played_hand[i],
true);
893static inline void select_all_five_cards_in_played_hand(
void)
- 895 for (
int i = 0; i <= played_top; i++)
+ 895 for (
int i = 0; i <= s_played_top; i++)
- 897 card_object_set_selected(played[i],
true);
+ 897 card_object_set_selected(s_played_hand[i],
true);
@@ -1027,8 +1027,8 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
912 for (
int i = 0; i <= played_size; i++)
- 914 if (played[i]->card->rank != played[(i + 1) % played_size]->card->rank &&
- 915 played[i]->card->rank != played[(i + 2) % played_size]->card->rank)
+ 914 if (s_played_hand[i]->card->rank != s_played_hand[(i + 1) % played_size]->card->rank &&
+ 915 s_played_hand[i]->card->rank != s_played_hand[(i + 2) % played_size]->card->rank)
@@ -1039,7 +1039,7 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
924 if (i != unmatched_index)
- 926 card_object_set_selected(played[i],
true);
+ 926 card_object_set_selected(s_played_hand[i],
true);
@@ -1047,7 +1047,7 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
932 for (
int i = 0; i <= played_size; i++)
- 934 card_object_set_selected(played[i],
true);
+ 934 card_object_set_selected(s_played_hand[i],
true);
@@ -1055,21 +1055,21 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
939static inline void select_three_of_a_kind_cards_in_played_hand(
void)
- 942 for (
int i = 0; i <= played_top - 1; i++)
+ 942 for (
int i = 0; i <= s_played_top - 1; i++)
- 944 for (
int j = i + 1; j <= played_top; j++)
+ 944 for (
int j = i + 1; j <= s_played_top; j++)
- 946 if (played[i]->card->rank == played[j]->card->rank)
+ 946 if (s_played_hand[i]->card->rank == s_played_hand[j]->card->rank)
- 948 card_object_set_selected(played[i],
true);
- 949 card_object_set_selected(played[j],
true);
+ 948 card_object_set_selected(s_played_hand[i],
true);
+ 949 card_object_set_selected(s_played_hand[j],
true);
- 951 for (
int k = j + 1; k <= played_top; k++)
+ 951 for (
int k = j + 1; k <= s_played_top; k++)
- 953 if (played[i]->card->rank == played[k]->card->rank &&
- 954 !card_object_is_selected(played[k]))
+ 953 if (s_played_hand[i]->card->rank == s_played_hand[k]->card->rank &&
+ 954 !card_object_is_selected(s_played_hand[k]))
- 956 card_object_set_selected(played[k],
true);
+ 956 card_object_set_selected(s_played_hand[k],
true);
@@ -1078,7 +1078,7 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 965 if (card_object_is_selected(played[i]))
+ 965 if (card_object_is_selected(s_played_hand[i]))
@@ -1088,1060 +1088,1065 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
- 975 for (i = 0; i <= played_top - 1; i++)
+ 975 for (i = 0; i <= s_played_top - 1; i++)
- 977 for (
int j = i + 1; j <= played_top; j++)
+ 977 for (
int j = i + 1; j <= s_played_top; j++)
- 979 if (played[i]->card->rank == played[j]->card->rank)
+ 979 if (s_played_hand[i]->card->rank == s_played_hand[j]->card->rank)
- 981 card_object_set_selected(played[i],
true);
- 982 card_object_set_selected(played[j],
true);
+ 981 card_object_set_selected(s_played_hand[i],
true);
+ 982 card_object_set_selected(s_played_hand[j],
true);
- 988 if (card_object_is_selected(played[i]))
+ 988 if (card_object_is_selected(s_played_hand[i]))
- 992 for (; i <= played_top - 1; i++)
+ 992 for (; i <= s_played_top - 1; i++)
- 994 for (
int j = i + 1; j <= played_top; j++)
+ 994 for (
int j = i + 1; j <= s_played_top; j++)
- 996 if (played[i]->card->rank == played[j]->card->rank &&
- 997 !card_object_is_selected(played[i]) && !card_object_is_selected(played[j]))
-
- 999 card_object_set_selected(played[i],
true);
- 1000 card_object_set_selected(played[j],
true);
-
-
-
-
-
-
- 1007static inline void select_pair_cards_in_played_hand(
void)
-
-
- 1010 for (
int i = 0; i <= played_top - 1; i++)
-
- 1012 for (
int j = i + 1; j <= played_top; j++)
-
- 1014 if (played[i]->card->rank == played[j]->card->rank)
-
- 1016 card_object_set_selected(played[i],
true);
- 1017 card_object_set_selected(played[j],
true);
-
-
-
-
- 1022 if (card_object_is_selected(played[i]))
-
-
-
-
- 1027static inline void select_highcard_cards_in_played_hand(
void)
-
-
- 1030 int highest_rank_index = 0;
-
- 1032 for (
int i = 0; i <= played_top; i++)
-
- 1034 if (played[i]->card->rank > played[highest_rank_index]->card->rank)
-
- 1036 highest_rank_index = i;
-
-
-
- 1040 card_object_set_selected(played[highest_rank_index],
true);
-
-
-
-
-
-
1050 return g_game_vars.hands == 0 ||
-
1051 g_game_vars.score >= blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
-
+
996 if (s_played_hand[i]->card->rank == s_played_hand[j]->card->rank &&
+
997 !card_object_is_selected(s_played_hand[i]) &&
+
998 !card_object_is_selected(s_played_hand[j]))
+
+
1000 card_object_set_selected(s_played_hand[i],
true);
+
1001 card_object_set_selected(s_played_hand[j],
true);
+
+
+
+
+
+
+
1008static inline void select_pair_cards_in_played_hand(
void)
+
+
+
1011 for (
int i = 0; i <= s_played_top - 1; i++)
+
+
1013 for (
int j = i + 1; j <= s_played_top; j++)
+
+
1015 if (s_played_hand[i]->card->rank == s_played_hand[j]->card->rank)
+
+
1017 card_object_set_selected(s_played_hand[i],
true);
+
1018 card_object_set_selected(s_played_hand[j],
true);
+
+
+
+
+
1023 if (card_object_is_selected(s_played_hand[i]))
+
+
+
+
+
1028static inline void select_highcard_cards_in_played_hand(
void)
+
+
+
1031 int highest_rank_index = 0;
+
+
1033 for (
int i = 0; i <= s_played_top; i++)
+
+
1035 if (s_played_hand[i]->card->rank > s_played_hand[highest_rank_index]->card->rank)
+
+
1037 highest_rank_index = i;
+
+
+
+
1041 card_object_set_selected(s_played_hand[highest_rank_index],
true);
+
+
+
+
+
+
1051 return g_game_vars.hands == 0 ||
+
1052 g_game_vars.score >= blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
+
-
-
1054static inline void game_round_process_input_and_state(
void)
-
-
-
-
1058 game_round_process_hand_select_input();
-
-
1060 else if (play_state == PLAY_ENDING)
-
-
1062 if (g_game_vars.mult > 0)
-
-
-
-
1066 lerped_temp_score = int2fx(temp_score);
-
1067 lerped_score = int2fx(g_game_vars.score);
-
-
1069 if (temp_score > g_game_vars.best_hand_score)
-
1070 g_game_vars.best_hand_score = temp_score;
-
-
1072 display_temp_score(temp_score);
-
-
1074 g_game_vars.chips = 0;
-
1075 g_game_vars.mult = 0;
-
-
-
-
1079 static const int SCORE_CALC_SFX_PITCH_SHIFT = -102;
-
1080 static const int SCORE_CALC_SFX_VOLUME = 204;
-
-
-
-
-
-
1086 SCORE_CALC_SFX_VOLUME
-
-
-
-
1090 else if (play_state == PLAY_ENDED && g_game_vars.timer % FRAMES(TM_SCORE_LERP_INTERVAL) == 0)
-
-
-
-
-
-
-
1097 lerped_temp_score -= int2fx(temp_score * g_game_vars.game_speed) / NUM_SCORE_LERP_STEPS;
-
1098 lerped_score += int2fx(temp_score * g_game_vars.game_speed) / NUM_SCORE_LERP_STEPS;
-
-
1100 if (lerped_temp_score > 0)
-
-
-
-
1104 display_score(fx2uint(lerped_score));
-
1105 display_temp_score(fx2uint(lerped_temp_score));
-
-
-
-
-
-
1111 lerped_temp_score = 0;
-
-
-
-
1115 display_score(g_game_vars.score);
-
-
-
-
-
-
-
-
1126 if (get_deck_top() < 0 ||
get_hand_top() >= g_game_vars.hand_size - 1 ||
-
-
-
-
1130 CardObject* card_object = card_object_new(deck_pop());
-
-
1132 const FIXED deck_x = int2fx(CARD_DRAW_POS.x);
-
1133 const FIXED deck_y = int2fx(CARD_DRAW_POS.y);
-
-
1135 card_object->x = deck_x;
-
1136 card_object->y = deck_y;
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
1055static inline void game_round_process_input_and_state(
void)
+
+
+
+
1059 game_round_process_hand_select_input();
+
+
1061 else if (play_state == PLAY_ENDING)
+
+
1063 if (g_game_vars.mult > 0)
+
+
+
+
1067 s_lerped_temp_score = int2fx(s_temp_score);
+
1068 s_lerped_score = int2fx(g_game_vars.score);
+
+
1070 if (s_temp_score > g_game_vars.best_hand_score)
+
1071 g_game_vars.best_hand_score = s_temp_score;
+
+
1073 display_temp_score(s_temp_score);
+
+
1075 g_game_vars.chips = 0;
+
1076 g_game_vars.mult = 0;
+
+
+
+
1080 static const int SCORE_CALC_SFX_PITCH_SHIFT = -102;
+
1081 static const int SCORE_CALC_SFX_VOLUME = 204;
+
+
+
+
+
+
1087 SCORE_CALC_SFX_VOLUME
+
+
+
+
1091 else if (play_state == PLAY_ENDED && g_game_vars.timer % FRAMES(TM_SCORE_LERP_INTERVAL) == 0)
+
+
+
+
+
+
+
1098 s_lerped_temp_score -= int2fx(s_temp_score * g_game_vars.game_speed) / NUM_SCORE_LERP_STEPS;
+
1099 s_lerped_score += int2fx(s_temp_score * g_game_vars.game_speed) / NUM_SCORE_LERP_STEPS;
+
+
1101 if (s_lerped_temp_score > 0)
+
+
+
+
1105 display_score(fx2uint(s_lerped_score));
+
1106 display_temp_score(fx2uint(s_lerped_temp_score));
+
+
+
+
+
+
1112 s_lerped_temp_score = 0;
+
+
+
+
1116 display_score(g_game_vars.score);
+
+
+
+
+
+
+
+
1127 if (get_deck_top() < 0 ||
get_hand_top() >= g_game_vars.hand_size - 1 ||
+
+
+
+
1131 CardObject* card_object = card_object_new(deck_pop());
+
+
1133 const FIXED deck_x = int2fx(CARD_DRAW_POS.x);
+
1134 const FIXED deck_y = int2fx(CARD_DRAW_POS.y);
+
+
1136 card_object->x = deck_x;
+
1137 card_object->y = deck_y;
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
1151static inline void game_round_process_card_draw(
void)
-
-
1153 if (
get_hand_state() == HAND_DRAW && cards_drawn < g_game_vars.hand_size)
-
-
1155 if (g_game_vars.timer % FRAMES(10) == 0)
-
-
-
-
-
-
-
-
-
-
1165 g_game_vars.timer = TM_ZERO;
-
-
-
-
1169static inline void game_round_discarded_cards_loop(
void)
-
-
-
-
1173 g_game_vars.timer > FRAMES(10))
-
-
-
-
-
-
-
1180 static CardObject* discarded_card_object = NULL;
-
1181 if (discard_top >= 0 && discarded_card_object == NULL)
-
-
1183 discarded_card_object = card_object_new(
discard_pop());
-
-
-
1186 card_object_set_sprite(discarded_card_object, 0);
-
-
-
1189 discarded_card_object->tx = int2fx(204);
-
1190 discarded_card_object->ty = int2fx(112);
-
1191 discarded_card_object->x = int2fx(240);
-
1192 discarded_card_object->y = int2fx(80);
-
-
-
-
1196 if (discarded_card_object->y >= discarded_card_object->ty)
-
-
1198 deck_push(discarded_card_object->card);
-
1199 card_object_destroy(&discarded_card_object);
-
-
-
-
-
-
-
-
-
-
-
1210 if (discard_top == -1 && discarded_card_object == NULL)
-
-
-
-
-
-
-
-
1218static inline void select_cards_in_played_hand(
void)
-
-
-
-
-
-
-
1225 select_highcard_cards_in_played_hand();
-
-
-
1228 select_pair_cards_in_played_hand();
-
-
-
1231 select_two_pair_cards_in_played_hand();
-
-
1233 case THREE_OF_A_KIND:
-
1234 select_three_of_a_kind_cards_in_played_hand();
-
-
1236 case FOUR_OF_A_KIND:
-
1237 select_four_of_a_kind_cards_in_played_hand();
-
-
-
-
-
-
1243 case STRAIGHT_FLUSH:
-
-
-
1246 select_flush_and_straight_cards_in_played_hand();
-
-
-
-
1250 case FIVE_OF_A_KIND:
-
-
-
-
-
1255 select_all_five_cards_in_played_hand();
-
-
-
-
-
1260static inline void cards_in_hand_update_loop(
void)
-
-
-
-
-
-
-
-
-
-
1270 if (hand[i] != NULL)
-
-
1272 FIXED hand_x = int2fx(HAND_START_POS.x);
-
1273 FIXED hand_y = int2fx(HAND_START_POS.y);
-
-
-
-
-
1278 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
-
-
-
-
-
1283 (i == selected_card_idx &&
-
1284 game_round_selection_grid.selection.y == GAME_PLAYING_HAND_SEL_Y);
-
-
1286 if (is_focused && !card_object_is_selected(hand[i]))
-
-
1288 hand_y -= int2fx(CARD_FOCUSED_UNSEL_Y);
-
-
1290 else if (!is_focused && card_object_is_selected(hand[i]))
-
-
1292 hand_y -= int2fx(CARD_UNFOCUSED_SEL_Y);
-
-
1294 else if (is_focused && card_object_is_selected(hand[i]))
-
-
1296 hand_y -= int2fx(CARD_FOCUSED_SEL_Y);
-
-
1298 if (i != selected_card_idx && hand[i]->y > hand_y)
-
-
1300 hand[i]->y = hand_y;
-
-
-
1303 hand[i]->ty = hand_y;
-
-
-
-
1307 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
-
-
-
-
-
1312 case HAND_SHUFFLING:
-
-
-
-
1316 card_in_hand_loop_handle_discard_and_shuffling(
-
-
-
-
-
-
-
-
-
-
-
1327 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
-
-
1329 hand_y += int2fx(24);
-
-
1331 if (card_object_is_selected(hand[i]) && discarded_card ==
false &&
-
1332 g_game_vars.timer % FRAMES(10) == 0)
-
-
1334 card_object_set_selected(hand[i],
false);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1350 discarded_card =
true;
-
-
-
1353 if (i == 0 && discarded_card ==
false && g_game_vars.timer % FRAMES(10) == 0)
-
-
-
-
-
1358 g_game_vars.timer = TM_ZERO;
-
-
-
1361 select_cards_in_played_hand();
-
-
-
-
-
-
1367 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
-
-
1369 hand_y += int2fx(24);
-
-
-
-
1373 hand[i]->tx = hand_x;
-
1374 hand[i]->ty = hand_y;
-
-
-
-
-
1379static inline void game_round_ui_text_update(
void)
-
-
1381 static int last_hand_size = 0;
-
1382 static int last_deck_size = 0;
-
-
-
-
1386 switch (get_current_background())
-
-
1388 case BG_CARD_SELECTING:
-
-
-
1391 "#{P:%d,%d; cx:0x%X000}%2d/%-2ld",
-
1392 HAND_SIZE_RECT_SELECT.left,
-
1393 HAND_SIZE_RECT_SELECT.top,
-
-
-
1396 g_game_vars.hand_size
-
-
-
-
1400 case BG_CARD_PLAYING:
-
-
-
1403 "#{P:%d,%d; cx:0x%X000}%2d/%-2ld",
-
1404 HAND_SIZE_RECT_PLAYING.left,
-
1405 HAND_SIZE_RECT_PLAYING.top,
-
-
-
1408 g_game_vars.hand_size
-
-
-
-
-
-
-
-
-
1417 display_deck_size_max();
-
-
-
1420 last_deck_size = deck_get_size();
-
-
-
-
-
-
-
-
1427 u32 required_score = blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
-
1428 if (curr_score >= required_score && !score_flames_active)
-
-
-
1431 score_flames_active =
true;
-
-
-
1434 if (curr_score < required_score && score_flames_active)
-
-
-
1437 score_flames_active =
false;
-
-
1439 Rect reset_rect = SCORE_FLAME_RESET;
-
-
1441 reset_rect.left += SCORE_FLAME_FRAME_WIDTH;
-
1442 reset_rect.right += SCORE_FLAME_FRAME_WIDTH;
-
-
-
+
+
1152static inline void game_round_process_card_draw(
void)
+
+
1154 if (
get_hand_state() == HAND_DRAW && s_cards_drawn < g_game_vars.hand_size)
+
+
1156 if (g_game_vars.timer % FRAMES(10) == 0)
+
+
+
+
+
+
+
+
+
+
1166 g_game_vars.timer = TM_ZERO;
+
+
+
+
1170static inline void game_round_discarded_cards_loop(
void)
+
+
+
+
1174 g_game_vars.timer > FRAMES(10))
+
+
+
+
+
+
+
1181 static CardObject* discarded_card_object = NULL;
+
1182 if (s_discard_top >= 0 && discarded_card_object == NULL)
+
+
1184 discarded_card_object = card_object_new(
discard_pop());
+
+
+
1187 card_object_set_sprite(discarded_card_object, 0);
+
+
+
1190 discarded_card_object->tx = int2fx(204);
+
1191 discarded_card_object->ty = int2fx(112);
+
1192 discarded_card_object->x = int2fx(240);
+
1193 discarded_card_object->y = int2fx(80);
+
+
+
+
1197 if (discarded_card_object->y >= discarded_card_object->ty)
+
+
1199 deck_push(discarded_card_object->card);
+
1200 card_object_destroy(&discarded_card_object);
+
+
+
+
+
+
+
+
+
+
+
1211 if (s_discard_top == -1 && discarded_card_object == NULL)
+
+
+
+
+
+
+
+
1219static inline void select_cards_in_played_hand(
void)
+
+
+
+
+
+
+
1226 select_highcard_cards_in_played_hand();
+
+
+
1229 select_pair_cards_in_played_hand();
+
+
+
1232 select_two_pair_cards_in_played_hand();
+
+
1234 case THREE_OF_A_KIND:
+
1235 select_three_of_a_kind_cards_in_played_hand();
+
+
1237 case FOUR_OF_A_KIND:
+
1238 select_four_of_a_kind_cards_in_played_hand();
+
+
+
+
+
+
1244 case STRAIGHT_FLUSH:
+
+
+
1247 select_flush_and_straight_cards_in_played_hand();
+
+
+
+
1251 case FIVE_OF_A_KIND:
+
+
+
+
+
1256 select_all_five_cards_in_played_hand();
+
+
+
+
+
1261static inline void cards_in_hand_update_loop(
void)
+
+
+
+
+
+
+
+
+
+
1271 if (hand[i] != NULL)
+
+
1273 FIXED hand_x = int2fx(HAND_START_POS.x);
+
1274 FIXED hand_y = int2fx(HAND_START_POS.y);
+
+
+
+
+
1279 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
+
+
+
+
+
1284 (i == selected_card_idx &&
+
1285 game_round_selection_grid.selection.y == GAME_PLAYING_HAND_SEL_Y);
+
+
1287 if (is_focused && !card_object_is_selected(hand[i]))
+
+
1289 hand_y -= int2fx(CARD_FOCUSED_UNSEL_Y);
+
+
1291 else if (!is_focused && card_object_is_selected(hand[i]))
+
+
1293 hand_y -= int2fx(CARD_UNFOCUSED_SEL_Y);
+
+
1295 else if (is_focused && card_object_is_selected(hand[i]))
+
+
1297 hand_y -= int2fx(CARD_FOCUSED_SEL_Y);
+
+
1299 if (i != selected_card_idx && hand[i]->y > hand_y)
+
+
1301 hand[i]->y = hand_y;
+
+
+
1304 hand[i]->ty = hand_y;
+
+
+
+
1308 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
+
+
+
+
+
1313 case HAND_SHUFFLING:
+
+
+
+
1317 card_in_hand_loop_handle_discard_and_shuffling(
+
+
+
+
+
+
+
+
+
+
+
1328 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
+
+
1330 hand_y += int2fx(24);
+
+
1332 if (card_object_is_selected(hand[i]) && s_discarded_card ==
false &&
+
1333 g_game_vars.timer % FRAMES(10) == 0)
+
+
1335 card_object_set_selected(hand[i],
false);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1351 s_discarded_card =
true;
+
+
+
1354 if (i == 0 && s_discarded_card ==
false && g_game_vars.timer % FRAMES(10) == 0)
+
+
+
+
+
1359 g_game_vars.timer = TM_ZERO;
+
+
+
1362 select_cards_in_played_hand();
+
+
+
+
+
+
1368 hand_x = hand_x + (int2fx(i) - int2fx(
get_hand_top()) / 2) *
+
+
1370 hand_y += int2fx(24);
+
+
+
+
1374 hand[i]->tx = hand_x;
+
1375 hand[i]->ty = hand_y;
+
+
+
+
+
1380static inline void game_round_ui_text_update(
void)
+
+
1382 static int s_last_hand_size = 0;
+
1383 static int s_last_deck_size = 0;
+
+
+
+
1387 switch (get_current_background())
+
+
1389 case BG_CARD_SELECTING:
+
+
+
1392 "#{P:%d,%d; cx:0x%X000}%2d/%-2ld",
+
1393 HAND_SIZE_RECT_SELECT.left,
+
1394 HAND_SIZE_RECT_SELECT.top,
+
+
+
1397 g_game_vars.hand_size
+
+
+
+
1401 case BG_CARD_PLAYING:
+
+
+
1404 "#{P:%d,%d; cx:0x%X000}%2d/%-2ld",
+
1405 HAND_SIZE_RECT_PLAYING.left,
+
1406 HAND_SIZE_RECT_PLAYING.top,
+
+
+
1409 g_game_vars.hand_size
+
+
+
+
+
+
+
+
+
1418 display_deck_size_max();
+
+
+
1421 s_last_deck_size = deck_get_size();
+
+
+
+
+
+
+
+
1428 u32 required_score = blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
+
1429 if (curr_score >= required_score && !s_score_flames_active)
+
+
+
1432 s_score_flames_active =
true;
+
+
+
1435 if (curr_score < required_score && s_score_flames_active)
+
+
+
1438 s_score_flames_active =
false;
+
+
1440 Rect reset_rect = SCORE_FLAME_RESET;
+
+
1442 reset_rect.left += SCORE_FLAME_FRAME_WIDTH;
+
1443 reset_rect.right += SCORE_FLAME_FRAME_WIDTH;
+
+
+
-
-
1447static inline void game_round_process_flaming_score(
void)
-
-
1449 static u8 flame_score_frame = 0;
-
-
1451 if (score_flames_active)
-
-
1453 if (g_game_vars.timer % SCORE_FLAMES_ANIM_FREQ == 0)
-
-
1455 Rect frame_rect = SCORE_FLAME_FRAMES_START;
-
1456 flame_score_frame = (flame_score_frame + 1) % NUM_SCORE_FLAMES_FRAMES;
-
-
-
1459 frame_rect.top += flame_score_frame;
-
1460 frame_rect.bottom += flame_score_frame;
-
-
-
-
1464 frame_rect.left += SCORE_FLAME_FRAME_WIDTH;
-
1465 frame_rect.right += SCORE_FLAME_FRAME_WIDTH;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1488 enum JokerEvent joker_event
-
-
-
-
-
-
-
1495 if (joker_object_score(joker, card_object, joker_event))
-
-
-
-
-
-
+
+
1448static inline void game_round_process_flaming_score(
void)
+
+
1450 static u8 flame_score_frame = 0;
+
+
1452 if (s_score_flames_active)
+
+
1454 if (g_game_vars.timer % SCORE_FLAMES_ANIM_FREQ == 0)
+
+
1456 Rect frame_rect = SCORE_FLAME_FRAMES_START;
+
1457 flame_score_frame = (flame_score_frame + 1) % NUM_SCORE_FLAMES_FRAMES;
+
+
+
1460 frame_rect.top += flame_score_frame;
+
1461 frame_rect.bottom += flame_score_frame;
+
+
+
+
1465 frame_rect.left += SCORE_FLAME_FRAME_WIDTH;
+
1466 frame_rect.right += SCORE_FLAME_FRAME_WIDTH;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1489 enum JokerEvent joker_event
+
+
+
+
+
+
+
1496 if (joker_object_score(joker, card_object, joker_event))
+
+
+
+
+
+
-
-
1503static inline void play_starting_played_cards_update(
int played_idx)
-
-
-
1506 bool card_selected = (played_top < scored_card_index)
-
-
1508 : card_object_is_selected(played[played_top - scored_card_index]);
-
-
1510 if (played_idx == played_top && (g_game_vars.timer % FRAMES(10) == 0 || !card_selected) &&
-
1511 g_game_vars.timer > FRAMES(40))
-
-
1513 scored_card_index--;
-
-
1515 if (scored_card_index == 0)
-
-
-
1518 g_game_vars.timer = TM_ZERO;
-
1519 play_state = PLAY_BEFORE_SCORING;
-
-
-
-
1523 played[played_idx]->tx =
-
1524 int2fx(HAND_PLAY_POS.x) + (int2fx(played_top - played_idx) - int2fx(played_top) / 2) * -27;
-
1525 played[played_idx]->ty = int2fx(HAND_PLAY_POS.y);
-
-
1527 card_selected = card_object_is_selected(played[played_idx]);
-
1528 if (card_selected && played_top - played_idx >= scored_card_index)
-
-
1530 played[played_idx]->ty -= int2fx(10);
-
-
-
-
-
-
-
-
-
-
-
-
-
1549 play_state = PLAY_SCORING_CARDS;
-
-
+
+
1504static inline void play_starting_played_cards_update(
int played_idx)
+
+
+
1507 bool card_selected =
+
1508 (s_played_top < s_scored_card_index)
+
+
1510 : card_object_is_selected(s_played_hand[s_played_top - s_scored_card_index]);
+
+
1512 if (played_idx == s_played_top && (g_game_vars.timer % FRAMES(10) == 0 || !card_selected) &&
+
1513 g_game_vars.timer > FRAMES(40))
+
+
1515 s_scored_card_index--;
+
+
1517 if (s_scored_card_index == 0)
+
+
+
1520 g_game_vars.timer = TM_ZERO;
+
1521 play_state = PLAY_BEFORE_SCORING;
+
+
+
+
1525 s_played_hand[played_idx]->tx =
+
1526 int2fx(HAND_PLAY_POS.x) +
+
1527 (int2fx(s_played_top - played_idx) - int2fx(s_played_top) / 2) * -27;
+
1528 s_played_hand[played_idx]->ty = int2fx(HAND_PLAY_POS.y);
+
+
1530 card_selected = card_object_is_selected(s_played_hand[played_idx]);
+
1531 if (card_selected && s_played_top - played_idx >= s_scored_card_index)
+
+
1533 s_played_hand[played_idx]->ty -= int2fx(10);
+
+
+
+
+
+
+
+
+
+
+
+
+
1552 play_state = PLAY_SCORING_CARDS;
+
+
-
-
-
-
-
1560 if (g_game_vars.timer % FRAMES(30) == 0 && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
1565 while (scored_card_index <= played_top &&
-
1566 !card_object_is_selected(played[scored_card_index]))
-
-
1568 scored_card_index++;
-
-
-
-
1572 if (scored_card_index > played_top)
-
-
-
-
-
-
1578 play_state = PLAY_SCORING_HELD_CARDS;
-
-
-
+
+
+
+
+
1563 if (g_game_vars.timer % FRAMES(30) == 0 && g_game_vars.timer > FRAMES(40))
+
+
+
+
+
1568 while (s_scored_card_index <= s_played_top &&
+
1569 !card_object_is_selected(s_played_hand[s_scored_card_index]))
+
+
1571 s_scored_card_index++;
+
+
+
+
1575 if (s_scored_card_index > s_played_top)
+
+
+
+
+
+
1581 play_state = PLAY_SCORING_HELD_CARDS;
-
-
-
1585 CardObject* scored_card_object = played[scored_card_index];
-
-
1587 if (card_object_is_selected(scored_card_object))
-
-
-
1590 tte_set_pos(fx2int(scored_card_object->x) +
TILE_SIZE, SCORED_CARD_TEXT_Y);
-
-
-
1593 tte_set_special(TTE_BLUE_PB * TTE_SPECIAL_PB_MULT_OFFSET);
+
+
+
+
+
+
1588 CardObject* scored_card_object = s_played_hand[s_scored_card_index];
+
+
1590 if (card_object_is_selected(scored_card_object))
+
+
+
1593 tte_set_pos(fx2int(scored_card_object->x) +
TILE_SIZE, SCORED_CARD_TEXT_Y);
-
1595 u8 card_value = card_get_value(scored_card_object->card);
-
-
-
1598 char score_buffer[INT_MAX_DIGITS + 2];
-
1599 snprintf(score_buffer,
sizeof(score_buffer),
"+%hhu", card_value);
-
1600 tte_write(score_buffer);
-
-
1602 card_object_shake(scored_card_object, SFX_CHIPS_CARD);
-
-
-
-
-
-
-
-
-
-
-
1613 play_state = PLAY_SCORING_CARD_JOKERS;
-
-
-
-
-
-
+
+
1596 tte_set_special(TTE_BLUE_PB * TTE_SPECIAL_PB_MULT_OFFSET);
+
+
1598 u8 card_value = card_get_value(scored_card_object->card);
+
+
+
1601 char score_buffer[INT_MAX_DIGITS + 2];
+
1602 snprintf(score_buffer,
sizeof(score_buffer),
"+%hhu", card_value);
+
1603 tte_write(score_buffer);
+
+
1605 card_object_shake(scored_card_object, SFX_CHIPS_CARD);
+
+
+
+
+
+
+
+
+
+
+
1616 play_state = PLAY_SCORING_CARD_JOKERS;
+
+
-
-
-
-
1629 if (g_game_vars.timer % FRAMES(30) == 0 && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
-
-
-
1637 played[scored_card_index],
-
1638 JOKER_EVENT_ON_CARD_SCORED
-
-
-
-
-
-
-
-
-
1647 &_joker_card_scored_end_itr,
-
1648 played[scored_card_index],
-
1649 JOKER_EVENT_ON_CARD_SCORED_END
-
-
-
-
-
-
-
-
-
1658 play_state = PLAY_SCORING_CARDS;
-
-
-
-
-
-
1664 scored_card_index++;
-
1665 play_state = PLAY_SCORING_CARDS;
-
-
-
-
+
+
+
+
+
+
+
1632 if (g_game_vars.timer % FRAMES(30) == 0 && g_game_vars.timer > FRAMES(40))
+
+
+
+
+
+
+
1639 &s_joker_scored_itr,
+
1640 s_played_hand[s_scored_card_index],
+
1641 JOKER_EVENT_ON_CARD_SCORED
+
+
+
+
+
+
+
+
+
1650 &s_joker_card_scored_end_itr,
+
1651 s_played_hand[s_scored_card_index],
+
1652 JOKER_EVENT_ON_CARD_SCORED_END
+
+
+
+
+
+
+
+
1660 s_retrigger =
false;
+
1661 play_state = PLAY_SCORING_CARDS;
+
+
+
+
+
+
1667 s_scored_card_index++;
+
1668 play_state = PLAY_SCORING_CARDS;
+
-
-
-
-
1679 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
-
-
1686 for (; scored_card_index >= 0; scored_card_index--)
-
-
-
-
1690 hand[scored_card_index],
-
1691 JOKER_EVENT_ON_CARD_HELD
-
-
-
1694 card_object_shake(hand[scored_card_index], SFX_CARD_SELECT);
-
-
-
-
-
-
1700 scored_card_index = 0;
-
-
1702 play_state = PLAY_SCORING_INDEPENDENT_JOKERS;
-
-
-
-
+
+
+
+
+
+
+
1682 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
+
+
+
+
+
+
+
1689 for (; s_scored_card_index >= 0; s_scored_card_index--)
+
+
+
1692 &s_joker_scored_itr,
+
1693 hand[s_scored_card_index],
+
1694 JOKER_EVENT_ON_CARD_HELD
+
+
+
1697 card_object_shake(hand[s_scored_card_index], SFX_CARD_SELECT);
+
+
+
+
+
+
1703 s_scored_card_index = 0;
+
+
1705 play_state = PLAY_SCORING_INDEPENDENT_JOKERS;
+
-
-
-
-
1716 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
1719 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
+
+
+
+
+
+
+
+
-
1729 play_state = PLAY_SCORING_HAND_SCORED_END;
-
+
+
-
-
-
+
1732 play_state = PLAY_SCORING_HAND_SCORED_END;
+
-
-
-
-
1743 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
-
1749 &_joker_round_end_itr,
-
-
1751 JOKER_EVENT_ON_HAND_SCORED_END
-
-
-
-
-
-
-
-
1759 g_game_vars.timer = TM_ZERO;
-
1760 play_state = PLAY_ENDING;
-
-
-
-
+
+
+
+
+
+
+
1746 if (played_idx == 0 && (g_game_vars.timer % FRAMES(30) == 0) && g_game_vars.timer > FRAMES(40))
+
+
+
+
+
+
1752 &s_joker_round_end_itr,
+
+
1754 JOKER_EVENT_ON_HAND_SCORED_END
+
+
+
+
+
+
+
+
1762 g_game_vars.timer = TM_ZERO;
+
1763 play_state = PLAY_ENDING;
+
-
-
-
-
-
1775 bool card_selected = (played_top < scored_card_index)
-
-
1777 : card_object_is_selected(played[played_top - scored_card_index]);
-
-
1779 if (played_idx == played_top && (g_game_vars.timer % FRAMES(10) == 0 || !card_selected) &&
-
1780 g_game_vars.timer > FRAMES(40))
-
-
1782 scored_card_index--;
-
-
-
-
-
1787 int static const CHIPS_ACCUM_SFX_PITCH_RATIO = 2;
-
-
1789 if (scored_card_index == 0)
-
-
-
-
-
-
-
1796 g_game_vars.timer = TM_ZERO;
-
1797 play_state = PLAY_ENDED;
-
-
-
-
1801 if (card_object_is_selected(played[played_idx]) && played_top - played_idx >= scored_card_index)
-
-
1803 played[played_idx]->ty = int2fx(HAND_PLAY_POS.y);
-
-
+
+
-
-
-
-
-
1817 if (!discarded_card && g_game_vars.timer > FRAMES(40))
-
-
-
-
-
-
-
-
-
-
1827 sound_played =
true;
-
-
-
-
1831 if (played[played_idx]->x >= int2fx(CARD_DISCARD_PNT.x))
-
-
-
1834 card_object_destroy(&played[played_idx]);
-
-
-
1837 sound_played =
false;
-
-
-
1840 if (played_idx == played_top)
-
-
-
-
-
-
-
-
-
-
-
1851 play_state = PLAY_STARTING;
-
-
-
-
1855 scored_card_index = 0;
-
-
1857 g_game_vars.timer = TM_ZERO;
-
-
-
-
-
-
-
1864 played[played_idx]->tx = int2fx(CARD_DISCARD_PNT.x);
-
1865 discarded_card =
true;
-
+
+
+
+
+
+
1778 bool card_selected =
+
1779 (s_played_top < s_scored_card_index)
+
+
1781 : card_object_is_selected(s_played_hand[s_played_top - s_scored_card_index]);
+
+
1783 if (played_idx == s_played_top && (g_game_vars.timer % FRAMES(10) == 0 || !card_selected) &&
+
1784 g_game_vars.timer > FRAMES(40))
+
+
1786 s_scored_card_index--;
+
+
+
+
+
1791 int static const CHIPS_ACCUM_SFX_PITCH_RATIO = 2;
+
+
1793 if (s_scored_card_index == 0)
+
+
+
+
+
+
+
1800 g_game_vars.timer = TM_ZERO;
+
1801 play_state = PLAY_ENDED;
+
+
+
+
1805 if (card_object_is_selected(s_played_hand[played_idx]) &&
+
1806 s_played_top - played_idx >= s_scored_card_index)
+
+
1808 s_played_hand[played_idx]->ty = int2fx(HAND_PLAY_POS.y);
+
+
+
+
+
+
+
+
1822 if (!s_discarded_card && g_game_vars.timer > FRAMES(40))
+
+
+
1825 if (!s_sound_played)
+
+
+
+
+
+
+
1832 s_sound_played =
true;
+
+
+
+
1836 if (s_played_hand[played_idx]->x >= int2fx(CARD_DISCARD_PNT.x))
+
+
+
1839 card_object_destroy(&s_played_hand[played_idx]);
+
+
+
1842 s_sound_played =
false;
+
+
+
1845 if (played_idx == s_played_top)
+
+
+
+
+
+
+
+
+
+
+
1856 play_state = PLAY_STARTING;
+
+
+
+
1860 s_scored_card_index = 0;
+
+
1862 g_game_vars.timer = TM_ZERO;
+
+
+
+
-
-
+
+
1869 s_played_hand[played_idx]->tx = int2fx(CARD_DISCARD_PNT.x);
+
1870 s_discarded_card =
true;
+
+
+
+
-
-
1871static inline void played_cards_update_loop(
void)
-
-
-
-
-
1876 for (
int played_idx = 0; played_idx <= played_top; played_idx++)
-
-
1878 if (played[played_idx] == NULL)
-
-
-
-
-
1883 if (card_object_get_sprite(played[played_idx]) == NULL)
+
+
1876static inline void played_cards_update_loop(
void)
+
+
+
+
+
1881 for (
int played_idx = 0; played_idx <= s_played_top; played_idx++)
+
+
1883 if (s_played_hand[played_idx] == NULL)
-
-
1886 card_object_set_sprite(played[played_idx], played_idx + MAX_HAND_SIZE);
-
-
-
-
-
-
-
1893 play_starting_played_cards_update(played_idx);
-
-
-
1896 case PLAY_BEFORE_SCORING:
+
+
+
+
1888 if (card_object_get_sprite(s_played_hand[played_idx]) == NULL)
+
+
+
1891 card_object_set_sprite(s_played_hand[played_idx], played_idx + MAX_HAND_SIZE);
+
+
+
+
+
-
-
-
-
-
-
-
1904 case PLAY_SCORING_CARDS:
-
-
-
-
-
-
-
-
1912 case PLAY_SCORING_CARD_JOKERS:
-
-
-
-
-
-
-
-
1920 case PLAY_SCORING_HELD_CARDS:
-
-
-
-
-
-
-
-
1928 case PLAY_SCORING_INDEPENDENT_JOKERS:
-
-
-
-
-
-
-
-
1936 case PLAY_SCORING_HAND_SCORED_END:
-
-
-
-
-
-
-
-
-
-
+
1898 play_starting_played_cards_update(played_idx);
+
+
+
1901 case PLAY_BEFORE_SCORING:
+
+
+
+
+
+
+
+
1909 case PLAY_SCORING_CARDS:
+
+
+
+
+
+
+
+
1917 case PLAY_SCORING_CARD_JOKERS:
+
+
+
+
+
+
+
+
1925 case PLAY_SCORING_HELD_CARDS:
+
+
+
+
+
+
+
+
1933 case PLAY_SCORING_INDEPENDENT_JOKERS:
+
+
+
+
+
+
+
+
1941 case PLAY_SCORING_HAND_SCORED_END:
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
1962 played[played_idx]->tscale = FIX_ONE;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1979 g_game_vars.playing_blind_token = blind_token_new(
-
1980 g_game_vars.current_blind,
-
1981 CUR_BLIND_TOKEN_POS.x,
-
1982 CUR_BLIND_TOKEN_POS.y,
-
1983 PLAYING_BLIND_TOKEN_LAYER
-
-
-
-
-
-
-
-
1991 g_game_vars.round_end_blind_token = blind_token_new(
-
1992 g_game_vars.current_blind,
-
-
-
1995 ROUND_END_BLIND_TOKEN_LAYER
-
-
-
1998 if (g_game_vars.round_end_blind_token != NULL)
-
-
2000 obj_hide(g_game_vars.round_end_blind_token->
obj);
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1967 s_played_hand[played_idx]->tscale = FIX_ONE;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1984 g_game_vars.playing_blind_token = blind_token_new(
+
1985 g_game_vars.current_blind,
+
1986 CUR_BLIND_TOKEN_POS.x,
+
1987 CUR_BLIND_TOKEN_POS.y,
+
1988 PLAYING_BLIND_TOKEN_LAYER
+
+
+
+
+
+
+
+
1996 g_game_vars.round_end_blind_token = blind_token_new(
+
1997 g_game_vars.current_blind,
+
+
+
2000 ROUND_END_BLIND_TOKEN_LAYER
+
-
2003 Rect blind_req_text_rect = BLIND_REQ_TEXT_RECT;
-
2004 u32 blind_requirement = blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
-
-
2006 char blind_req_str_buff[UINT_MAX_DIGITS + 1];
+
2003 if (g_game_vars.round_end_blind_token != NULL)
+
+
2005 obj_hide(g_game_vars.round_end_blind_token->
obj);
+
-
-
-
-
-
-
-
-
-
-
-
2018 "#{P:%d,%d; cx:0x%X000}%s",
-
2019 blind_req_text_rect.left,
-
2020 blind_req_text_rect.top,
-
-
-
-
-
2025 "#{P:%d,%d; cx:0x%X000}$%d",
-
2026 BLIND_REWARD_RECT.left,
-
2027 BLIND_REWARD_RECT.top,
-
-
2029 blind_get_reward(g_game_vars.current_blind)
-
-
-
-
-
-
-
-
-
2038 game_round_selection_grid.selection = GAME_PLAYING_INIT_SEL;
-
+
2008 Rect blind_req_text_rect = BLIND_REQ_TEXT_RECT;
+
2009 u32 blind_requirement = blind_get_requirement(g_game_vars.current_blind, g_game_vars.ante);
+
+
2011 char blind_req_str_buff[UINT_MAX_DIGITS + 1];
+
+
+
+
+
+
+
+
+
+
+
+
2023 "#{P:%d,%d; cx:0x%X000}%s",
+
2024 blind_req_text_rect.left,
+
2025 blind_req_text_rect.top,
+
+
+
+
+
2030 "#{P:%d,%d; cx:0x%X000}$%d",
+
2031 BLIND_REWARD_RECT.left,
+
2032 BLIND_REWARD_RECT.top,
+
+
2034 blind_get_reward(g_game_vars.current_blind)
+
+
+
+
+
+
+
+
+
2043 game_round_selection_grid.selection = GAME_PLAYING_INIT_SEL;
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
2054 game_round_process_input_and_state();
-
-
-
-
2058 game_round_process_card_draw();
-
-
2060 game_round_discarded_cards_loop();
-
-
2062 discarded_card =
false;
-
-
2064 cards_in_hand_update_loop();
-
2065 played_cards_update_loop();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
2059 game_round_process_input_and_state();
+
+
+
+
2063 game_round_process_card_draw();
+
+
2065 game_round_discarded_cards_loop();
-
2067 game_round_ui_text_update();
+
2067 s_discarded_card =
false;
-
-
2070 game_round_process_flaming_score();
-
+
2069 cards_in_hand_update_loop();
+
2070 played_cards_update_loop();
+
+
2072 game_round_ui_text_update();
+
+
+
2075 game_round_process_flaming_score();
+
Utilities for using maxmod to play sound effects.
#define MM_BASE_PITCH_RATE
The default pitch rate for the sound effect played.
@@ -2190,41 +2195,41 @@ $(document).ready(function(){initNavTree('round_8c_source.html',''); initResizab
void * list_itr_next(ListItr *itr)
ListItr list_itr_create(List *list)
u32 rng_get_u32(void)
Get the next "randomly" generated number in the sequence from the current seed.
-
static bool game_round_is_over(void)
Determines if the round is over, be it because we lost or won the round.
-
static void card_draw(void)
Draw the next card at the top of the Deck and play a little Sprite animation to position it in our ha...
+
static bool game_round_is_over(void)
Determines if the round is over, be it because we lost or won the round.
+
static void card_draw(void)
Draw the next card at the top of the Deck and play a little Sprite animation to position it in our ha...
static void discard_push(Card *card)
Push a new card to discard at the end of the associated array.
static void game_round_handle_round_over(void)
Evaluates if we have won or lost when we can no longer play so that we land on the correct Game Over ...
-
static bool play_scoring_independent_jokers_update(int played_idx)
Score Jokers normally for event JOKER_EVENT_INDEPENDENT.
+
static bool play_scoring_independent_jokers_update(int played_idx)
Score Jokers normally for event JOKER_EVENT_INDEPENDENT.
static void game_round_play_hand_on_pressed(void)
"Play" button implementation.
int get_scored_card_index(void)
Get the index of the card that is currently being scored.
static void played_push(CardObject *card_object)
Push a new card to play at the end of the associated array.
int get_discard_top(void)
Get the index of the last discarded card.
-
static bool play_before_scoring_cards_update(void)
Returns true if the Jokers scoring loop has returned early for event JOKER_EVENT_ON_HAND_PLAYED.
+
static bool play_before_scoring_cards_update(void)
Returns true if the Jokers scoring loop has returned early for event JOKER_EVENT_ON_HAND_PLAYED.
int get_played_size(void)
Get the number of cards played.
void set_retrigger(bool new_retrigger)
Set whether the current card should get triggered again.
static void game_round_sort_by_suit_on_pressed(void)
"Suit" sorting button implementation.
-
static bool check_and_score_joker_for_event(ListItr *starting_joker_itr, CardObject *card_object, enum JokerEvent joker_event)
Iterate over the Jokers List until we encounter one that scores for the specified event.
-
void game_round_on_init(void)
Round state initialization.
-
static void play_ending_played_cards_update(int played_idx)
This is the reverse of PLAY_STARTING. The cards get reset back to their neutral position sequentially...
+
static bool check_and_score_joker_for_event(ListItr *starting_joker_itr, CardObject *card_object, enum JokerEvent joker_event)
Iterate over the Jokers List until we encounter one that scores for the specified event.
+
void game_round_on_init(void)
Round state initialization.
+
static void play_ending_played_cards_update(int played_idx)
This is the reverse of PLAY_STARTING. The cards get reset back to their neutral position sequentially...
static void game_round_execute_discard(void)
Triggers the discard of the currently selected cards in hand.
static void game_round_execute_play_hand(void)
Triggers the playing of the currently selected cards in hand.
-
void game_round_on_update(void)
Round state update.
+
void game_round_on_update(void)
Round state update.
static Card * discard_pop()
Remove and recover the last discarded card.
-
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
+
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
static bool can_play_hand(void)
Determines whether the "Play" button can be pressed or not.
-
static bool play_scoring_card_jokers_update(void)
Activate Jokers for event JOKER_EVENT_ON_CARD_SCORED_END for the previous scored card,...
+
static bool play_scoring_card_jokers_update(void)
Activate Jokers for event JOKER_EVENT_ON_CARD_SCORED_END for the previous scored card,...
void game_round_change_background_playing(void)
Change to the round card playing background.
static bool can_discard_hand(void)
Determines whether the "Discard" button can be pressed or not.
static void game_round_discard_on_pressed(void)
"Discard" button implementation.
-
static bool play_scoring_held_cards_update(int played_idx)
Activate Jokers for event JOKER_EVENT_ON_CARD_HELD for the previous scored card, if any.
+
static bool play_scoring_held_cards_update(int played_idx)
Activate Jokers for event JOKER_EVENT_ON_CARD_HELD for the previous scored card, if any.
int get_played_top(void)
Get the index of the last played card.
static int hand_sel_idx_to_card_idx(int selection_index)
Converts a selection index from the selection grid into a card index within the hand array.
-
static bool play_scoring_hand_scored_end_update(int played_idx)
Trigger all Jokers for event JOKER_EVENT_ON_HAND_SCORED_END once they are done scoring.
+
static bool play_scoring_hand_scored_end_update(int played_idx)
Trigger all Jokers for event JOKER_EVENT_ON_HAND_SCORED_END once they are done scoring.
static GBAL_UNUSED void get_played_distribution(u8 ranks_out[NUM_RANKS], u8 suits_out[NUM_SUITS])
Outputs the distribution of ranks and suits in the played stack.
static void game_round_sort_by_rank_on_pressed(void)
"Rank" sorting button implementation.
void game_round_change_background_selecting(void)
Change to the round card selection background.
-
static bool play_scoring_cards_update(void)
Score all played cards in order, then Jokers after each one.
-
static bool play_ended_played_cards_update(int played_idx)
Returns true if the card at index played_idx has been discarded. Basically a copy of HAND_DISCARD.
+
static bool play_scoring_cards_update(void)
Score all played cards in order, then Jokers after each one.
+
static bool play_ended_played_cards_update(int played_idx)
Returns true if the card at index played_idx has been discarded. Basically a copy of HAND_DISCARD.
API relative to the Rounds we play.
An implementation for a selection grid that handles directional selection.
void selection_grid_move_selection_vert(SelectionGrid *selection_grid, int direction_tribool)
Moves the selection vertically within the selection grid.
diff --git a/round_8h.html b/round_8h.html
index c6d87fcd..8b81f5a3 100644
--- a/round_8h.html
+++ b/round_8h.html
@@ -242,7 +242,7 @@ Functions
Round state initialization.
-
Definition at line 1970 of file round.c.
+
Definition at line 1975 of file round.c.
@@ -264,7 +264,7 @@ Functions
Round state update.
-
Definition at line 2041 of file round.c.
+
Definition at line 2046 of file round.c.
@@ -406,7 +406,7 @@ Functions
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 1424 of file round.c.
+
Definition at line 1425 of file round.c.
diff --git a/round_8h_source.html b/round_8h_source.html
index 43c9de51..89b67df0 100644
--- a/round_8h_source.html
+++ b/round_8h_source.html
@@ -169,9 +169,9 @@ $(document).ready(function(){initNavTree('round_8h_source.html',''); initResizab
int get_discard_top(void)
Get the index of the last discarded card.
int get_played_size(void)
Get the number of cards played.
void set_retrigger(bool new_retrigger)
Set whether the current card should get triggered again.
-
void game_round_on_init(void)
Round state initialization.
-
void game_round_on_update(void)
Round state update.
-
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
+
void game_round_on_init(void)
Round state initialization.
+
void game_round_on_update(void)
Round state update.
+
void toggle_flaming_score(void)
Checks whether the score that would result from the current Chips and Mult exceeds the current Blind'...
void game_round_change_background_playing(void)
Change to the round card playing background.
int get_played_top(void)
Get the index of the last played card.
void game_round_change_background_selecting(void)
Change to the round card selection background.
diff --git a/run__setup_8c.html b/run__setup_8c.html
index 94582aa6..80c30076 100644
--- a/run__setup_8c.html
+++ b/run__setup_8c.html
@@ -575,12 +575,12 @@ Variables
| |
| static Button | choose_seed_bottom_buttons [2] |
| |
-
| static const char | keyboard_buttons_to_char [KEYBOARD_HEIGHT *KEYBOARD_WIDTH] |
-
| |
-
| static char | seed_str [BASE36_MAX_DIGITS+1] = {'\0'} |
-
| |
-
| static u8 | seed_cursor_pos = 0 |
-
| |
+
| static const char | KEYBOARD_BUTTONS_TO_CHAR [KEYBOARD_HEIGHT *KEYBOARD_WIDTH] |
+
| |
+
| static char | s_seed_str [BASE36_MAX_DIGITS+1] = {'\0'} |
+
| |
+
| static u8 | s_seed_cursor_pos = 0 |
+
| |
Setup Run menu state functions implementation.
@@ -3166,8 +3166,8 @@ Variables
-
-
◆ keyboard_buttons_to_char
+
+
◆ KEYBOARD_BUTTONS_TO_CHAR
@@ -3176,7 +3176,7 @@ Variables
- | const char keyboard_buttons_to_char[KEYBOARD_HEIGHT *KEYBOARD_WIDTH] |
+ const char KEYBOARD_BUTTONS_TO_CHAR[KEYBOARD_HEIGHT *KEYBOARD_WIDTH] |
|
@@ -3924,8 +3924,8 @@ Variables
-
-
◆ seed_cursor_pos
+
+
◆ s_seed_cursor_pos
@@ -3934,7 +3934,7 @@ Variables
- | u8 seed_cursor_pos = 0 |
+ u8 s_seed_cursor_pos = 0 |
|
@@ -3948,8 +3948,8 @@ Variables
-
-
◆ seed_str
+
+
◆ s_seed_str
@@ -3958,7 +3958,7 @@ Variables
- | char seed_str[BASE36_MAX_DIGITS+1] = {'\0'} |
+ char s_seed_str[BASE36_MAX_DIGITS+1] = {'\0'} |
|
diff --git a/run__setup_8c_source.html b/run__setup_8c_source.html
index bfe4c03a..e4c931b5 100644
--- a/run__setup_8c_source.html
+++ b/run__setup_8c_source.html
@@ -663,7 +663,7 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
531static const char keyboard_buttons_to_char[KEYBOARD_HEIGHT * KEYBOARD_WIDTH] = {
+
531static const char KEYBOARD_BUTTONS_TO_CHAR[KEYBOARD_HEIGHT * KEYBOARD_WIDTH] = {
532 '1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'0',
533 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
534 'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
@@ -672,8 +672,8 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
540static char seed_str[BASE36_MAX_DIGITS + 1] = {
'\0'};
-
541static u8 seed_cursor_pos = 0;
+
540static char s_seed_str[BASE36_MAX_DIGITS + 1] = {
'\0'};
+
541static u8 s_seed_cursor_pos = 0;
@@ -720,14 +720,14 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
582 if (g_game_vars.rng_info.
seed == UNDEFINED)
-
585 memset(seed_str,
'\0', BASE36_MAX_DIGITS + 1);
-
+
585 memset(s_seed_str,
'\0', BASE36_MAX_DIGITS + 1);
+
586 s_seed_cursor_pos = 0;
-
-
592 seed_cursor_pos = BASE36_MAX_DIGITS;
+
+
592 s_seed_cursor_pos = BASE36_MAX_DIGITS;
@@ -925,7 +925,7 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
808 RUN_SETUP_SEED_FIELD_TEXT_POS.y,
810 BASE36_MAX_DIGITS + 1,
-
+
@@ -1024,19 +1024,19 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
+
-
925 seed_cursor_pos = BASE36_MAX_DIGITS;
+
925 s_seed_cursor_pos = BASE36_MAX_DIGITS;
-
933 if (seed_cursor_pos == 0)
+
933 if (s_seed_cursor_pos == 0)
-
936 seed_str[--seed_cursor_pos] =
'\0';
+
936 s_seed_str[--s_seed_cursor_pos] =
'\0';
@@ -1044,10 +1044,10 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
947 if (seed_cursor_pos >= BASE36_MAX_DIGITS)
+
947 if (s_seed_cursor_pos >= BASE36_MAX_DIGITS)
-
950 seed_str[seed_cursor_pos++] = keyboard_buttons_to_char[key];
+
950 s_seed_str[s_seed_cursor_pos++] = KEYBOARD_BUTTONS_TO_CHAR[key];
@@ -1070,8 +1070,8 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
979 if (seed_cursor_pos > BASE36_MAX_DIGITS)
-
980 seed_cursor_pos = BASE36_MAX_DIGITS;
+
979 if (s_seed_cursor_pos > BASE36_MAX_DIGITS)
+
980 s_seed_cursor_pos = BASE36_MAX_DIGITS;
982 if (key_hit(DESELECT_CARDS))
@@ -1260,7 +1260,7 @@ $(document).ready(function(){initNavTree('run__setup_8c_source.html',''); initRe
-
+
diff --git a/search/all_7.js b/search/all_7.js
index 4d123703..5f81b139 100644
--- a/search/all_7.js
+++ b/search/all_7.js
@@ -1,7 +1,7 @@
var searchData=
[
['data_0',['data',['../structListNode.html#a735984d41155bc1032e09bece8f8d66d',1,'ListNode']]],
- ['deck_5fnames_1',['deck_names',['../deck__types_8c.html#aa69c0508a53c09b17c5283a1e5be751a',1,'deck_types.c']]],
+ ['deck_5fnames_1',['DECK_NAMES',['../deck__types_8c.html#aca3bc778faeef112f513ae0a84c5e378',1,'deck_types.c']]],
['deck_5fon_5fpressed_2',['deck_on_pressed',['../run__setup_8c.html#adfb29cc263e0dfc5f4140631a2ba3dbc',1,'run_setup.c']]],
['deck_5ftypes_2ec_3',['deck_types.c',['../deck__types_8c.html',1,'']]],
['deck_5ftypes_2eh_4',['deck_types.h',['../deck__types_8h.html',1,'']]],
diff --git a/search/variables_3.js b/search/variables_3.js
index aefac1d5..139a8cf4 100644
--- a/search/variables_3.js
+++ b/search/variables_3.js
@@ -1,6 +1,6 @@
var searchData=
[
['data_0',['data',['../structListNode.html#a735984d41155bc1032e09bece8f8d66d',1,'ListNode']]],
- ['deck_5fnames_1',['deck_names',['../deck__types_8c.html#aa69c0508a53c09b17c5283a1e5be751a',1,'deck_types.c']]],
+ ['deck_5fnames_1',['DECK_NAMES',['../deck__types_8c.html#aca3bc778faeef112f513ae0a84c5e378',1,'deck_types.c']]],
['direction_2',['direction',['../structListItr.html#aa41b077984fb967ea256625056b09145',1,'ListItr']]]
];
diff --git a/shop_8c.html b/shop_8c.html
index 1ea952be..ea9f5fbc 100644
--- a/shop_8c.html
+++ b/shop_8c.html
@@ -352,18 +352,18 @@ Variables
| |
| static Button | reroll_button |
| |
-
| static int | timer |
-
| |
-
| static int | reroll_cost = REROLL_BASE_COST |
-
| |
-
| static JokerObject * | description_card = NULL |
-
| |
-
| static FIXED | description_card_original_x_pos = UNDEFINED |
-
| |
-
| static FIXED | description_card_original_y_pos = UNDEFINED |
-
| |
-
| static List * | description_card_original_list = NULL |
-
| |
+
| static int | s_timer |
+
| |
+
| static int | s_reroll_cost = REROLL_BASE_COST |
+
| |
+
| static JokerObject * | s_description_card = NULL |
+
| |
+
| static FIXED | s_description_card_original_x_pos = UNDEFINED |
+
| |
+
| static FIXED | s_description_card_original_y_pos = UNDEFINED |
+
| |
+
| static List * | s_description_card_original_list = NULL |
+
| |
Shop state functions implementation.
@@ -931,7 +931,7 @@ Variables
@@ -991,7 +991,7 @@ Variables
Cycling shop lights animation substate update.
-Definition at line 856 of file shop.c.
+Definition at line 857 of file shop.c.
@@ -1013,7 +1013,7 @@ Variables
Shop cleanup.
-Definition at line 892 of file shop.c.
+Definition at line 893 of file shop.c.
@@ -1057,7 +1057,7 @@ Variables
Shop state update.
-Definition at line 882 of file shop.c.
+Definition at line 883 of file shop.c.
@@ -1087,7 +1087,7 @@ Variables
Outro sequence substate update. This makes the menu and shop icon go out of frame.
-Definition at line 814 of file shop.c.
+Definition at line 815 of file shop.c.
@@ -1681,102 +1681,6 @@ Variables
Definition at line 82 of file shop.c.
-
-
-
-◆ description_card
-
-
-
-
-
Definition at line 175 of file shop.c.
-
-
-
-
-◆ description_card_original_list
-
-
-
-
-
-
-
-
- | List* description_card_original_list = NULL |
-
-
- |
-
-static |
-
-
-
-
-
Definition at line 178 of file shop.c.
-
-
-
-
-◆ description_card_original_x_pos
-
-
-
-
-
-
-
-
- | FIXED description_card_original_x_pos = UNDEFINED |
-
-
- |
-
-static |
-
-
-
-
-
Definition at line 176 of file shop.c.
-
-
-
-
-◆ description_card_original_y_pos
-
-
-
-
-
-
-
-
- | FIXED description_card_original_y_pos = UNDEFINED |
-
-
- |
-
-static |
-
-
-
@@ -1931,8 +1835,8 @@ Variables
-
-◆ reroll_cost
+
+◆ s_description_card
@@ -1941,7 +1845,103 @@ Variables
- | int reroll_cost = REROLL_BASE_COST |
+ JokerObject* s_description_card = NULL |
+
+
+ |
+
+static |
+
+
+
+
+
Definition at line 175 of file shop.c.
+
+
+
+
+◆ s_description_card_original_list
+
+
+
+
+
+
+
+
+ | List* s_description_card_original_list = NULL |
+
+
+ |
+
+static |
+
+
+
+
+
Definition at line 178 of file shop.c.
+
+
+
+
+◆ s_description_card_original_x_pos
+
+
+
+
+
+
+
+
+ | FIXED s_description_card_original_x_pos = UNDEFINED |
+
+
+ |
+
+static |
+
+
+
+
+
Definition at line 176 of file shop.c.
+
+
+
+
+◆ s_description_card_original_y_pos
+
+
+
+
+
+
+
+
+ | FIXED s_description_card_original_y_pos = UNDEFINED |
+
+
+ |
+
+static |
+
+
+
+
+
Definition at line 177 of file shop.c.
+
+
+
+
+◆ s_reroll_cost
+
+
+
+
+
+
+
+
+ | int s_reroll_cost = REROLL_BASE_COST |
|
@@ -1977,6 +1977,30 @@ Variables
Definition at line 91 of file shop.c.
+
+
+
+◆ s_timer
+
+
@@ -2267,34 +2291,10 @@ Variables
}
static void game_shop_process_user_input(void)
Handle user inputs logic in the Shop though a SelectionGrid.
static void game_shop_intro(void)
Intro sequence (menu and shop icon coming into frame)
-static void game_shop_outro(void)
Outro sequence substate update. This makes the menu and shop icon go out of frame.
+static void game_shop_outro(void)
Outro sequence substate update. This makes the menu and shop icon go out of frame.
Definition at line 109 of file shop.c.
-
-
-
-◆ timer
-
-
diff --git a/shop_8c_source.html b/shop_8c_source.html
index 1b21c356..492131b5 100644
--- a/shop_8c_source.html
+++ b/shop_8c_source.html
@@ -300,22 +300,22 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
+
- 170static int reroll_cost = REROLL_BASE_COST;
+ 170static int s_reroll_cost = REROLL_BASE_COST;
-
- 176static FIXED description_card_original_x_pos = UNDEFINED;
- 177static FIXED description_card_original_y_pos = UNDEFINED;
- 178static List* description_card_original_list = NULL;
+
+ 176static FIXED s_description_card_original_x_pos = UNDEFINED;
+ 177static FIXED s_description_card_original_y_pos = UNDEFINED;
+ 178static List* s_description_card_original_list = NULL;
-
182 return description_card;
+
182 return s_description_card;
@@ -359,7 +359,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
+
@@ -421,14 +421,14 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
- 287 if (timer == TM_CREATE_SHOP_ITEMS_WAIT)
+ 287 if (s_timer == TM_CREATE_SHOP_ITEMS_WAIT)
- 292 if (timer >= TM_SHIFT_SHOP_ICON_WAIT)
+ 292 if (s_timer >= TM_SHIFT_SHOP_ICON_WAIT)
- 294 int timer_offset = timer - 6;
+ 294 int timer_offset = s_timer - 6;
297 for (
int y = 0; y < timer_offset; y++)
@@ -444,10 +444,10 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
- 310 if (timer == TM_END_GAME_SHOP_INTRO)
+ 310 if (s_timer == TM_END_GAME_SHOP_INTRO)
-
+
@@ -455,7 +455,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
318 SHOP_REROLL_RECT.left,
319 SHOP_REROLL_RECT.top,
-
+
@@ -596,7 +596,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
473 g_game_vars.money -= reroll_cost;
+
473 g_game_vars.money -= s_reroll_cost;
476 List* shop_items_list = &s_shop_items_list;
@@ -629,13 +629,13 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
+
508 "#{P:%d,%d; cx:0x%X000}$%d",
509 SHOP_REROLL_RECT.left,
510 SHOP_REROLL_RECT.top,
-
+
@@ -656,8 +656,8 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
- 534 reroll_cost = REROLL_BASE_COST;
+
+ 534 s_reroll_cost = REROLL_BASE_COST;
536 pal_bg_mem[NEXT_ROUND_BTN_SELECTED_BORDER_PAL_IDX] = pal_bg_mem[SHOP_PANEL_SHADOW_PAL_IDX];
@@ -670,7 +670,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
545static bool reroll_can_be_pressed(
void)
- 547 return g_game_vars.money >= reroll_cost;
+ 547 return g_game_vars.money >= s_reroll_cost;
@@ -686,7 +686,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
565 description_card_original_list = get_jokers_list();
+
565 s_description_card_original_list = get_jokers_list();
566 tmp_card =
list_get_at_idx(get_jokers_list(), shop_selection_grid.selection.x);
@@ -694,7 +694,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
573 description_card_original_list = &s_shop_items_list;
+
573 s_description_card_original_list = &s_shop_items_list;
574 tmp_card = (shop_selection_grid.selection.x > 0)
575 ?
list_get_at_idx(&s_shop_items_list, shop_selection_grid.selection.x - 1)
@@ -705,7 +705,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
584 description_card_original_list = NULL;
+
584 s_description_card_original_list = NULL;
@@ -716,11 +716,11 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
593 if (tmp_card != NULL && tmp_card->vx == 0 && tmp_card->vy == 0 && key_held(DESELECT_CARDS))
-
595 description_card = tmp_card;
-
596 description_card_original_x_pos = description_card->x;
-
597 description_card_original_y_pos = description_card->y;
+
595 s_description_card = tmp_card;
+
596 s_description_card_original_x_pos = s_description_card->x;
+
597 s_description_card_original_y_pos = s_description_card->y;
-
+
@@ -729,7 +729,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
604static void game_shop_show_card_desc(
void)
-
+
@@ -744,7 +744,7 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
622 if (joker_object != description_card)
+
622 if (joker_object != s_description_card)
623 joker_object->ty -= int2fx(OWNED_CARDS_HIDE_Y_OFFSET);
@@ -752,21 +752,21 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
630 if (joker_object != description_card)
+
630 if (joker_object != s_description_card)
631 joker_object->ty = int2fx(SHOP_JOKER_SPRITES_INIT_POS.y +
TILE_SIZE);
-
636 description_card->tx = int2fx(CARD_DESCRIPTION_SPRITE_POS.x);
-
637 description_card->ty = int2fx(CARD_DESCRIPTION_SPRITE_POS.y);
+
636 s_description_card->tx = int2fx(CARD_DESCRIPTION_SPRITE_POS.x);
+
637 s_description_card->ty = int2fx(CARD_DESCRIPTION_SPRITE_POS.y);
-
641 if (timer <= TM_SHOW_CARD_DESC_WAIT)
+
641 if (s_timer <= TM_SHOW_CARD_DESC_WAIT)
-
644 if (TM_SHOW_CARD_DESC_WAIT - timer < 5)
+
644 if (TM_SHOW_CARD_DESC_WAIT - s_timer < 5)
@@ -775,13 +775,13 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
653 else if (timer == TM_SHOW_CARD_DESC_WAIT + 1)
+
653 else if (s_timer == TM_SHOW_CARD_DESC_WAIT + 1)
-
656 const JokerInfo* info = get_joker_registry_entry(description_card->joker->id);
+
656 const JokerInfo* info = get_joker_registry_entry(s_description_card->joker->id);
657 int desc_bottom_offset =
658 CARD_DESC_MAX_TEXT_HEIGHT -
-
659 info->joker_print_desc(description_card->joker, CARD_DESC_TEXT_RECT);
+
659 info->joker_print_desc(s_description_card->joker, CARD_DESC_TEXT_RECT);
@@ -817,222 +817,223 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
-
695 else if (description_card->vx == 0 && description_card->vy == 0 && !key_held(DESELECT_CARDS))
-
-
-
-
-
-
-
702static void game_shop_hide_card_desc(
void)
-
-
-
705 static bool owned_joker_price_printed =
false;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
720 OWNED_CONSUMABLES_PANEL_RECT,
-
721 OWNED_CARDS_PANEL_3X3_SRC_POS
-
-
-
-
-
-
-
-
-
-
731 if (joker_object != description_card)
-
732 joker_object->ty = int2fx(HELD_JOKERS_POS.y);
-
-
-
-
-
-
-
739 if (joker_object != description_card)
-
740 joker_object->ty = int2fx(ITEM_SHOP_Y);
-
-
-
743 description_card->tx = description_card_original_x_pos;
-
744 description_card->ty = description_card_original_y_pos;
-
-
-
-
748 if (timer <= TM_SHOW_CARD_DESC_WAIT)
-
-
-
751 if (TM_SHOW_CARD_DESC_WAIT - timer < 5)
-
-
-
-
-
-
-
758 else if (timer == TM_SHOW_CARD_DESC_WAIT + 1)
-
-
-
761 if (description_card_original_list == &s_shop_items_list)
-
762 description_card->ty += int2fx(
TILE_SIZE);
-
-
-
-
-
-
-
-
-
-
772 if (description_card_original_list == &s_shop_items_list)
-
773 description_card->ty -= int2fx(
TILE_SIZE);
-
-
-
-
777 "#{P:%d,%d; cx:0x%X000}$%d",
-
778 SHOP_REROLL_RECT.left,
-
779 SHOP_REROLL_RECT.top,
-
-
-
-
-
-
785 display_deck_size_max();
-
-
-
-
789 else if (description_card->vx == 0 && description_card->vy == 0)
-
-
791 owned_joker_price_printed =
false;
-
792 description_card = NULL;
-
-
-
-
-
-
-
799 else if (!owned_joker_price_printed && !key_held(SELECT_CARD) &&
-
800 description_card_original_list == get_jokers_list())
-
-
802 owned_joker_price_printed =
true;
-
-
-
805 joker_get_sell_value(description_card->joker)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
829 if (shop_item != NULL)
-
-
831 shop_item->ty = int2fx(160);
-
-
-
-
-
-
-
-
-
-
-
842 memset16(&se_mat[MAIN_BG_SBB][y - 1][0], 0x0001, 1);
-
843 memset16(&se_mat[MAIN_BG_SBB][y - 1][1], 0x0002, 7);
-
844 memset16(&se_mat[MAIN_BG_SBB][y - 1][8], SE_HFLIP | 0x0001, 1);
-
-
-
847 if (timer >= MENU_POP_OUT_ANIM_FRAMES)
-
-
849 game_change_state(GAME_STATE_BLIND_SELECT);
-
-
+
695 else if (s_description_card->vx == 0 && s_description_card->vy == 0 &&
+
696 !key_held(DESELECT_CARDS))
+
+
+
+
+
+
+
703static void game_shop_hide_card_desc(
void)
+
+
+
706 static bool owned_joker_price_printed =
false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
721 OWNED_CONSUMABLES_PANEL_RECT,
+
722 OWNED_CARDS_PANEL_3X3_SRC_POS
+
+
+
+
+
+
+
+
+
+
732 if (joker_object != s_description_card)
+
733 joker_object->ty = int2fx(HELD_JOKERS_POS.y);
+
+
+
+
+
+
+
740 if (joker_object != s_description_card)
+
741 joker_object->ty = int2fx(ITEM_SHOP_Y);
+
+
+
744 s_description_card->tx = s_description_card_original_x_pos;
+
745 s_description_card->ty = s_description_card_original_y_pos;
+
+
+
+
749 if (s_timer <= TM_SHOW_CARD_DESC_WAIT)
+
+
+
752 if (TM_SHOW_CARD_DESC_WAIT - s_timer < 5)
+
+
+
+
+
+
+
759 else if (s_timer == TM_SHOW_CARD_DESC_WAIT + 1)
+
+
+
762 if (s_description_card_original_list == &s_shop_items_list)
+
763 s_description_card->ty += int2fx(
TILE_SIZE);
+
+
+
+
+
+
+
+
+
+
773 if (s_description_card_original_list == &s_shop_items_list)
+
774 s_description_card->ty -= int2fx(
TILE_SIZE);
+
+
+
+
778 "#{P:%d,%d; cx:0x%X000}$%d",
+
779 SHOP_REROLL_RECT.left,
+
780 SHOP_REROLL_RECT.top,
+
+
+
+
+
+
786 display_deck_size_max();
+
+
+
+
790 else if (s_description_card->vx == 0 && s_description_card->vy == 0)
+
+
792 owned_joker_price_printed =
false;
+
793 s_description_card = NULL;
+
+
+
+
+
+
+
800 else if (!owned_joker_price_printed && !key_held(SELECT_CARD) &&
+
801 s_description_card_original_list == get_jokers_list())
+
+
803 owned_joker_price_printed =
true;
+
+
+
806 joker_get_sell_value(s_description_card->joker)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
830 if (shop_item != NULL)
+
+
832 shop_item->ty = int2fx(160);
+
+
+
+
+
+
838 else if (s_timer == 2)
+
+
+
+
+
843 memset16(&se_mat[MAIN_BG_SBB][y - 1][0], 0x0001, 1);
+
844 memset16(&se_mat[MAIN_BG_SBB][y - 1][1], 0x0002, 7);
+
845 memset16(&se_mat[MAIN_BG_SBB][y - 1][8], SE_HFLIP | 0x0001, 1);
+
+
+
848 if (s_timer >= MENU_POP_OUT_ANIM_FRAMES)
+
+
850 game_change_state(GAME_STATE_BLIND_SELECT);
+
+
-
-
-
-
-
-
859 COLOR shifted_palette[4];
-
860 shifted_palette[0] = pal_bg_mem[SHOP_LIGHTS_2_PAL_IDX];
-
861 shifted_palette[1] = pal_bg_mem[SHOP_LIGHTS_3_PAL_IDX];
-
862 shifted_palette[2] = pal_bg_mem[SHOP_LIGHTS_4_PAL_IDX];
-
863 shifted_palette[3] = pal_bg_mem[SHOP_LIGHTS_1_PAL_IDX];
-
-
-
866 int last = shifted_palette[3];
-
-
868 for (
int i = 3; i > 0; --i)
-
-
870 shifted_palette[i] = shifted_palette[i - 1];
-
-
-
873 shifted_palette[0] = last;
-
-
-
876 pal_bg_mem[SHOP_LIGHTS_2_PAL_IDX] = shifted_palette[0];
-
877 pal_bg_mem[SHOP_LIGHTS_3_PAL_IDX] = shifted_palette[1];
-
878 pal_bg_mem[SHOP_LIGHTS_4_PAL_IDX] = shifted_palette[2];
-
879 pal_bg_mem[SHOP_LIGHTS_1_PAL_IDX] = shifted_palette[3];
-
+
+
+
+
+
+
860 COLOR shifted_palette[4];
+
861 shifted_palette[0] = pal_bg_mem[SHOP_LIGHTS_2_PAL_IDX];
+
862 shifted_palette[1] = pal_bg_mem[SHOP_LIGHTS_3_PAL_IDX];
+
863 shifted_palette[2] = pal_bg_mem[SHOP_LIGHTS_4_PAL_IDX];
+
864 shifted_palette[3] = pal_bg_mem[SHOP_LIGHTS_1_PAL_IDX];
+
+
+
867 int last = shifted_palette[3];
+
+
869 for (
int i = 3; i > 0; --i)
+
+
871 shifted_palette[i] = shifted_palette[i - 1];
+
+
+
874 shifted_palette[0] = last;
+
+
+
877 pal_bg_mem[SHOP_LIGHTS_2_PAL_IDX] = shifted_palette[0];
+
878 pal_bg_mem[SHOP_LIGHTS_3_PAL_IDX] = shifted_palette[1];
+
879 pal_bg_mem[SHOP_LIGHTS_4_PAL_IDX] = shifted_palette[2];
+
880 pal_bg_mem[SHOP_LIGHTS_1_PAL_IDX] = shifted_palette[3];
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
887 if (s_timer % 20 == 0)
+
+
+
+
-
-
-
-
-
894 List* shop_items_list = &s_shop_items_list;
-
-
-
-
-
-
-
-
-
-
-
905 increment_blind(BLIND_STATE_DEFEATED);
-
-
-
-
-
+
+
+
+
+
895 List* shop_items_list = &s_shop_items_list;
+
+
+
+
+
+
+
+
+
+
+
906 increment_blind(BLIND_STATE_DEFEATED);
+
+
+
+
+
Utilities for using maxmod to play sound effects.
A bitset for operating on flags.
@@ -1058,8 +1059,8 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
void item_acquire(Item *item)
Acquires the item, adding to inventory if applicable. Called when it is purchased from the shop,...
int item_get_buy_price(Item *item)
Returns the buy price of the item.
Functions relative to the handling of Jokers.
-
u16 joker_get_rarity_color(u8 rarity, bool main_color)
Get Joker rarity panel color.
-
void joker_reset_rollable_jokers(void)
Reset rollable jokers to include all jokers in the registry.
+
u16 joker_get_rarity_color(u8 rarity, bool main_color)
Get Joker rarity panel color.
+
void joker_reset_rollable_jokers(void)
Reset rollable jokers to include all jokers in the registry.
All the functions used specifically to interact with Jokers. This includes browsing,...
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.
@@ -1084,12 +1085,12 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
static bool shop_reroll_row_on_selection_changed(SelectionGrid *selection_grid, int row_idx, const Selection *prev_selection, const Selection *new_selection)
Handle d-pad inputs for the "Reroll" button's row.
static void shop_top_row_on_key_transit(SelectionGrid *selection_grid, Selection *selection)
Handle button inputs for the "Next Round" button and shop Jokers.
JokerObject * game_shop_get_description_card(void)
Get a pointer to the Card we are currently showing the description of.
-
void game_shop_on_exit(void)
Shop cleanup.
+
void game_shop_on_exit(void)
Shop cleanup.
static bool shop_top_row_on_selection_changed(SelectionGrid *selection_grid, int row_idx, const Selection *prev_selection, const Selection *new_selection)
Handle d-pad inputs for the "Next Round" button and shop Jokers' row.
static void game_shop_reroll(void)
Reroll items up for sale in the Shop. Reroll cost will go up by a rate that increases by 1 each rerol...
static void game_shop_process_user_input(void)
Handle user inputs logic in the Shop though a SelectionGrid.
static void game_shop_intro(void)
Intro sequence (menu and shop icon coming into frame)
-
static void game_shop_lights_anim_frame(void)
Cycling shop lights animation substate update.
+
static void game_shop_lights_anim_frame(void)
Cycling shop lights animation substate update.
void game_shop_reset(void)
Initialize the shop for a run. Resets all the shop data for the run, needs to be called once per run.
void game_shop_on_init(void)
Shop state initialization.
static int shop_reroll_row_get_size(void)
Get size of the row with the "Reroll" button.
@@ -1097,8 +1098,8 @@ $(document).ready(function(){initNavTree('shop_8c_source.html',''); initResizabl
static int shop_top_row_get_size(void)
Computes the number of Jokers up for sale, aka the number of "buttons" there are on the top row of th...
static void shop_reroll_row_on_key_transit(SelectionGrid *selection_grid, Selection *selection)
Handle button inputs for the "Reroll" button's row.
static void game_shop_create_top_row_items(void)
Setup for the lists of items we can purchase in the top row of the Shop. i.e. Jokers and consumables ...
-
static void game_shop_outro(void)
Outro sequence substate update. This makes the menu and shop icon go out of frame.
-
void game_shop_on_update(void)
Shop state update.
+
static void game_shop_outro(void)
Outro sequence substate update. This makes the menu and shop icon go out of frame.
+
void game_shop_on_update(void)
Shop state update.
void game_shop_change_background(void)
Change to the shop background.
static Item * game_shop_create_top_row_item(void)
Create a shop top row item - jokers, consumables, and possibly playing cards Currently only jokers ar...
diff --git a/shop_8h.html b/shop_8h.html
index 64b2c32c..3223cd7e 100644
--- a/shop_8h.html
+++ b/shop_8h.html
@@ -232,7 +232,7 @@ Functions
Shop cleanup.
-
Definition at line 892 of file shop.c.
+
Definition at line 893 of file shop.c.
@@ -276,7 +276,7 @@ Functions
Shop state update.
-
Definition at line 882 of file shop.c.
+
Definition at line 883 of file shop.c.
diff --git a/shop_8h_source.html b/shop_8h_source.html
index 70becf28..c8958b4f 100644
--- a/shop_8h_source.html
+++ b/shop_8h_source.html
@@ -161,10 +161,10 @@ $(document).ready(function(){initNavTree('shop_8h_source.html',''); initResizabl
Functions relative to the handling of Jokers.
JokerObject * game_shop_get_description_card(void)
Get a pointer to the Card we are currently showing the description of.
-
void game_shop_on_exit(void)
Shop cleanup.
+
void game_shop_on_exit(void)
Shop cleanup.
void game_shop_reset(void)
Initialize the shop for a run. Resets all the shop data for the run, needs to be called once per run.
void game_shop_on_init(void)
Shop state initialization.
-
void game_shop_on_update(void)
Shop state update.
+
void game_shop_on_update(void)
Shop state update.
void game_shop_change_background(void)
Change to the shop background.
diff --git a/splash__screen_8c_source.html b/splash__screen_8c_source.html
index d6e7039e..42bdf11a 100644
--- a/splash__screen_8c_source.html
+++ b/splash__screen_8c_source.html
@@ -149,12 +149,12 @@ $(document).ready(function(){initNavTree('splash__screen_8c_source.html',''); in
11static const Rect COUNTDOWN_TIMER_RECT = {208, 144, 240, 152};
-
+ 12static uint s_timer = 0;
-
+
18 tte_printf(
"#{P:72,8; cx:0x%X000}DISCLAIMER", TTE_WHITE_PB);
@@ -172,9 +172,9 @@ $(document).ready(function(){initNavTree('splash__screen_8c_source.html',''); in
-
+
-
34 if (timer < SPLASH_DURATION_FRAMES)
+
34 if (s_timer < SPLASH_DURATION_FRAMES)
@@ -182,7 +182,7 @@ $(document).ready(function(){initNavTree('splash__screen_8c_source.html',''); in
39 COUNTDOWN_TIMER_RECT.left,
40 COUNTDOWN_TIMER_RECT.top,
-
42 1 + (SPLASH_DURATION_FRAMES - timer) / SPLASH_FPS
+
42 1 + (SPLASH_DURATION_FRAMES - s_timer) / SPLASH_FPS
45 if (!key_hit(KEY_ANY))
diff --git a/state__machine_8c_source.html b/state__machine_8c_source.html
index e75a8836..5d57d84d 100644
--- a/state__machine_8c_source.html
+++ b/state__machine_8c_source.html
@@ -144,7 +144,7 @@ $(document).ready(function(){initNavTree('state__machine_8c_source.html',''); in
-
+
@@ -164,7 +164,7 @@ $(document).ready(function(){initNavTree('state__machine_8c_source.html',''); in
24 state_machine->
state = UNDEFINED;
-
+
@@ -175,14 +175,14 @@ $(document).ready(function(){initNavTree('state__machine_8c_source.html',''); in
-
+