21 lines
434 B
Java
21 lines
434 B
Java
package ch.zhaw.catan;
|
|
|
|
import org.beryx.textio.TextIO;
|
|
|
|
public enum Command {
|
|
NEXTPLAYER ("next player"), BUILDSETTLEMENT ("build settlement"), BUILDCITY("build city"),
|
|
BUILDROAD("build road"), TRADEWITHBANK("trade with bank"),QUIT("quit");
|
|
|
|
private String commandWord;
|
|
|
|
|
|
|
|
|
|
Command(String commandWord) {
|
|
this.commandWord = commandWord;
|
|
}
|
|
public String toString() {
|
|
return commandWord;
|
|
}
|
|
}
|