您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

36 行
562 B

#ifndef HACKTHEGAME_CHARACTER_HPP
#define HACKTHEGAME_CHARACTER_HPP
#include <string>
class Character
{
protected:
std::string name;
int maxHP;
int currentHP;
int atk;
int def;
public:
Character(std::string characterName);
Character(std::string characterName, int characterMaxHP, int characterAtk, int characterDef);
bool isDead();
bool isAlive();
std::string getName();
void restoreHP();
int getCurrentHP();
int getMaxHP();
int getDef();
int getAtk();
int defend(int dmg);
};
#endif