„ManualBot.java“ ändern
This commit is contained in:
parent
eae8ae3f64
commit
0b1f68cdb1
@ -3,8 +3,12 @@ package bot;
|
|||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
|
||||||
public class ManualBot extends Bot {
|
public class ManualBot extends Bot {
|
||||||
|
|
||||||
|
private Scanner scanner;
|
||||||
|
|
||||||
public ManualBot(String[] args) {
|
public ManualBot(String[] args) {
|
||||||
super(args);
|
super(args);
|
||||||
|
this.scanner = new Scanner(System.in);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -37,5 +41,10 @@ public class ManualBot extends Bot {
|
|||||||
System.out.println("Falsche Taste. Bitte geben Sie w, s, a, d oder q ein.");
|
System.out.println("Falsche Taste. Bitte geben Sie w, s, a, d oder q ein.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
startCommunication();
|
||||||
|
// hier muss die Logik für die Verbindung implementiert werden
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user