net.sourceforge.simplegamenet.specs.tools
Class StandardPlayerSettings
java.lang.Object
net.sourceforge.simplegamenet.specs.to.PlayerSettings
net.sourceforge.simplegamenet.specs.tools.StandardPlayerSettings
- All Implemented Interfaces:
- Comparable, Serializable
- public class StandardPlayerSettings
- extends PlayerSettings
- See Also:
- Serialized Form
| Methods inherited from class net.sourceforge.simplegamenet.specs.to.PlayerSettings |
compareTo, equals, getNickname, getPlayerID, getPlayerType, getPlayingState, isChangePlayerSettingsAllowed, isChattingAllowedDuringGame, setEngine, setNickname, setPlayingState |
StandardPlayerSettings
public StandardPlayerSettings(Engine engine,
Integer playerID,
int playerType,
String nickname,
int playingState)
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.