|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectictk.boardgame.chess.ChessResult
Setting this for a particular move indicates the termination of the chess game.
Field Summary | |
static int |
BLACK_WIN
the game is unfinished |
static int |
DRAW
the game is unfinished |
static int |
UNDECIDED
the game is unfinished |
static int |
WHITE_WIN
the game is unfinished |
Constructor Summary | |
ChessResult(int i)
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
test to make sure the indexes are equal |
int |
getIndex()
gets the index UNDECIDED, DRAW etc |
int |
hashCode()
|
boolean |
isBlackWin()
|
boolean |
isDraw()
|
boolean |
isUndecided()
returns true if the game is yet undecided. |
boolean |
isWhiteWin()
|
void |
set(int i)
sets the result as UNDECIDED, DRAW, etc |
java.lang.String |
toString()
returns the basic PGN forms that represend UNDECIDED, etc Should only be used for diagnostics. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNDECIDED
public static final int DRAW
public static final int WHITE_WIN
public static final int BLACK_WIN
Constructor Detail |
public ChessResult(int i)
Method Detail |
public void set(int i)
public int getIndex()
public boolean isUndecided()
Result
isUndecided
in interface Result
public boolean isWhiteWin()
public boolean isDraw()
public boolean isBlackWin()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |