nikow 2023-01-03 16:48:45 +01:00
parent d59ee7395f
commit ed092aa6d4
1 changed files with 3 additions and 0 deletions

View File

@ -4,8 +4,11 @@ public class C3PO extends Roboter{
String name; String name;
int id; int id;
static int idZähler = 10000; static int idZähler = 10000;
RobotType robotType;
C3PO (String name){ C3PO (String name){
super (name); super (name);
this.robotType = robotType.C3PO;
this.id = idZähler; this.id = idZähler;
idZähler++; idZähler++;
} }