2022-04-22 00:32:31 +02:00
|
|
|
#pragma once
|
|
|
|
#include "game.h"
|
|
|
|
#include "inventory.h"
|
|
|
|
#include <gint/display.h>
|
|
|
|
|
|
|
|
struct Item {
|
|
|
|
char *name;
|
|
|
|
int id;
|
|
|
|
char *description;
|
|
|
|
bopti_image_t *sprite;
|
|
|
|
char *action;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Items {
|
|
|
|
int nbItems;
|
|
|
|
struct Item *items[];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Item *get_item_id(int id);
|
2022-05-26 18:47:58 +02:00
|
|
|
bool select_item(struct Game *game, int pos);
|
2022-04-23 00:47:27 +02:00
|
|
|
void remove_item_pos(struct Inventory *inventory, int pos);
|
|
|
|
struct Item *get_item_from_name(const char *name);
|