|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ictk.boardgame.Player ictk.boardgame.chess.ChessPlayer
A ChessPlayer is usually a person, but could be a computer or a Team if it implements the appropriate interface.
Field Summary | |
static byte |
FM
|
static byte |
GM
|
static byte |
IM
|
static byte |
NM
|
static byte |
NO_TITLE
|
static byte |
OTHER_TITLE
|
static byte |
WFM
|
static byte |
WGM
|
static byte |
WIM
|
static byte |
WNM
|
Constructor Summary | |
ChessPlayer()
|
|
ChessPlayer(java.lang.String n)
|
|
ChessPlayer(java.lang.String n,
int _rating)
|
Method Summary | |
int |
getRating()
typically this is the Elo rating set by FIDE, but could also be FICS, USCF or other numerical rating. |
byte |
getTitle()
returns a title equal to on of the preset static values on ChessPlayer. |
void |
setRating(int rating)
typically this is the Elo rating set by FIDE, but could also be FICS, USCF or other numerical rating. |
void |
setTitle(int t)
returns a title equal to on of the preset static values on ChessPlayer. |
java.lang.String |
toString()
diagonostic function. |
Methods inherited from class ictk.boardgame.Player |
equals, getFirstName, getLastName, getName, hashCode, setFirstName, setLastName |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte NO_TITLE
public static final byte GM
public static final byte WGM
public static final byte IM
public static final byte WIM
public static final byte FM
public static final byte WFM
public static final byte NM
public static final byte WNM
public static final byte OTHER_TITLE
Constructor Detail |
public ChessPlayer()
public ChessPlayer(java.lang.String n)
public ChessPlayer(java.lang.String n, int _rating)
Method Detail |
public byte getTitle()
public int getRating()
public void setTitle(int t)
public void setRating(int rating)
public java.lang.String toString()
toString
in class Player
|
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 |