public class Document
extends java.lang.Object
Constructor and Description |
---|
Document() |
Modifier and Type | Method and Description |
---|---|
Board |
getBoard()
Get the Board.
|
int |
getExperience()
How many games have You played?
|
java.lang.String |
getMissMannersString(java.lang.String playerName)
If MissManners issued a warning about a player, this is a tooltip string describing it.
|
java.lang.String |
getName()
Return the userid that this player logged in as.
|
double |
getRating()
What is Your FIBS rating?
|
int |
getRedoubles()
Je ne comprends pas
|
java.lang.String |
getSavedMatchString(java.lang.String playerName)
If you have a saved match against this player, this is a tooltip string describing it.
|
java.lang.String |
getTimezone()
Get your timezone.
|
boolean |
isAllowPip() |
boolean |
isAskDouble()
Does the server push dice at you or wait to see if you want to roll or double
|
boolean |
isAutoBoard() |
boolean |
isAutoDouble() |
boolean |
isAutoMove() |
boolean |
isAway()
Have You tagged yourself as away?
|
boolean |
isBell()
Like, totally ignored.
|
boolean |
isCrawford()
Is this a crawford game?
|
boolean |
isGreedy()
Are You using greedy bearoffs?
|
boolean |
isMoreBoards()
This is pretty darn useful for client programs, so if you see it toggled off you probably want to toggle it back on.
|
boolean |
isMoves() |
boolean |
isNotify()
Are we being notified when new users log on and off?
|
boolean |
isRatings() |
boolean |
isReady()
Are you ready to play?
|
boolean |
isReport()
Are we being notified about the starting and ending of other matches?
|
boolean |
isSilent()
Do we receive the shout messages (general chat)?
Note that BuckoFIBS always receives the shouts and filters them from display. |
SavedMatch |
parseMissManners(java.lang.String s)
Parse a MissManners warning line from FIBS.
|
void |
parseOwnInfo(java.lang.String s)
Parse the Own Info command from FIBS.
|
SavedMatch |
parseSavedMatch(java.lang.String s)
Parse a saved match line from FIBS.
|
void |
removeSavedMatch(java.lang.String playerName)
Remove a player from the savedMatches list.
|
void |
resetGame()
Called at the beginning of a game, resets game user attributes
|
void |
setAskDouble(boolean askDoubles) |
void |
setAutoBoard(boolean autoBoard) |
void |
setBoard(Board board) |
void |
setGreedy(boolean greedy) |
void |
setReady(boolean ready)
Set whether we are ready to play
|
void |
setYouDouble(boolean doubleFlag)
Set and clear the state where You push a double to Your opponent.
|
public Board getBoard()
public void setBoard(Board board)
board
- the board to setpublic void resetGame()
public void setYouDouble(boolean doubleFlag)
doubleFlag
- true = you have doubledpublic java.lang.String getName()
public boolean isAllowPip()
public boolean isAutoBoard()
public void setAutoBoard(boolean autoBoard)
autoBoard
- the autoBoard to setpublic boolean isAutoDouble()
public boolean isAutoMove()
public boolean isAway()
public boolean isBell()
public boolean isCrawford()
public boolean isAskDouble()
public void setAskDouble(boolean askDoubles)
public int getExperience()
public boolean isGreedy()
public void setGreedy(boolean greedy)
public boolean isMoreBoards()
public boolean isMoves()
public boolean isNotify()
public double getRating()
public boolean isRatings()
public boolean isReady()
public void setReady(boolean ready)
ready
- the ready to setpublic int getRedoubles()
public boolean isReport()
public boolean isSilent()
public java.lang.String getTimezone()
public java.lang.String getSavedMatchString(java.lang.String playerName)
playerName
- The player to check for saved matches.public SavedMatch parseSavedMatch(java.lang.String s)
s
- The stringpublic void removeSavedMatch(java.lang.String playerName)
playerName
- The name of the player you just finished a match with.public java.lang.String getMissMannersString(java.lang.String playerName)
playerName
- The player to check for a MissManners warning.public SavedMatch parseMissManners(java.lang.String s)
s
- The stringpublic void parseOwnInfo(java.lang.String s)
s
- The Own Info line received from FIBS0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 name allowpip autoboard autodouble automove away bell crawford double experience greedy moreboards moves notify rating ratings ready redoubles report silent timezone 2 myself 1 1 0 0 0 0 1 1 2396 0 1 0 1 3457.85 0 0 0 0 0 Australia/Melbourne