diff --git a/Roboterfabrik/src/Domäne/RobotFactory.java b/Roboterfabrik/src/Domäne/RobotFactory.java index 1f83742..dfa8b58 100644 --- a/Roboterfabrik/src/Domäne/RobotFactory.java +++ b/Roboterfabrik/src/Domäne/RobotFactory.java @@ -6,10 +6,12 @@ import tpe.exceptions.roboter.exceptions.RobotException; public class RobotFactory { private String name; + private Roboter pris = Nexus6.getInstance(); private HashMap roboterLager = new HashMap<>(); public RobotFactory (String name) { this.name = name; + roboterLager.put(pris.getId(), pris); } public int addRobot (RobotType robotType, String name) {