|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMossa
public class Mossa
Rappresenta una mossa di gioco, cioè le coordinate di una casella della scacchiera indicate da un certo Giocatore
Constructor Summary | |
---|---|
Mossa(int x,
int y,
Giocatore unGiocatore)
Costruisce una mossa di un giocatore. |
Method Summary | |
---|---|
Giocatore |
getGiocatore()
Restituisce un riferimento al giocatore che ha fatto questa mossa. |
int |
getX()
Restituisce la coordinata x di questa mossa. |
int |
getY()
Restituisce la coordinata y di questa mossa. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mossa(int x, int y, Giocatore unGiocatore)
x
- la coordinata x della mossa sulla scacchiera 3 x 3 (valori da 0 a 2)y
- la coordinata y della mossa sulla scacchiera 3 x 3 (valori da 0 a 2)unGiocatore
- il giocatore che fa questa mossaMethod Detail |
---|
public Giocatore getGiocatore()
public int getX()
public int getY()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |