public class BFProperties extends java.util.Properties implements FIBSAttributes
Modifier and Type | Field and Description |
---|---|
static int |
RIGHT_DIE_PLAYS |
static int |
RIGHT_DIE_SWAPS |
Constructor and Description |
---|
BFProperties()
Create a new BFProperties.
|
BFProperties(boolean TEST)
constructor for TEST
|
Modifier and Type | Method and Description |
---|---|
double |
getAnimateSpeed() |
int |
getAnimateType() |
java.lang.String |
getAppSignature()
Get the client app signature, the name and version.
|
int |
getMainBotLRSplit()
Get the position of the Left/Right split in the bottom half of the MainDialog
|
int |
getMainHeight()
Get the height for the MainDialog
|
int |
getMainTopBottomSplit()
Get the position of the split for the main top/bottom split in the MainDialog
|
int |
getMainTopLRSplit()
Get the position of the Left/Right split in the top half of the MainDialog
|
int |
getMainWidth()
Get the width for the MainDialog
|
int |
getMainX()
Get the X position for the MainDialog.
|
int |
getMainY()
Get the Y position for the MainDialog.
|
java.lang.String |
getPassword(int profileId)
Get the clear text password of the user in this profile.
|
int |
getProfileCount()
Get the number of profiles that we are keeping track of
|
java.lang.String |
getProfileName(int profileId)
Get the name of this profile (not neccessarily the login name)
|
RatingGraphConfig |
getRatingGraphConfig() |
int |
getRightDieType() |
boolean[] |
getROP()
Get the state of the Ready, Online, Playing triad.
|
int |
getSelectedProfile()
Get the id of the currently selected profile.
|
java.lang.String |
getServerName()
Get the name of the server to connect to for the currently selected profile
|
java.lang.String |
getServerName(int profileId)
get the name of the server we connect to
|
int |
getServerPort()
Get the IP port number to connect to for the currently selected profile.
|
int |
getServerPort(int profileId)
Get the IP port number to connect to for this profile
|
java.lang.String |
getUserName()
Get the user's login name for the currently selected profile.
|
java.lang.String |
getUserName(int profileId)
Get the user's login name for this profile
|
java.lang.String |
getUserPassword()
Get the clear text password of the user in the currently selected profile
|
boolean |
isAllowMultiplePersonalities()
Should we allow the user to have multiple personalities?
The default is no, this is really only a development feature so that i
can connect to fibs.com or buckosoft.com
|
boolean |
isAnimateMoves()
Should we display messages that we transmit to the fibs server?
|
boolean |
isAudioCues()
Should we play the beeps and boops?
|
boolean |
isAutoConnect()
Should we automatically connect to the server when the app starts up?
|
boolean |
isAutoGreedyBearOff()
Should we automatically turn on Greedy Bear Offs when the game turns to a race?
|
boolean |
isChangeTabOnNewMsg()
Should we switch to the tab that just received a chat message?
|
boolean |
isDEBUG_ShowAnimatePath()
Should we display a line showing the path the checker will animate along?
|
boolean |
isDEBUG_ShowUnhandledCookies()
Should we display unhandled cookies as an error?
|
boolean |
isDisplayRecv()
OBSOLETE::
|
boolean |
isDisplayXmit()
Should we display messages that we transmit to the fibs server?
|
boolean |
isDontChangeTabOnShout()
Should we switch to the tab that just received a chat message?
|
boolean |
isFibsReadyToPlay()
Has the user marked himself as ready to play?
|
boolean |
isHighDieLeft() |
boolean |
isHoverHelpers()
Should we show the hover helpers during a player's move
The default is yes, max eye candy is on.
|
boolean |
isMsgIgnoreShouts()
Should we ignore people shouting? (global chat messages)
|
boolean |
isMsgLoginsAndOuts()
Should we display messages about other people logging in and out?
|
boolean |
isMsgOtherMatchInfo()
Should we display messages about other matches?
|
boolean |
isMsgShowGameMoves()
Should we display game move messages (in its own window)
|
boolean |
isNewbie()
Is this user a newbie?
|
boolean |
isShowPointNumbers()
Should we display the numbers on the points on the board?
|
boolean |
isStdoutNetworkMessages()
Should we display received network messages on stdout?
|
void |
setAllowMultiplePersonalities(boolean b)
Set the value for allow multiple personalities
|
void |
setAnimateMoves(boolean b)
Set whether to display messages that we transmit to the fibs server.
|
void |
setAnimateSpeed(double speed) |
void |
setAnimateType(int type) |
void |
setAudioCues(boolean b)
Set whether to play the audio cues
|
void |
setAutoConnect(boolean b)
Set the auto connect value
|
void |
setAutoGreedyBearOff(boolean b)
Set the auto Greedy Bear Off
|
void |
setChangeTabOnNewMsg(boolean b)
Set whether to switch to the tab that just received a chat message
|
void |
setDEBUG_ShowAnimatePath(boolean b)
Set whether we should display a line showing the path the checker will animate along
|
void |
setDEBUG_ShowUnhandledCookies(boolean b)
Set whether we should display unhandled cookies
|
void |
setDisplayRecv(boolean b)
OBSOLETE:
|
void |
setDisplayXmit(boolean b)
Set whether to display messages that we transmit to the fibs server.
|
void |
setDontChangeTabOnShout(boolean b)
Set whether to switch to the tab that just received a chat message
|
void |
setFibsReadyToPlay(boolean b)
Set whether we are ready to play
|
void |
setHighDieLeft(boolean highDieLeft) |
void |
setHoverHelpers(boolean b)
Should we show the hover helpers during a player's move
|
void |
setMainBotLRSplit(int sp)
Set the position of the Left/Right split in the bottom half of the MainDialog
|
void |
setMainHeight(int height)
Set the height for the MainDialog
|
void |
setMainTopBottomSplit(int sp)
Set the position of the split for the main top/bottom split in the MainDialog
|
void |
setMainTopLRSplit(int sp)
Set the position of the Left/Right split in the top half of the MainDialog
|
void |
setMainWidth(int width)
Set the width of the MainDialog
|
void |
setMainX(int x)
Set the X position of the MainDialog on the screen.
|
void |
setMainY(int y)
Set the Y position of the MainDialog on the screen.
|
void |
setMsgIgnoreShouts(boolean b)
Set whether to ignore shouts or not
|
void |
setMsgLoginsAndOuts(boolean b)
Set whether to display messages about other people logging in and out
|
void |
setMsgOtherMatchInfo(boolean b)
Set whether to display messages about other messages
|
void |
setMsgShowGameMoves(boolean b)
Set whether to display game move messages
|
void |
setPassword(int profileId,
java.lang.String s)
Set the clear text password of the user for this profile.
|
void |
setProfileName(int profileId,
java.lang.String s)
Set the name of this profile (not neccessarily the login name)
|
void |
setRatingGraphConfig(RatingGraphConfig ratingGraphConfig) |
void |
setRightDieType(int rightDieType) |
void |
setROP(boolean[] rop)
Set the state of the Ready, Online, Playing triad.
|
void |
setSelectedProfile(int profileId)
Set the id of the currently selected profile.
|
void |
setServerName(int profileId,
java.lang.String s)
Set the name of the server that we connect to in this profile
|
void |
setServerPort(int profileId,
int port)
Set the IP port number to connect to for this profile
|
void |
setShowPointNumbers(boolean b)
Set whether to display the numbers on the points on the board.
|
void |
setStdoutNetworkMessages(boolean b)
Set whether to display received network messages on stdout.
|
void |
setUserName(int profileId,
java.lang.String s)
Set the user's login name for this profile.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public static final int RIGHT_DIE_PLAYS
public static final int RIGHT_DIE_SWAPS
public BFProperties(boolean TEST)
TEST
- true for test modepublic BFProperties()
public java.lang.String getAppSignature()
FIBSAttributes
getAppSignature
in interface FIBSAttributes
public boolean isNewbie()
public int getSelectedProfile()
public void setSelectedProfile(int profileId)
profileId
- The id of the profile that the user selected.public int getProfileCount()
public java.lang.String getProfileName(int profileId)
profileId
- The profile to querypublic void setProfileName(int profileId, java.lang.String s)
profileId
- The profile to sets
- The name of the profilepublic java.lang.String getUserName()
getUserName
in interface FIBSAttributes
public java.lang.String getUserName(int profileId)
profileId
- The profile id to querypublic void setUserName(int profileId, java.lang.String s)
profileId
- The profile id to query.s
- The usernamepublic java.lang.String getUserPassword()
getUserPassword
in interface FIBSAttributes
public java.lang.String getPassword(int profileId)
profileId
- The profile id to query.public void setPassword(int profileId, java.lang.String s)
profileId
- The profile id to query.s
- The clear text passwordpublic java.lang.String getServerName()
getServerName
in interface FIBSAttributes
public java.lang.String getServerName(int profileId)
public void setServerName(int profileId, java.lang.String s)
profileId
- The profile id to sets
- The server name.public int getServerPort()
getServerPort
in interface FIBSAttributes
public int getServerPort(int profileId)
profileId
- The profile id to querypublic void setServerPort(int profileId, int port)
profileId
- The profile id to queryport
- The port number (if it's not 4321, then uh oh)public int getMainWidth()
public void setMainWidth(int width)
width
- The width in pixelspublic int getRightDieType()
public void setRightDieType(int rightDieType)
public boolean isHighDieLeft()
public void setHighDieLeft(boolean highDieLeft)
public int getMainHeight()
public void setMainHeight(int height)
height
- The height in pixels.public int getMainX()
public void setMainX(int x)
x
- The X positionpublic int getMainY()
public void setMainY(int y)
y
- The Y positionpublic int getMainTopBottomSplit()
public void setMainTopBottomSplit(int sp)
sp
- The position to set the splitter at.public int getMainTopLRSplit()
public void setMainTopLRSplit(int sp)
sp
- The position of the splitpublic int getMainBotLRSplit()
public void setMainBotLRSplit(int sp)
sp
- The position of the splitpublic boolean isShowPointNumbers()
public void setShowPointNumbers(boolean b)
b
- true == yespublic boolean isAutoConnect()
public void setAutoConnect(boolean b)
b
- true == yespublic boolean isAutoGreedyBearOff()
public void setAutoGreedyBearOff(boolean b)
b
- true == yespublic boolean isDisplayXmit()
isDisplayXmit
in interface FIBSAttributes
public void setDisplayXmit(boolean b)
b
- true == display thempublic boolean isAnimateMoves()
public void setAnimateMoves(boolean b)
b
- true == display thempublic int getAnimateType()
public void setAnimateType(int type)
public double getAnimateSpeed()
public void setAnimateSpeed(double speed)
public boolean isDisplayRecv()
public void setDisplayRecv(boolean b)
b
- public boolean isStdoutNetworkMessages()
isStdoutNetworkMessages
in interface FIBSAttributes
public void setStdoutNetworkMessages(boolean b)
b
- true == display 'empublic boolean isAllowMultiplePersonalities()
public void setAllowMultiplePersonalities(boolean b)
b
- true == yespublic boolean isHoverHelpers()
public void setHoverHelpers(boolean b)
b
- true == yespublic boolean isAudioCues()
public void setAudioCues(boolean b)
b
- false = don't make noisepublic boolean isMsgIgnoreShouts()
public void setMsgIgnoreShouts(boolean b)
b
- true == ignore thempublic boolean isMsgShowGameMoves()
public void setMsgShowGameMoves(boolean b)
b
- true == display thempublic boolean isMsgOtherMatchInfo()
public void setMsgOtherMatchInfo(boolean b)
b
- true == display thempublic boolean isChangeTabOnNewMsg()
public void setChangeTabOnNewMsg(boolean b)
b
- true == display thempublic boolean isDontChangeTabOnShout()
public void setDontChangeTabOnShout(boolean b)
b
- true == display thempublic boolean isMsgLoginsAndOuts()
public void setMsgLoginsAndOuts(boolean b)
b
- true == display thempublic boolean isFibsReadyToPlay()
public void setFibsReadyToPlay(boolean b)
b
- true == yespublic void setROP(boolean[] rop)
rop
- rop[0] = the Ready state, rop[1] = the Online state, rop[2] = the Playing state.public boolean[] getROP()
public RatingGraphConfig getRatingGraphConfig()
public void setRatingGraphConfig(RatingGraphConfig ratingGraphConfig)
public boolean isDEBUG_ShowUnhandledCookies()
public void setDEBUG_ShowUnhandledCookies(boolean b)
b
- true == ouipublic boolean isDEBUG_ShowAnimatePath()
public void setDEBUG_ShowAnimatePath(boolean b)
b
- true == oui