@Test public void testGetNeedsAmmunition() { assertFalse(weapon1.getNeedsAmmunition()); assertTrue(weapon2.getNeedsAmmunition()); }
public boolean getNeedsAmmunition() { return ((RangedWeaponProperties) properties).getNeedsAmmunition(); }
RangedWeapon extends Weapon { public boolean getNeedsAmmunition() { return ((RangedWeaponProperties) properties).getNeedsAmmunition(); } }
RangedWeapon extends Weapon { public boolean getNeedsAmmunition() { return ((RangedWeaponProperties) properties).getNeedsAmmunition(); } RangedWeapon(RangedWeaponProperties properties, int amount); }
RangedWeapon extends Weapon { public boolean getNeedsAmmunition() { return ((RangedWeaponProperties) properties).getNeedsAmmunition(); } RangedWeapon(RangedWeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); @Override int getDamage(); boolean getNeedsAmmunition(); }
RangedWeapon extends Weapon { public boolean getNeedsAmmunition() { return ((RangedWeaponProperties) properties).getNeedsAmmunition(); } RangedWeapon(RangedWeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); @Override int getDamage(); boolean getNeedsAmmunition();  }