Nexus6 (Pris) in RoboterLager hinzufügt. In der UI kann abgerufen werden
parent
7ffe3886ac
commit
0ff589db10
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue