Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef EQUIPMENT_H
#define EQUIPMENT_H
using namespace std;
class Equipment {
protected:
string rarity; // common, uncommon, rare, epic, legendary
array<int, 5> stats = {0, 0, 0, 0, 0}; // str, intel, dex, maxHp, con
public:
void randomRarity();
void bonusStats();
void getStats();
void legendary(){ rarity = "legendary";}
};
class Weapon: public Equipment{
private:
string weaponType;
public:
void baseStats();
void randomWeapon();
string getWeaponT();
};
class Armor: public Equipment{
private:
string armorType; // helmet, gloves, leggings, chestplate, boots
public:
Armor();
void randomArmor();
string getArmorT();
};
#endif