@Test public void testGetMaxHit() { assertEquals(MAX_HIT, ammunition1.getMaxHit()); assertEquals(MAX_HIT, ammunition2.getMaxHit()); }
public int getMaxHit() { return ((AmmunitionProperties) properties).getMaxHit(); }
Ammunition extends AbstractEquipableItem { public int getMaxHit() { return ((AmmunitionProperties) properties).getMaxHit(); } }
Ammunition extends AbstractEquipableItem { public int getMaxHit() { return ((AmmunitionProperties) properties).getMaxHit(); } Ammunition(AmmunitionProperties properties, int amount); }
Ammunition extends AbstractEquipableItem { public int getMaxHit() { return ((AmmunitionProperties) properties).getMaxHit(); } Ammunition(AmmunitionProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHit(); int getMaxHit(); int getDamage(); }
Ammunition extends AbstractEquipableItem { public int getMaxHit() { return ((AmmunitionProperties) properties).getMaxHit(); } Ammunition(AmmunitionProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHit(); int getMaxHit(); int getDamage();  }