60 lines
1.2 KiB
Java
60 lines
1.2 KiB
Java
package ch.zhaw.catan;
|
|
import org.beryx.textio.TextIO;
|
|
import org.beryx.textio.TextIoFactory;
|
|
import org.beryx.textio.TextTerminal;
|
|
|
|
import java.awt.*;
|
|
import java.util.HashMap;
|
|
|
|
import static ch.zhaw.catan.Command.QUIT;
|
|
import static ch.zhaw.catan.Command.UNKNOWN;
|
|
|
|
public class Parser {
|
|
TextIO textIO = TextIoFactory.getTextIO();
|
|
TextTerminal<?> textTerminal;
|
|
|
|
public Parser() {
|
|
textTerminal = textIO.getTextTerminal();
|
|
}
|
|
public Point getPoint() {
|
|
return null;
|
|
}
|
|
|
|
public HashMap<String, Integer> gameStart(){
|
|
return null;
|
|
//Anzahlspieler,int
|
|
//Siegespunkte,int
|
|
}
|
|
|
|
public void giveCoordinatesForStructures(Config.Structure structure) {
|
|
|
|
}
|
|
|
|
public void thrownDices(int number){
|
|
|
|
}
|
|
|
|
public void playerTurn(Config.Faction faction) {
|
|
|
|
}
|
|
|
|
public void errorMessage(){
|
|
|
|
}
|
|
|
|
public Command getAction() {
|
|
|
|
switch (textIO.newEnumInputReader(Command.class).read("What would you like to do?")) {
|
|
case QUIT:
|
|
System.out.println("quit");
|
|
return QUIT;
|
|
|
|
case UNKNOWN:
|
|
return UNKNOWN;
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|