megamek.common.preference
Class ClientPreferences

java.lang.Object
  extended by megamek.common.preference.PreferenceStoreProxy
      extended by 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 class megamek.common.preference.PreferenceStoreProxy
store
 
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
 
Fields inherited from interface megamek.common.preference.IPreferenceStore
BOOLEAN_DEFAULT, DOUBLE_DEFAULT, FALSE, FLOAT_DEFAULT, INT_DEFAULT, LONG_DEFAULT, STRING_DEFAULT, TRUE
 
Constructor Summary
ClientPreferences(IPreferenceStore store)
           
 
Method Summary
 boolean defaultAutoejectDisabled()
           
 java.lang.String[] getAdvancedProperties()
           
 int getBoardHeight()
           
 int getBoardWidth()
           
 java.lang.String getDataDirectory()
           
 java.lang.String getGameLogFilename()
           
 int getGoalPlayers()
           
 java.lang.String getGUIName()
           
 java.lang.String getLastConnectAddr()
           
 int getLastConnectPort()
           
 java.lang.String getLastPlayerName()
           
 java.lang.String getLastServerPass()
           
 int getLastServerPort()
           
 java.util.Locale getLocale()
           
 java.lang.String getLocaleString()
           
 java.lang.String getLogDirectory()
           
 int getMapHeight()
           
 java.lang.String getMapTileset()
           
 int getMapWidth()
           
 int getMaxPathfinderTime()
           
 java.lang.String getMechDirectory()
           
 java.io.PrintWriter getMekHitLocLog()
           
 java.lang.String getMetaServerName()
           
 boolean getPrintEntityChange()
           
 boolean getShowUnitId()
           
 java.lang.String getStampFormat()
           
 char getUnitStartChar()
           
 boolean keepGameLog()
           
 boolean memoryDumpOn()
           
 void setDefaultAutoejectDisabled(boolean state)
           
 void setGameLogFilename(java.lang.String name)
           
 void setGoalPlayers(int n)
           
 void setGUIName(java.lang.String guiName)
           
 void setKeepGameLog(boolean state)
           
 void setLastConnectAddr(java.lang.String serverAddr)
           
 void setLastConnectPort(int port)
           
 void setLastPlayerCamoName(java.lang.String camoFileName)
           
 void setLastPlayerCategory(java.lang.String camoCategory)
           
 void setLastPlayerColor(int colorIndex)
           
 void setLastPlayerName(java.lang.String name)
           
 void setLastServerPass(java.lang.String serverPass)
           
 void setLastServerPort(int port)
           
 void setLocale(java.lang.String l)
           
 void setMapTileset(java.lang.String name)
           
 void setMaxPathfinderTime(int i)
           
protected  void setMekHitLocLog()
           
 void setMetaServerName(java.lang.String name)
           
 void setPrintEntityChange(boolean print)
           
 void setShowUnitId(boolean state)
           
 void setStampFilenames(boolean state)
           
 void setStampFormat(java.lang.String format)
           
 void setUnitStartChar(char c)
           
 void setUseAverageSkills(boolean state)
           
 boolean stampFilenames()
           
 boolean useAverageSkills()
           
 
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
 

Field Detail

mekHitLocLog

protected java.io.PrintWriter mekHitLocLog

locale

protected java.util.Locale locale
Constructor Detail

ClientPreferences

ClientPreferences(IPreferenceStore store)
Method Detail

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