Permalink
Cannot retrieve contributors at this time
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?
4007CEM-Bizzare-Adventures-of-Zorro-text-game/Character.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
60 lines (57 sloc)
1.21 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |