@Test public void testGetDamageBonus() { assertEquals(DAMAGE_BONUS, ((Staff) weapon1).getDamageBonus()); assertEquals(DAMAGE_BONUS, ((Staff) weapon2).getDamageBonus()); }
public int getDamageBonus() { return ((StaffProperties) properties).getDamageBonus(); }
Staff extends Weapon { public int getDamageBonus() { return ((StaffProperties) properties).getDamageBonus(); } }
Staff extends Weapon { public int getDamageBonus() { return ((StaffProperties) properties).getDamageBonus(); } Staff(StaffProperties properties, int amount); }
Staff extends Weapon { public int getDamageBonus() { return ((StaffProperties) properties).getDamageBonus(); } Staff(StaffProperties properties, int amount); int getMagicPower(); int getDamageBonus(); @Override Item clone(); @Override void use(Character character); }
Staff extends Weapon { public int getDamageBonus() { return ((StaffProperties) properties).getDamageBonus(); } Staff(StaffProperties properties, int amount); int getMagicPower(); int getDamageBonus(); @Override Item clone(); @Override void use(Character character);  }