megamek.common.preference
Class ClientPreferences
java.lang.Object
megamek.common.preference.PreferenceStoreProxy
megamek.common.preference.ClientPreferences
- All Implemented Interfaces:
- IClientPreferences, IPreferenceStore
class ClientPreferences
- extends PreferenceStoreProxy
- implements IClientPreferences
|
Field Summary |
protected java.util.Locale |
locale
|
protected java.io.PrintWriter |
mekHitLocLog
|
| Fields inherited from interface megamek.common.preference.IClientPreferences |
BOARD_HEIGHT, BOARD_WIDTH, DATA_DIRECTORY, DEFAULT_AUTOEJECT_DISABLED, GAMELOG_FILENAME, GAMELOG_KEEP, GOAL_PLAYERS, GUI_NAME, LAST_CONNECT_ADDR, LAST_CONNECT_PORT, LAST_PLAYER_CAMO_NAME, LAST_PLAYER_CATEGORY, LAST_PLAYER_COLOR, LAST_PLAYER_NAME, LAST_SERVER_PASS, LAST_SERVER_PORT, LOCALE, LOG_DIRECTORY, MAP_HEIGHT, MAP_TILESET, MAP_WIDTH, MAX_PATHFINDER_TIME, MECH_DIRECTORY, MEK_HIT_LOC_LOG, MEMORY_DUMP_ON, METASERVER_NAME, PRINT_ENTITY_CHANGE, SHOW_UNIT_ID, STAMP_FILENAMES, STAMP_FORMAT, UNIT_START_CHAR, USE_AVERAGE_SKILLS |
| Methods inherited from class megamek.common.preference.PreferenceStoreProxy |
addPreferenceChangeListener, getBoolean, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLong, getString, putValue, removePreferenceChangeListener, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setValue, setValue, setValue, setValue, setValue, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface megamek.common.preference.IPreferenceStore |
addPreferenceChangeListener, getBoolean, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLong, getString, putValue, removePreferenceChangeListener, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setValue, setValue, setValue, setValue, setValue, setValue |
mekHitLocLog
protected java.io.PrintWriter mekHitLocLog
locale
protected java.util.Locale locale
ClientPreferences
ClientPreferences(IPreferenceStore store)
getPrintEntityChange
public boolean getPrintEntityChange()
- Specified by:
getPrintEntityChange in interface IClientPreferences
getAdvancedProperties
public java.lang.String[] getAdvancedProperties()
- Specified by:
getAdvancedProperties in interface IPreferenceStore
defaultAutoejectDisabled
public boolean defaultAutoejectDisabled()
- Specified by:
defaultAutoejectDisabled in interface IClientPreferences
useAverageSkills
public boolean useAverageSkills()
- Specified by:
useAverageSkills in interface IClientPreferences
getLastConnectAddr
public java.lang.String getLastConnectAddr()
- Specified by:
getLastConnectAddr in interface IClientPreferences
getLastConnectPort
public int getLastConnectPort()
- Specified by:
getLastConnectPort in interface IClientPreferences
getLastPlayerName
public java.lang.String getLastPlayerName()
- Specified by:
getLastPlayerName in interface IClientPreferences
getLastServerPass
public java.lang.String getLastServerPass()
- Specified by:
getLastServerPass in interface IClientPreferences
getLastServerPort
public int getLastServerPort()
- Specified by:
getLastServerPort in interface IClientPreferences
getMapTileset
public java.lang.String getMapTileset()
- Specified by:
getMapTileset in interface IClientPreferences
getMaxPathfinderTime
public int getMaxPathfinderTime()
- Specified by:
getMaxPathfinderTime in interface IClientPreferences
getDataDirectory
public java.lang.String getDataDirectory()
- Specified by:
getDataDirectory in interface IClientPreferences
getLogDirectory
public java.lang.String getLogDirectory()
- Specified by:
getLogDirectory in interface IClientPreferences
getMechDirectory
public java.lang.String getMechDirectory()
- Specified by:
getMechDirectory in interface IClientPreferences
getMekHitLocLog
public java.io.PrintWriter getMekHitLocLog()
- Specified by:
getMekHitLocLog in interface IClientPreferences
getMetaServerName
public java.lang.String getMetaServerName()
- Specified by:
getMetaServerName in interface IClientPreferences
setMetaServerName
public void setMetaServerName(java.lang.String name)
- Specified by:
setMetaServerName in interface IClientPreferences
getGoalPlayers
public int getGoalPlayers()
- Specified by:
getGoalPlayers in interface IClientPreferences
setGoalPlayers
public void setGoalPlayers(int n)
- Specified by:
setGoalPlayers in interface IClientPreferences
getGameLogFilename
public java.lang.String getGameLogFilename()
- Specified by:
getGameLogFilename in interface IClientPreferences
stampFilenames
public boolean stampFilenames()
- Specified by:
stampFilenames in interface IClientPreferences
getStampFormat
public java.lang.String getStampFormat()
- Specified by:
getStampFormat in interface IClientPreferences
getShowUnitId
public boolean getShowUnitId()
- Specified by:
getShowUnitId in interface IClientPreferences
getUnitStartChar
public char getUnitStartChar()
- Specified by:
getUnitStartChar in interface IClientPreferences
keepGameLog
public boolean keepGameLog()
- Specified by:
keepGameLog in interface IClientPreferences
memoryDumpOn
public boolean memoryDumpOn()
- Specified by:
memoryDumpOn in interface IClientPreferences
setDefaultAutoejectDisabled
public void setDefaultAutoejectDisabled(boolean state)
- Specified by:
setDefaultAutoejectDisabled in interface IClientPreferences
setUseAverageSkills
public void setUseAverageSkills(boolean state)
- Specified by:
setUseAverageSkills in interface IClientPreferences
setKeepGameLog
public void setKeepGameLog(boolean state)
- Specified by:
setKeepGameLog in interface IClientPreferences
setLastConnectAddr
public void setLastConnectAddr(java.lang.String serverAddr)
- Specified by:
setLastConnectAddr in interface IClientPreferences
setLastConnectPort
public void setLastConnectPort(int port)
- Specified by:
setLastConnectPort in interface IClientPreferences
setLastPlayerCamoName
public void setLastPlayerCamoName(java.lang.String camoFileName)
- Specified by:
setLastPlayerCamoName in interface IClientPreferences
setLastPlayerCategory
public void setLastPlayerCategory(java.lang.String camoCategory)
- Specified by:
setLastPlayerCategory in interface IClientPreferences
setLastPlayerColor
public void setLastPlayerColor(int colorIndex)
- Specified by:
setLastPlayerColor in interface IClientPreferences
setLastPlayerName
public void setLastPlayerName(java.lang.String name)
- Specified by:
setLastPlayerName in interface IClientPreferences
setLastServerPass
public void setLastServerPass(java.lang.String serverPass)
- Specified by:
setLastServerPass in interface IClientPreferences
setLastServerPort
public void setLastServerPort(int port)
- Specified by:
setLastServerPort in interface IClientPreferences
setMapTileset
public void setMapTileset(java.lang.String name)
- Specified by:
setMapTileset in interface IClientPreferences
setMaxPathfinderTime
public void setMaxPathfinderTime(int i)
- Specified by:
setMaxPathfinderTime in interface IClientPreferences
setGameLogFilename
public void setGameLogFilename(java.lang.String name)
- Specified by:
setGameLogFilename in interface IClientPreferences
setPrintEntityChange
public void setPrintEntityChange(boolean print)
setStampFilenames
public void setStampFilenames(boolean state)
- Specified by:
setStampFilenames in interface IClientPreferences
setStampFormat
public void setStampFormat(java.lang.String format)
- Specified by:
setStampFormat in interface IClientPreferences
setShowUnitId
public void setShowUnitId(boolean state)
- Specified by:
setShowUnitId in interface IClientPreferences
setUnitStartChar
public void setUnitStartChar(char c)
- Specified by:
setUnitStartChar in interface IClientPreferences
getGUIName
public java.lang.String getGUIName()
- Specified by:
getGUIName in interface IClientPreferences
setGUIName
public void setGUIName(java.lang.String guiName)
- Specified by:
setGUIName in interface IClientPreferences
setLocale
public void setLocale(java.lang.String l)
- Specified by:
setLocale in interface IClientPreferences
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale in interface IClientPreferences
getLocaleString
public java.lang.String getLocaleString()
- Specified by:
getLocaleString in interface IClientPreferences
setMekHitLocLog
protected void setMekHitLocLog()
getBoardWidth
public int getBoardWidth()
- Specified by:
getBoardWidth in interface IClientPreferences
getBoardHeight
public int getBoardHeight()
- Specified by:
getBoardHeight in interface IClientPreferences
getMapWidth
public int getMapWidth()
- Specified by:
getMapWidth in interface IClientPreferences
getMapHeight
public int getMapHeight()
- Specified by:
getMapHeight in interface IClientPreferences