Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::player::Bag::Item Struct Reference

Simple struct representing a set of items in the bag. More...

#include <Bag.hpp>

Public Member Functions

 Item ()
 Construct an empty item. More...
 
 Item (item::Id id, unsigned int qty)
 Construct a new Item object. More...
 

Public Attributes

item::Id id
 The item in the bag. More...
 
unsigned int qty
 How many of the item are in the bag. More...
 

Detailed Description

Simple struct representing a set of items in the bag.

Definition at line 24 of file Bag.hpp.

Constructor & Destructor Documentation

◆ Item() [1/2]

core::player::Bag::Item::Item ( )

Construct an empty item.

Definition at line 9 of file Bag.cpp.

◆ Item() [2/2]

core::player::Bag::Item::Item ( item::Id  id,
unsigned int  qty 
)

Construct a new Item object.

Parameters
idThe item id
qtyThe number of that item

Definition at line 13 of file Bag.cpp.

Member Data Documentation

◆ id

item::Id core::player::Bag::Item::id

The item in the bag.

Definition at line 26 of file Bag.hpp.

◆ qty

unsigned int core::player::Bag::Item::qty

How many of the item are in the bag.

Definition at line 29 of file Bag.hpp.


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