DungeonCrawl
|
Exposes functions for working with the inventory mode. More...
#include "../character/character_fw.h"
Go to the source code of this file.
Enumerations | |
enum | internal_inventory_state_t { INVENTORY_MENU , INVENTORY_GEAR_MENU , INVENTORY_EQUIPMENT_MENU , INVENTORY_POTION_MENU , INVENTORY_EXIT } |
Internal states for the inventory mode. More... | |
enum | inventory_result_t { CONTINUE_INVENTORY , EXIT_TO_MAP } |
Functions | |
int | init_inventory_mode () |
Initialize the inventory mode. | |
inventory_result_t | start_inventory (character_t *player, character_t *monster) |
Starts the inventory mode. | |
internal_inventory_state_t | inventory_menu (character_t *player, character_t *monster) |
Displays the main inventory menu. | |
internal_inventory_state_t | inventory_gear_menu (character_t *player, character_t *monster) |
Displays the gear inventory menu. | |
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. | |
void | shutdown_inventory_mode (void) |
Shuts down the inventory mode and frees allocated resources. |
Exposes functions for working with the inventory mode.
Definition in file inventory_mode.h.
Internal states for the inventory mode.
Definition at line 13 of file inventory_mode.h.
enum inventory_result_t |
Definition at line 21 of file inventory_mode.h.
int init_inventory_mode | ( | ) |
Initialize the inventory mode.
Definition at line 54 of file inventory_mode.c.
internal_inventory_state_t inventory_equipment_menu | ( | character_t * | player, |
character_t * | monster ) |
Displays the equipment inventory menu.
player | The player character whose inventory is being managed. |
monster | The defeated monster whose inventory will be looted if not NULL. |
Definition at line 290 of file inventory_mode.c.
internal_inventory_state_t inventory_gear_menu | ( | character_t * | player, |
character_t * | monster ) |
Displays the gear inventory menu.
player | The player character whose inventory is being managed. |
monster | The defeated monster whose inventory will be looted if not NULL. |
Definition at line 177 of file inventory_mode.c.
internal_inventory_state_t inventory_menu | ( | character_t * | player, |
character_t * | monster ) |
Displays the main inventory menu.
player | The player character whose inventory is being managed. |
monster | The defeated monster whose inventory will be looted if not NULL. |
Definition at line 112 of file inventory_mode.c.
internal_inventory_state_t inventory_potion_menu | ( | character_t * | player, |
character_t * | monster ) |
Displays the potion inventory menu.
player | The player character whose inventory is being managed. |
monster | The defeated monster whose inventory will be looted if not NULL. |
Definition at line 370 of file inventory_mode.c.
void shutdown_inventory_mode | ( | void | ) |
Shuts down the inventory mode and frees allocated resources.
Definition at line 595 of file inventory_mode.c.
inventory_result_t start_inventory | ( | character_t * | player, |
character_t * | monster ) |
Starts the inventory mode.
player | The player character whose inventory will be managed. |
monster | The defeated monster whose inventory will be looted if not NULL. |
Definition at line 81 of file inventory_mode.c.