摘要: 3、Monster.java
package com.home.jiangfan;
//怪物类
public class Monster {
//怪物属性
public int id,lv,hp,mp,attack,armor;
public String name,skill;
//怪物普通攻击方法
public void generalAttack(Player a){
System.out.println(this.name+",对你发起了攻击!造成了:"+this.attack+" 点伤害!");
a.hp-=this.attack;
}
阅读全文