文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2013-05-16
-
文件大小:8.34kb
-
已下载:2次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
创建了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/
2/.DS_Store
__MACOSX/
__MACOSX/2/
__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
2/.DS_Store
__MACOSX/
__MACOSX/2/
__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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.