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 CHARACTER_H
#define CHARACTER_H
class character
{
public:
character(std::string z, int a, int b, int c, float i, int e, int f);
void setClass(std::string x);
void setHealth(int h);
void setStr(int s);
void setDex(int d);
void setArmor(float arm);
void setGold(int g);
void setLevel(int l);
void addHealth();
void subHealth();
void addGold();
void subGold();
void addLevel();
std::string getClass()
{
return pClass;
}
int getHealth()
{
return health;
}
int getStr()
{
return str;
}
int getDex()
{
return dex;
}
float getArmor()
{
return armor;
}
int getGold()
{
return gold;
}
int getLevel()
{
return level;
}
private:
std::string pClass;
int health;
int str;
int dex;
float armor;
int gold;
int level;
};
character ourHero();
#endif // CHARACTER_H