]> Git Server - tankstelle.git/commitdiff
changed datatype of retail_space in MediumFuelStation from int to float
authorRobin <cheneyr@eternal.ddnss.de>
Mon, 10 Nov 2025 10:23:17 +0000 (11:23 +0100)
committerRobin <cheneyr@eternal.ddnss.de>
Mon, 10 Nov 2025 10:23:17 +0000 (11:23 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/MediumFuelStation.java

index 9266a9089f623cdffae8410a06435b04ab693076..9bb7ff18d38df34536f79857454e6820b62401bf 100644 (file)
@@ -7,7 +7,7 @@ public class MediumFuelStation extends FuelStation {
     /**
      * m² of retail space
      */
-    private int retail_space;
+    private float retail_space;
 
     /**
      * Constructs medium {@link FuelStation fuel station}s
@@ -15,7 +15,7 @@ public class MediumFuelStation extends FuelStation {
      * @param retail_space m² of retail space
      * @see {@link #retail_space}
      */
-    public MediumFuelStation(int retail_space) {
+    public MediumFuelStation(float retail_space) {
         Fuel[] fuels = { new Fuel(FuelType.SUPER, 6000f, 0f, 12000),
                 new Fuel(FuelType.SUPER_E10, 6000f, 0f, 12000),
                 new Fuel(FuelType.PREMIUM_DIESEL, 6000f, 0f, 12000),
@@ -32,7 +32,7 @@ public class MediumFuelStation extends FuelStation {
      * @see {@link #retail_space}
      * @see {@link FuelStation#number_of_employees}
      */
-    public MediumFuelStation(int retail_space, byte number_of_employees) {
+    public MediumFuelStation(float retail_space, byte number_of_employees) {
         Fuel[] fuels = { new Fuel(FuelType.SUPER, 6000f, 0f, 12000),
                 new Fuel(FuelType.SUPER_E10, 6000f, 0f, 12000),
                 new Fuel(FuelType.PREMIUM_DIESEL, 6000f, 0f, 12000),