Refactor - Moved shop data structures to shop.c/.h (#521)
* Moved shop data structures to `shop.c/.h` * Renamed static variables and reset function
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
#include "bitset.h"
|
||||
#include "game/common_ui.h"
|
||||
#include "game_variables.h"
|
||||
#include "graphic_utils.h"
|
||||
@@ -89,9 +88,6 @@ void remove_owned_joker(int owned_joker_idx);
|
||||
List* get_jokers_list(void);
|
||||
List* get_expired_jokers_list(void);
|
||||
List* get_discarded_jokers_list(void);
|
||||
List* get_shop_jokers_list(void);
|
||||
Bitset* get_avail_jokers_bitset(void);
|
||||
void set_shop_joker_avail(int joker_id, bool avail);
|
||||
|
||||
int get_deck_top(void);
|
||||
int get_num_discards_remaining(void);
|
||||
|
||||
@@ -6,6 +6,22 @@
|
||||
#ifndef GAME_SHOP_H
|
||||
#define GAME_SHOP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* @brief Initialize the shop for a run.
|
||||
* Resets all the shop data for the run, needs to be called once per run.
|
||||
*/
|
||||
void game_shop_reset(void);
|
||||
|
||||
/**
|
||||
* @brief Set whether a Joker can appear in the shop.
|
||||
*
|
||||
* @param avail - true to make it available to the shop to appear in
|
||||
* false to make it unavailable.
|
||||
*/
|
||||
void game_shop_set_joker_avail(int joker_id, bool avail);
|
||||
|
||||
/**
|
||||
* @brief Change to the shop background
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user