|
LI2 Roguelite
|
Inventory structure represents the player inventory. More...
#include <inventory.h>

Public Attributes | |
| Item ** | items |
| int | nr_items |
| Item * | equipped_item |
| int | equiped_index |
| Item * | equipped_sword |
| Item * | equipped_armor |
| int | gold |
Inventory structure represents the player inventory.
This struct represents the player inventory. It contains the items the player has picked up, the equipped item and is index in the inventory, and the amount of gold.
| items | the items in the inventory |
| nr_items | the number of items in the inventory |
| equipped_item | the equipped item |
| equiped_index | the index of the equipped item |
| equipped_sword | the equipped sword |
| equipped_armor | the equipped armor |
| gold | the amount of gold in the inventory |
| int inventory::equiped_index |
| Item* inventory::equipped_armor |
| Item* inventory::equipped_item |
| Item* inventory::equipped_sword |
| int inventory::gold |
| Item** inventory::items |
| int inventory::nr_items |