|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--scacchi.main.Comando | +--scacchi.main.ComandoScacchi
Classe che implementa la classe astratta Comando
per
l'implementazione PartitaScacchi
dell'interfaccia Partita
.
Comando
Nested Class Summary |
Nested classes inherited from class scacchi.main.Comando |
Comando.ArgomentiTesto |
Field Summary |
Fields inherited from class scacchi.main.Comando |
COM_CASE_CONTR, COM_ESEGUI_MOSSA, COM_GIOC_MUOVE, COM_INDIETRO, COM_LISTA_MOSSE, COM_MOSSE_VALIDE, COM_NUM_MOSSA, COM_NUOVA_PARTITA, COM_POSIZIONE |
Constructor Summary | |
ComandoScacchi(java.lang.String s)
Decompone e verifica una stringa con un comando. |
Method Summary | |
Partita |
nuovaPartita()
Crea una istanza di PartitaScacchi che
comincia dalla posizione iniziale del gioco. |
Partita |
nuovaPartita(int n,
ArgomentiComando.ListaPosPezziTesto l)
Crea una istanza di PartitaScacchi che
comincia dalla posizione del gioco passata come argomento. |
Methods inherited from class scacchi.main.Comando |
charInArray, eseguiComandoNuovaPartita, eseguiComandoPartita, isComandoNuovaPartita, posCharInArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComandoScacchi(java.lang.String s) throws EccezioniTesto.NotazioneException
s
- La stringa del comando.Method Detail |
public Partita nuovaPartita()
PartitaScacchi
che
comincia dalla posizione iniziale del gioco.
nuovaPartita
in class Comando
PartitaScacchi
.public Partita nuovaPartita(int n, ArgomentiComando.ListaPosPezziTesto l) throws EccezioniPartita.PosizioneInizialeException
PartitaScacchi
che
comincia dalla posizione del gioco passata come argomento.
nuovaPartita
in class Comando
n
- La mossa da cui parte la partita. Un valore positivo indica
che il tratto è al BIANCO, un valore negativo che il
tratto è al NERO.l
- La posizione dei pezzi da cui comincia la partita.
PartitaScacchi
.
EccezioniPartita.PosizioneInizialeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |