2022-04-18 00:06:32 +02:00
|
|
|
#pragma once
|
|
|
|
#include "define.h"
|
2022-04-22 00:32:31 +02:00
|
|
|
#include "game.h"
|
|
|
|
#include <stdbool.h>
|
2022-04-18 00:06:32 +02:00
|
|
|
|
|
|
|
struct Inventory {
|
|
|
|
int nbItems;
|
|
|
|
struct Item *items[NB_PLAYER_ITEMS];
|
|
|
|
};
|
|
|
|
|
2022-04-22 00:32:31 +02:00
|
|
|
|
|
|
|
bool add_item_to_inventory(struct Game *game, struct Inventory *inventory, struct Item *item);
|
2022-04-18 00:06:32 +02:00
|
|
|
int get_first_free_space(struct Inventory *inventory);
|
2022-04-18 02:14:07 +02:00
|
|
|
void display_inventory(struct Inventory *inventory);
|
2022-05-26 17:06:17 +02:00
|
|
|
int open_inventory(struct Game *game, struct Inventory *inventory, char* context, bool keep_open);
|
|
|
|
int get_nb_items(struct Inventory *inventory);
|