|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectParser
public class Parser
Incapsula un interprete di comandi per il gioco jRisk. Fornisce anche delle operazioni di lettura da tastiera per ogni singolo Giocatore.
| Constructor Summary | |
|---|---|
Parser()
Inizializza l'oggetto Parser |
|
| Method Summary | |
|---|---|
Comando |
getComando()
Legge dalla tastiera una comando pił gli eventuali argomenti. |
int |
getInt()
Legge un int dalla tastiera |
java.lang.String |
getParola()
Legge una parola immessa dalla tastiera. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
| Method Detail |
|---|
public int getInt()
throws java.io.IOException
int letto dalla tastiera
IOException
java.io.IOException
public java.lang.String getParola()
throws java.io.IOException
IOException
java.io.IOExceptionpublic Comando getComando()
Comando contenente
un'azione da eseguire richiesta dall'utente
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||