Skip to content

Instantly share code, notes, and snippets.

@su8
Created March 16, 2025 14:57
Show Gist options
  • Save su8/4fb4bcf2f09f3bdc890c42a604909e35 to your computer and use it in GitHub Desktop.
Save su8/4fb4bcf2f09f3bdc890c42a604909e35 to your computer and use it in GitHub Desktop.
#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