DungeonCrawl
Loading...
Searching...
No Matches
inventory_mode.h
Go to the documentation of this file.
1
5#ifndef INVENTORY_MODE_H
6#define INVENTORY_MODE_H
7
9
13typedef enum {
14 INVENTORY_MENU,
15 INVENTORY_GEAR_MENU,
16 INVENTORY_EQUIPMENT_MENU,
17 INVENTORY_POTION_MENU,
18 INVENTORY_EXIT
20
21typedef enum {
22 CONTINUE_INVENTORY,
23 EXIT_TO_MAP
24} inventory_result_t;
25
32
39inventory_result_t start_inventory(character_t* player, character_t* monster);
40
48
56
64
72
78
79#endif// INVENTORY_MODE_H
Exposes a forward strucht for the character type.
internal_inventory_state_t inventory_menu(character_t *player, character_t *monster)
Displays the main inventory menu.
inventory_result_t start_inventory(character_t *player, character_t *monster)
Starts the inventory mode.
internal_inventory_state_t
Internal states for the inventory mode.
void shutdown_inventory_mode(void)
Shuts down the inventory mode and frees allocated resources.
internal_inventory_state_t inventory_equipment_menu(character_t *player, character_t *monster)
Displays the equipment inventory menu.
internal_inventory_state_t inventory_potion_menu(character_t *player, character_t *monster)
Displays the potion inventory menu.
internal_inventory_state_t inventory_gear_menu(character_t *player, character_t *monster)
Displays the gear inventory menu.
int init_inventory_mode()
Initialize the inventory mode.