加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Trap.java 819 Bytes
一键复制 编辑 原始数据 按行查看 历史
炎渊 提交于 2020-06-17 15:08 . 我的迷宫
public class Trap
{
private String name;
private int strengthDown;
private int lifeDown;
private int attackDown;
private int defenseDown;
public Trap(String name, int strengthDown, int lifeDown, int attackDown, int defenseDown)
{
this.name = name;
this.strengthDown = strengthDown;
this.lifeDown = lifeDown;
this.attackDown = attackDown;
this.defenseDown = defenseDown;
}
public int getStrengthDown() {
return this.strengthDown;
}
public int getLifeDown() {
return this.lifeDown;
}
public String getName() {
return this.name;
}
public int getAttackDown() {
return this.attackDown;
}
public int getDefenseDown() {
return this.defenseDown;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化