|
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.net.ics.ICSAccountType
Every user on an ICS system may have different account attributes associated with it. These attributes are held in this object as flags for the account. Some flags are mutually exclusive on the server, but this object does not take that into account.
Field Summary | |
static int |
ADMIN
|
static int |
BLIND
|
static int |
CHESS_ADVISOR
|
static int |
COMPUTER
|
static int |
DEMO
|
static int |
DISPLAY_MANAGER
|
static int |
FM
|
static int |
GM
|
static int |
HELPER
|
static int |
IM
|
static int |
NUM_FLAGS
|
static int |
SERVICE_REP
|
static int |
TEAM
|
static int |
TOURNAMENT_DIRECTOR
|
static int |
TOURNAMENT_MANAGER
|
static int |
UNREGISTERED
|
static int |
WFM
|
static int |
WGM
|
static int |
WIM
|
Constructor Summary | |
ICSAccountType()
|
|
ICSAccountType(java.lang.String s)
|
Method Summary | |
boolean |
is(int type)
tests to see if a particular lfag is set to true or not. |
void |
set(int type,
boolean t)
sets a flag either on or off. |
void |
set(java.lang.String s)
converts a string in the format "(SR)(TM)" to set the currect flags. |
java.lang.String |
toString()
converts the account flags into their string representation. |
static java.lang.String |
typeToString(int type)
converts a flag into its string representation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNREGISTERED
public static final int COMPUTER
public static final int BLIND
public static final int TEAM
public static final int ADMIN
public static final int SERVICE_REP
public static final int HELPER
public static final int CHESS_ADVISOR
public static final int TOURNAMENT_MANAGER
public static final int TOURNAMENT_DIRECTOR
public static final int DISPLAY_MANAGER
public static final int WFM
public static final int FM
public static final int WIM
public static final int IM
public static final int WGM
public static final int GM
public static final int DEMO
public static final int NUM_FLAGS
Constructor Detail |
public ICSAccountType()
public ICSAccountType(java.lang.String s) throws java.io.IOException
Method Detail |
public void set(int type, boolean t)
public boolean is(int type)
public void set(java.lang.String s) throws java.io.IOException
java.io.IOException
- if an account type isn't recognized.public static java.lang.String typeToString(int type)
public java.lang.String toString()
|
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 |