public class Player { private String name; private double hp = 10; public void hurt(double ah){ this.hp = this.hp - ah; } // 判断玩家是否死亡 public void death(){ if (this.hp <= 0){ System.out.println(this.name+"已死亡,游戏结束"); } } // 让玩家决定自己的名字 public Player(String...【查看原文】

scboy数码 2024-12-26

固信安全 2024-12-26

WorkWin局域网监控软件 2024-12-26

UpSeller_ERP 2024-12-26