Internet Chess ToolKit
v0.2.0

ictk.boardgame.chess
Class ChessPlayer

java.lang.Object
  extended byictk.boardgame.Player
      extended byictk.boardgame.chess.ChessPlayer
Direct Known Subclasses:
ChessTeam

public class ChessPlayer
extends Player

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

NO_TITLE

public static final byte NO_TITLE
See Also:
Constant Field Values

GM

public static final byte GM
See Also:
Constant Field Values

WGM

public static final byte WGM
See Also:
Constant Field Values

IM

public static final byte IM
See Also:
Constant Field Values

WIM

public static final byte WIM
See Also:
Constant Field Values

FM

public static final byte FM
See Also:
Constant Field Values

WFM

public static final byte WFM
See Also:
Constant Field Values

NM

public static final byte NM
See Also:
Constant Field Values

WNM

public static final byte WNM
See Also:
Constant Field Values

OTHER_TITLE

public static final byte OTHER_TITLE
See Also:
Constant Field Values
Constructor Detail

ChessPlayer

public ChessPlayer()

ChessPlayer

public ChessPlayer(java.lang.String n)

ChessPlayer

public ChessPlayer(java.lang.String n,
                   int _rating)
Method Detail

getTitle

public byte getTitle()
returns a title equal to on of the preset static values on ChessPlayer.


getRating

public int getRating()
typically this is the Elo rating set by FIDE, but could also be FICS, USCF or other numerical rating.


setTitle

public void setTitle(int t)
returns a title equal to on of the preset static values on ChessPlayer.


setRating

public void setRating(int rating)
typically this is the Elo rating set by FIDE, but could also be FICS, USCF or other numerical rating.


toString

public java.lang.String toString()
diagonostic function.

Overrides:
toString in class Player

Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .