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...【查看原文】