|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComando
ComandoSposta
public class ComandoSposta
Modella un comando che consente al giocatore di spostare un numero di armate da un territorio all'altro.
| Constructor Summary | |
|---|---|
ComandoSposta(java.lang.String da,
java.lang.String a)
Inizializza il comando sposta armate |
|
| Method Summary | |
|---|---|
boolean |
esegui(Giocatore giocatore,
Tabellone planisfero)
Esegue il comando |
java.lang.String |
getNomeComando()
Restituisce il nome del comando |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComandoSposta(java.lang.String da,
java.lang.String a)
da - territorio dal quale spostare le armatea - territorio sul quale spostare le armate| Method Detail |
|---|
public java.lang.String getNomeComando()
Comando
getNomeComando in class Comando
public boolean esegui(Giocatore giocatore,
Tabellone planisfero)
throws java.io.IOException
Comando
esegui in class Comandogiocatore - esecutore del comandoplanisfero - riferimento al tabellone di gioco
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||