Created
March 16, 2025 14:57
-
-
Save su8/4fb4bcf2f09f3bdc890c42a604909e35 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <string> | |
class classMob | |
{ | |
public: | |
classMob(std::string,int,std::string,int); // name,lvl,area,difficulty | |
void setName(std::string); | |
void setLevel(int); | |
void setArea(std::string); | |
void setDamage(); | |
void setHealth(double); | |
void setMaxHealth(); | |
void setDifficulty(int); | |
std::string getName(); | |
int getLevel(); | |
std::string getArea(); | |
int getDamage(); | |
double getHealth(); | |
double getMaxHealth(); | |
int getDifficulty(); | |
int getEXP(); | |
void setEXP(); | |
private: | |
std::string mobName; | |
std::string mobArea; | |
int mobLevel; | |
int mobDamage; | |
double mobHealth; | |
double mobMaxHealth; | |
int mobDifficulty; | |
int EXP; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment