net.sourceforge.simplegamenet.specs.tools
Class StandardPlayerSettings

java.lang.Object
  extended bynet.sourceforge.simplegamenet.specs.to.PlayerSettings
      extended bynet.sourceforge.simplegamenet.specs.tools.StandardPlayerSettings
All Implemented Interfaces:
Comparable, Serializable

public class StandardPlayerSettings
extends PlayerSettings

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.simplegamenet.specs.to.PlayerSettings
BOT, engine, HOST, MAXIMUM_NICKNAME_LENGTH, OBSERVING, PARTICIPATING, USER
 
Constructor Summary
StandardPlayerSettings(Engine engine, Integer playerID, int playerType, String nickname, int playingState)
           
 
Method Summary
 PlayerSettings createChangedPlayerSettings(PlayerSettingsPanel playerSettingsPanel)
          Creates a new PlayerSettings based on the PlayerSettingsPanel.
 PlayerSettingsPanel createPlayerSettingsPanel()
          Creates a new PlayerSettingsPanel based on these player settings.
 
Methods inherited from class net.sourceforge.simplegamenet.specs.to.PlayerSettings
compareTo, equals, getNickname, getPlayerID, getPlayerType, getPlayingState, isChangePlayerSettingsAllowed, isChattingAllowedDuringGame, setEngine, setNickname, setPlayingState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardPlayerSettings

public StandardPlayerSettings(Engine engine,
                              Integer playerID,
                              int playerType,
                              String nickname,
                              int playingState)
Method Detail

createPlayerSettingsPanel

public PlayerSettingsPanel createPlayerSettingsPanel()
Description copied from class: PlayerSettings
Creates a new PlayerSettingsPanel based on these player settings. This new PlayerSettingsPanel is shown in the "Player Settings" panel in the "Chat" tab only with the player whose player settings it represent.

Specified by:
createPlayerSettingsPanel in class PlayerSettings
Returns:
a new PlayerSettingsPanel

createChangedPlayerSettings

public PlayerSettings createChangedPlayerSettings(PlayerSettingsPanel playerSettingsPanel)
Description copied from class: PlayerSettings
Creates a new PlayerSettings based on the PlayerSettingsPanel. This method fetches all the data a player can edit with custom methods from the PlayerSettingsPanel and copies any non editable data from these player settings into the new PlayerSettings.

This method will never be called when the game is playing because the player is not allowed to change his player settings during the game.

Specified by:
createChangedPlayerSettings in class PlayerSettings
Returns:
a new PlayerSettings


Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.