Package megamek.common.preference
Class ClientPreferences
java.lang.Object
megamek.common.preference.PreferenceStoreProxy
megamek.common.preference.ClientPreferences
- All Implemented Interfaces:
IPreferenceStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Localestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected PrintWriterstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringA user-specified directory, typically outside the MM directory, where content may be loaded from.Fields inherited from class megamek.common.preference.PreferenceStoreProxy
storeFields inherited from interface megamek.common.preference.IPreferenceStore
BOOLEAN_DEFAULT, DOUBLE_DEFAULT, FALSE, FLOAT_DEFAULT, INT_DEFAULT, LONG_DEFAULT, STRING_DEFAULT, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanString[]intintDeprecated, for removal: This API element is subject to removal in a future version.booleanbooleanintDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intintintintintDeprecated, for removal: This API element is subject to removal in a future version.booleanbooleanbooleanbooleanbooleancharbooleanbooleanbooleanvoidsetAskForVictoryList(boolean value) voidvoidsetDataLogging(boolean state) voidsetDefaultAutoEjectDisabled(boolean state) voidsetEnableExperimentalBotFeatures(boolean value) voidvoidsetGameLogFilename(String name) voidsetGenerateNames(boolean state) voidsetGoalPlayers(int n) Deprecated, for removal: This API element is subject to removal in a future version.voidsetGUIName(String guiName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetKeepGameLog(boolean state) voidsetLastConnectAddr(String serverAddr) voidsetLastConnectPort(int port) voidsetLastPlayerName(String name) voidsetLastScenario(String scenario) voidsetLastServerPass(String serverPass) voidsetLastServerPort(int port) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidsetMapTileset(String name) voidsetMaxPathfinderTime(int i) protected voidvoidsetMetaServerName(String name) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMinimapTheme(String theme) voidsetMmlPath(String mmlPath) voidsetPrintEntityChange(boolean print) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidsetShowAutoResolvePanel(boolean value) voidsetShowIPAddressesInChat(boolean value) voidsetShowUnitId(boolean state) voidsetSpritesOnly(boolean value) voidsetStampFilenames(boolean state) voidsetStampFormat(String format) voidsetStrategicViewTheme(String theme) voidsetUnitStartChar(char c) voidsetUseAverageSkills(boolean state) voidsetUseGpInUnitSelection(boolean state) voidsetUserDir(String userDir) booleanbooleanbooleanMethods inherited from class megamek.common.preference.PreferenceStoreProxy
addPreferenceChangeListener, getBoolean, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLong, getString, hasProperty, putValue, removePreferenceChangeListener, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setValue, setValue, setValue, setValue, setValue, setValue
-
Field Details
-
LAST_CONNECT_ADDR
- See Also:
-
LAST_CONNECT_PORT
- See Also:
-
LAST_PLAYER_NAME
- See Also:
-
LAST_SERVER_PASS
- See Also:
-
LAST_SERVER_PORT
- See Also:
-
LOCALE
- See Also:
-
MAP_TILESET
- See Also:
-
MINIMAP_THEME
- See Also:
-
STRATEGIC_VIEW_THEME
- See Also:
-
MAX_PATHFINDER_TIME
- See Also:
-
DATA_DIRECTORY
- See Also:
-
LOG_DIRECTORY
- See Also:
-
MEK_DIRECTORY
- See Also:
-
MEK_HIT_LOC_LOG
- See Also:
-
MEMORY_DUMP_ON
- See Also:
-
DEBUG_OUTPUT_ON
- See Also:
-
FORCE_GENERATOR_DIAGNOSTICS
- See Also:
-
GAME_LOG_KEEP
- See Also:
-
GAME_LOG_FILENAME
- See Also:
-
AUTO_RESOLVE_GAME_LOG_FILENAME
- See Also:
-
STAMP_FILENAMES
- See Also:
-
DATA_LOGGING
- See Also:
-
STAMP_FORMAT
- See Also:
-
SHOW_UNIT_ID
- See Also:
-
USE_CASPAR
- See Also:
-
UNIT_START_CHAR
- See Also:
-
DEFAULT_AUTO_EJECT_DISABLED
- See Also:
-
USE_AVERAGE_SKILLS
- See Also:
-
USE_GP_IN_UNIT_SELECTION
- See Also:
-
GENERATE_NAMES
- See Also:
-
METASERVER_NAME
- See Also:
-
GOAL_PLAYERS
- See Also:
-
GUI_NAME
- See Also:
-
PRINT_ENTITY_CHANGE
- See Also:
-
BOARD_WIDTH
- See Also:
-
BOARD_HEIGHT
- See Also:
-
MAP_WIDTH
- See Also:
-
MAP_HEIGHT
- See Also:
-
REPORT_KEYWORDS
- See Also:
-
REPORT_FILTER_KEYWORDS
- See Also:
-
IP_ADDRESSES_IN_CHAT
- See Also:
-
SPRITES_ONLY
- See Also:
-
ENABLE_EXPERIMENTAL_BOT_FEATURES
- See Also:
-
NAG_ASK_FOR_VICTORY_LIST
- See Also:
-
SHOW_AUTO_RESOLVE_PANEL
- See Also:
-
FAVORITE_PRINCESS_BEHAVIOR_SETTING
- See Also:
-
LAST_SCENARIO
- See Also:
-
USER_DIR
A user-specified directory, typically outside the MM directory, where content may be loaded from.- See Also:
-
MML_PATH
- See Also:
-
mekHitLocLog
-
locale
-
-
Constructor Details
-
ClientPreferences
-
-
Method Details
-
getPrintEntityChange
public boolean getPrintEntityChange() -
getAdvancedProperties
-
defaultAutoEjectDisabled
public boolean defaultAutoEjectDisabled() -
useAverageSkills
public boolean useAverageSkills() -
useGPinUnitSelection
public boolean useGPinUnitSelection() -
generateNames
public boolean generateNames() -
getLastConnectAddr
-
getLastConnectPort
public int getLastConnectPort() -
getLastPlayerName
-
getLastServerPass
-
getLastServerPort
public int getLastServerPort() -
getMapTileset
-
getMaxPathfinderTime
public int getMaxPathfinderTime() -
getDataDirectory
Deprecated, for removal: This API element is subject to removal in a future version. -
getLogDirectory
-
getMekDirectory
Deprecated, for removal: This API element is subject to removal in a future version. -
getMekHitLocLog
-
getMetaServerName
-
setMetaServerName
Deprecated, for removal: This API element is subject to removal in a future version. -
getGoalPlayers
Deprecated, for removal: This API element is subject to removal in a future version. -
setGoalPlayers
Deprecated, for removal: This API element is subject to removal in a future version. -
getGameLogFilename
-
getAutoResolveGameLogFilename
-
dataLoggingEnabled
public boolean dataLoggingEnabled() -
stampFilenames
public boolean stampFilenames() -
getStampFormat
-
getShowUnitId
public boolean getShowUnitId() -
getUseCASPAR
public boolean getUseCASPAR()- Returns:
trueif the experimental CASPAR bot is offered as a selectable AI. This is a hidden option: it is not shown in any settings UI and defaults tofalse; enable it by hand-adding<UseCASPAR>true</UseCASPAR>to clientsettings.xml.
-
getUnitStartChar
public char getUnitStartChar() -
keepGameLog
public boolean keepGameLog() -
memoryDumpOn
public boolean memoryDumpOn() -
debugOutputOn
public boolean debugOutputOn() -
getForceGeneratorDiagnostics
public boolean getForceGeneratorDiagnostics()- Returns:
- whether the Force Generator should write its diagnostic CSV tuning files.
-
setDefaultAutoEjectDisabled
public void setDefaultAutoEjectDisabled(boolean state) -
setUseAverageSkills
public void setUseAverageSkills(boolean state) -
setUseGpInUnitSelection
public void setUseGpInUnitSelection(boolean state) -
setGenerateNames
public void setGenerateNames(boolean state) -
setKeepGameLog
public void setKeepGameLog(boolean state) -
setLastConnectAddr
-
setLastConnectPort
public void setLastConnectPort(int port) -
setLastPlayerName
-
setLastServerPass
-
setLastServerPort
Deprecated, for removal: This API element is subject to removal in a future version. -
setMapTileset
-
setMaxPathfinderTime
public void setMaxPathfinderTime(int i) -
setGameLogFilename
-
setAutoResolveGameLogFilename
-
setPrintEntityChange
Deprecated, for removal: This API element is subject to removal in a future version. -
setStampFilenames
public void setStampFilenames(boolean state) -
setDataLogging
public void setDataLogging(boolean state) -
setStampFormat
-
setShowUnitId
public void setShowUnitId(boolean state) -
setUnitStartChar
public void setUnitStartChar(char c) -
getGUIName
Deprecated, for removal: This API element is subject to removal in a future version. -
setGUIName
Deprecated, for removal: This API element is subject to removal in a future version. -
getReportKeywords
-
setReportKeywords
-
getReportFilterKeywords
-
setReportFilterKeywords
-
getShowIPAddressesInChat
public boolean getShowIPAddressesInChat() -
setShowIPAddressesInChat
public void setShowIPAddressesInChat(boolean value) -
getSpritesOnly
public boolean getSpritesOnly() -
setSpritesOnly
public void setSpritesOnly(boolean value) -
setEnableExperimentalBotFeatures
public void setEnableExperimentalBotFeatures(boolean value) -
getEnableExperimentalBotFeatures
public boolean getEnableExperimentalBotFeatures() -
setStrategicViewTheme
-
getStrategicViewTheme
-
setMinimapTheme
-
getMinimapTheme
-
setLocale
-
getLocale
-
getLocaleString
-
setMekHitLocLog
protected void setMekHitLocLog() -
getBoardWidth
public int getBoardWidth() -
getBoardHeight
public int getBoardHeight() -
getMapWidth
public int getMapWidth() -
getMapHeight
public int getMapHeight() -
getUserDir
- Returns:
- The absolute user directory path (usually outside of MM). Does not end in a slash or backslash.
-
setUserDir
-
getMmlPath
-
setMmlPath
-
askForVictoryList
public boolean askForVictoryList() -
setAskForVictoryList
public void setAskForVictoryList(boolean value) -
setShowAutoResolvePanel
public void setShowAutoResolvePanel(boolean value) -
getShowAutoResolvePanel
public boolean getShowAutoResolvePanel() -
getFavoritePrincessBehaviorSetting
-
setFavoritePrincessBehaviorSetting
-
setLastScenario
-
getLastScenario
-