|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOthelloPiece
A Java "enum", which is used for the different pieces that can be on the board. The constructor is private in order to as closely simulate an enum as possible.
Field Summary | |
static OthelloPiece |
Black
|
static OthelloPiece |
White
|
Method Summary | |
Color |
color()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final OthelloPiece Black
public static final OthelloPiece White
Method Detail |
public String toString()
public Color color()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |