文件名称:2
- 所属分类:
- JSP源码/Java
- 资源属性:
- [MacOS] [Java] [源码]
- 上传时间:
- 2013-05-16
- 文件大小:
- 8kb
- 下载次数:
- 1次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
创建了dragon和troll两个对象 分别有攻击伤害和移动步数除此之外还添加了攻击方式 -All monsters should still have a name however, they should also have an instance variable called spAttackProbability with a default value of 0.2.All monsters must have a special power (via a call to method specialAttack()). A Dragon’s special power is to breath fire, whereas a Troll’s special power is to hit with a club (resulting in a damage of between 1 to 15 points). There is no longer a default method for specialAttack() however, every subclass of Monster should be forced to provide a method for specialAttack().
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2
.\.DS_Store
__MACOSX
........\2
........\.\._.DS_Store
2\Dragon.class
__MACOSX\2\._Dragon.class
2\Dragon.java
__MACOSX\2\._Dragon.java
2\Monster.class
__MACOSX\2\._Monster.class
2\Monster.java
__MACOSX\2\._Monster.java
2\MonsterMash.class
__MACOSX\2\._MonsterMash.class
2\MonsterMash.java
__MACOSX\2\._MonsterMash.java
2\Troll.class
__MACOSX\2\._Troll.class
2\Troll.java
__MACOSX\2\._Troll.java