My Project
 
Loading...
Searching...
No Matches
Belongings Class Reference

#include <belongings.h>

Collaboration diagram for Belongings:

Public Member Functions

 Belongings (Hero *owner)
 
KeygetKey (const std::string &kind, int depth)
 
ItemgetItem (const std::string &itemClass)
 
ItemrandomUnequipped ()
 
void resurrect (int depth)
 
void countIronKeys ()
 
void identify ()
 

Public Attributes

Bagbackpack
 
KindOfWeaponweapon
 
Armorarmor
 
Ringring1
 
Ringring2
 

Static Public Attributes

static const int BACKPACK_SIZE = 19
 

Constructor & Destructor Documentation

◆ Belongings()

Belongings::Belongings ( Hero * owner)

Member Function Documentation

◆ countIronKeys()

void Belongings::countIronKeys ( )

◆ getItem()

Item * Belongings::getItem ( const std::string & itemClass)
Here is the caller graph for this function:

◆ getKey()

Key * Belongings::getKey ( const std::string & kind,
int depth )

◆ identify()

void Belongings::identify ( )
Here is the call graph for this function:

◆ randomUnequipped()

Item * Belongings::randomUnequipped ( )
Here is the caller graph for this function:

◆ resurrect()

void Belongings::resurrect ( int depth)
Here is the call graph for this function:

Member Data Documentation

◆ armor

Armor* Belongings::armor

◆ backpack

Bag* Belongings::backpack

◆ BACKPACK_SIZE

const int Belongings::BACKPACK_SIZE = 19
static

◆ ring1

Ring* Belongings::ring1

◆ ring2

Ring* Belongings::ring2

◆ weapon

KindOfWeapon* Belongings::weapon

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