|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPiece
public class Piece
Constructor Summary | |
---|---|
Piece()
constructeur 1: tire aleatoirement une valeur |
|
Piece(boolean isPile)
Constructeur 2: la valeur de la piece est donnee a l'appel |
Method Summary | |
---|---|
void |
flip()
change l'etat de la piece (aleatoirement) |
boolean |
isPile()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Piece()
public Piece(boolean isPile)
isPile
- est a vrai si l'on veut initialiser la piece a pile, false sinonMethod Detail |
---|
public void flip()
public boolean isPile()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |