LI2 Roguelite
Public Attributes | List of all members
inventory Struct Reference

Inventory structure represents the player inventory. More...

#include <inventory.h>

Collaboration diagram for inventory:
Collaboration graph
[legend]

Public Attributes

Item ** items
 
int nr_items
 
Itemequipped_item
 
int equiped_index
 
Itemequipped_sword
 
Itemequipped_armor
 
int gold
 

Detailed Description

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.

Parameters
itemsthe items in the inventory
nr_itemsthe number of items in the inventory
equipped_itemthe equipped item
equiped_indexthe index of the equipped item
equipped_swordthe equipped sword
equipped_armorthe equipped armor
goldthe amount of gold in the inventory

Member Data Documentation

◆ equiped_index

int inventory::equiped_index

◆ equipped_armor

Item* inventory::equipped_armor

◆ equipped_item

Item* inventory::equipped_item

◆ equipped_sword

Item* inventory::equipped_sword

◆ gold

int inventory::gold

◆ items

Item** inventory::items

◆ nr_items

int inventory::nr_items

The documentation for this struct was generated from the following file: