class weapon { public: virtual void weapon_init() = 0; //初始化武器 virtual bool sucking() = 0;//是否吸血 virtual bool Crit() = 0;//是否暴击 virtual int damage() = 0;//造成伤害 private: char* weapon_name[50]; //武器名称 int aggressivity;//攻击力 };
2024-01-29 14:55:46
class weapon { public: virtual void weapon_init() = 0; //初始化武器 virtual bool sucking() = 0;//是否吸血 virtual bool Crit() = 0;//是否暴击 virtual int damage() = 0;//造成伤害 private: char* weapon_name[50]; //武器名称 int aggressivity;//攻击力 };