net.sourceforge.simplegamenet.framework.gui
Class ClientGUIFacade
java.lang.Object
net.sourceforge.simplegamenet.framework.gui.ClientGUIFacade
- All Implemented Interfaces:
- net.sourceforge.simplegamenet.specs.gui.UtilityPanelFactory
- public class ClientGUIFacade
- extends Object
- implements net.sourceforge.simplegamenet.specs.gui.UtilityPanelFactory
Method Summary |
void |
abortGame()
|
void |
changeGameSettings(net.sourceforge.simplegamenet.specs.gui.GameSettingsPanel gameSettingsPanel)
|
void |
changePlayerSettings(net.sourceforge.simplegamenet.specs.gui.PlayerSettingsPanel playerSettingsPanel)
|
JPanel |
createChatClientPanel()
|
void |
gameAborting()
|
void |
gameEnded()
|
void |
gameSettingsUpdated(net.sourceforge.simplegamenet.specs.to.GameSettings outdatedGameSettings,
net.sourceforge.simplegamenet.specs.to.GameSettings updatedGameSettings)
|
void |
gameStarted()
|
void |
gameStopping()
|
void |
joinedGameQuit(int removePlayerType)
|
net.sourceforge.simplegamenet.specs.model.GameFactory |
joinGame(ConnectionConfig connectionConfig)
|
void |
leaveServer()
|
void |
playerAdded(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings playerSettings)
|
void |
playerSettingsUpdated(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings outdatedPlayerSettings,
net.sourceforge.simplegamenet.specs.to.PlayerSettings updatedPlayerSettings)
|
void |
receiveChatMessage(int type,
String message)
|
void |
receiveChatMessage(int type,
String message,
String nickname)
|
void |
removePlayer(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings playerSettings,
int removePlayerType)
|
void |
sendChatMessage(int type,
String message)
|
void |
startGame()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simpleGameNetFrame
protected SimpleGameNetFrame simpleGameNetFrame
statusTabPanel
protected StatusTabPanel statusTabPanel
chatTabPanel
protected ChatTabPanel chatTabPanel
gameTabPanel
protected GameTabPanel gameTabPanel
gameSettingsTabPanel
protected GameSettingsTabPanel gameSettingsTabPanel
chatLogDocument
protected StyledDocument chatLogDocument
logTextArea
protected JTextArea logTextArea
ClientGUIFacade
public ClientGUIFacade(SimpleGameNetFrame simpleGameNetFrame,
StatusTabPanel statusTabPanel,
ChatTabPanel chatTabPanel,
GameTabPanel gameTabPanel,
GameSettingsTabPanel gameSettingsTabPanel,
JTextArea logTextArea,
boolean clientIsHost)
joinGame
public net.sourceforge.simplegamenet.specs.model.GameFactory joinGame(ConnectionConfig connectionConfig)
throws IOException
- Throws:
IOException
receiveChatMessage
public void receiveChatMessage(int type,
String message)
receiveChatMessage
public void receiveChatMessage(int type,
String message,
String nickname)
sendChatMessage
public void sendChatMessage(int type,
String message)
throws IllegalStateException
- Throws:
IllegalStateException
changeGameSettings
public void changeGameSettings(net.sourceforge.simplegamenet.specs.gui.GameSettingsPanel gameSettingsPanel)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
gameSettingsUpdated
public void gameSettingsUpdated(net.sourceforge.simplegamenet.specs.to.GameSettings outdatedGameSettings,
net.sourceforge.simplegamenet.specs.to.GameSettings updatedGameSettings)
playerAdded
public void playerAdded(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings playerSettings)
changePlayerSettings
public void changePlayerSettings(net.sourceforge.simplegamenet.specs.gui.PlayerSettingsPanel playerSettingsPanel)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
playerSettingsUpdated
public void playerSettingsUpdated(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings outdatedPlayerSettings,
net.sourceforge.simplegamenet.specs.to.PlayerSettings updatedPlayerSettings)
removePlayer
public void removePlayer(net.sourceforge.simplegamenet.specs.to.PlayerSettingsMap playerSettingsMap,
net.sourceforge.simplegamenet.specs.to.PlayerSettings playerSettings,
int removePlayerType)
startGame
public void startGame()
throws IllegalStateException
- Throws:
IllegalStateException
gameStarted
public void gameStarted()
abortGame
public void abortGame()
throws IllegalStateException
- Throws:
IllegalStateException
gameStopping
public void gameStopping()
gameAborting
public void gameAborting()
gameEnded
public void gameEnded()
leaveServer
public void leaveServer()
joinedGameQuit
public void joinedGameQuit(int removePlayerType)
createChatClientPanel
public JPanel createChatClientPanel()
- Specified by:
createChatClientPanel
in interface net.sourceforge.simplegamenet.specs.gui.UtilityPanelFactory
Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.