1 Star 0 Fork 123

lelouch5277/zuul

forked from 吕焱飞/zuul 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Weapon.java 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
lelouch5277 提交于 2021-06-10 22:44 . chang zuul
/**
* 在这里给出对类 Weapon 的描述。
*
* @作者(你的名字)
* @版本(一个版本号或者一个日期)
*/
public class Weapon
{
private String name;
private int attack;
private int life;
private int defend;
public Weapon(String name,int attack,int life,int denfend) {
this.name = name;
this.attack = attack;
this.life = life;
this.defend = defend;
}
public String getName() {
return this.name;
}
public int getAttack() {
return this.attack;
}
public int getLife() {
return this.life;
}
public int getDefend() {
return this.defend;
}
public String toString() {
return name + " "+ " 攻击值:" + attack + " 耐用值:" + life + " 防御值:" + defend;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lelouch5277/zuul.git
git@gitee.com:lelouch5277/zuul.git
lelouch5277
zuul
zuul
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385