Joker pooling - Existing or owned jokers can't appear in shop + shop code refactor

This commit is contained in:
MeirGavish
2025-08-09 20:48:18 +03:00
parent 9d4b6a04b8
commit 3441a1dae8
3 changed files with 274 additions and 186 deletions
+8 -2
View File
@@ -3,6 +3,10 @@
#include <stdbool.h>
/* Defining an int list for simplicity
* If another list is needed, a generic void*
* list should be defined....
*/
typedef struct IntList
{
int* _array;
@@ -12,8 +16,10 @@ typedef struct IntList
IntList *int_list_new(int init_size);
void int_list_destroy(IntList **list);
bool int_list_add(IntList *list, int value);
bool int_list_remove(IntList *list, int index);
bool int_list_append(IntList *list, int value);
bool int_list_remove_by_idx(IntList *list, int index);
int int_list_get(IntList *list, int index);
int int_list_get_size(IntList *list);
bool int_list_remove_by_value(IntList *list, int value);
#endif