Description: 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().
To Search:
File list (Check if you may need any files):
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