Nexus6 (Pris) in RoboterLager hinzufügt. In der UI kann abgerufen werden

master
Milan Lukic 2023-01-06 15:18:46 +01:00
parent 7ffe3886ac
commit 0ff589db10
1 changed files with 2 additions and 0 deletions

View File

@ -6,10 +6,12 @@ import tpe.exceptions.roboter.exceptions.RobotException;
public class RobotFactory {
private String name;
private Roboter pris = Nexus6.getInstance();
private HashMap <Integer, Roboter> roboterLager = new HashMap<>();
public RobotFactory (String name) {
this.name = name;
roboterLager.put(pris.getId(), pris);
}
public int addRobot (RobotType robotType, String name) {