new Class Parser and corresponding enums created
This commit is contained in:
		
							parent
							
								
									cb9e22ea92
								
							
						
					
					
						commit
						54b1d794f8
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
package ch.zhaw.catan;
 | 
			
		||||
 | 
			
		||||
public class CommandWords {
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue