new Class Parser and corresponding enums created

This commit is contained in:
Leonardo Brandenberger 2021-11-29 17:23:55 +01:00
parent cb9e22ea92
commit 54b1d794f8
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package ch.zhaw.catan;
public enum Command {
NEXTPLAYER ("next Player"), QUIT("quit");
private String CommandWord;
Command(String commandWord) {
this.CommandWord = commandWord;
}
}

View File

@ -0,0 +1,4 @@
package ch.zhaw.catan;
public class CommandWords {
}

View File

@ -0,0 +1,25 @@
package ch.zhaw.catan;
import org.beryx.textio.TextIO;
import org.beryx.textio.TextIoFactory;
import org.beryx.textio.TextTerminal;
public class Parser {
TextIO textIO = TextIoFactory.getTextIO();
TextTerminal<?> textTerminal;
public Parser() {
textTerminal = textIO.getTextTerminal();
run();
}
public void run() {
boolean running = true;
while (running) {
}
}
}