net.sourceforge.simplegamenet.framework.model
Class ServerEngineImpl
java.lang.Object
net.sourceforge.simplegamenet.framework.model.EngineImpl
net.sourceforge.simplegamenet.framework.model.ServerEngineImpl
- All Implemented Interfaces:
- net.sourceforge.simplegamenet.specs.model.Engine, net.sourceforge.simplegamenet.specs.model.ServerEngine
- public class ServerEngineImpl
- extends EngineImpl
- implements net.sourceforge.simplegamenet.specs.model.ServerEngine
Constructor Summary |
ServerEngineImpl(ServerGUIFacade serverGUIFacade,
int port,
boolean badLanguageFiltered,
net.sourceforge.simplegamenet.specs.model.GameFactory gameFactory,
net.sourceforge.simplegamenet.specs.to.GameSettings gameSettings)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.simplegamenet.specs.model.Engine |
getGameFactory, getGameSettings, getPlayerSettingsMap, isGamePlaying |
ServerEngineImpl
public ServerEngineImpl(ServerGUIFacade serverGUIFacade,
int port,
boolean badLanguageFiltered,
net.sourceforge.simplegamenet.specs.model.GameFactory gameFactory,
net.sourceforge.simplegamenet.specs.to.GameSettings gameSettings)
throws IOException
receiveChatMessage
public boolean receiveChatMessage(Integer playerID,
ChatMessage chatMessage)
sendChatMessage
public void sendChatMessage(Integer playerID,
ChatMessage chatMessage)
sendChatMessage
public void sendChatMessage(ChatMessage chatMessage)
appendGameChatMessage
public void appendGameChatMessage(Integer playerID,
String message)
- Specified by:
appendGameChatMessage
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
appendGameChatMessage
public void appendGameChatMessage(String message)
- Specified by:
appendGameChatMessage
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
changeGameSettings
public void changeGameSettings(net.sourceforge.simplegamenet.specs.to.GameSettings changedGameSettings)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
refreshGameSettings
public void refreshGameSettings()
- Specified by:
refreshGameSettings
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
createPlayer
public LoginData createPlayer(int playerType,
String nickname)
throws IllegalStateException
- Throws:
IllegalStateException
playerAdded
public void playerAdded(Integer playerID)
changePlayerSettings
public void changePlayerSettings(net.sourceforge.simplegamenet.specs.to.PlayerSettings changedPlayerSettings)
throws IllegalStateException,
IllegalArgumentException
- Throws:
IllegalStateException
IllegalArgumentException
refreshPlayerSettings
public void refreshPlayerSettings(Integer playerID)
throws IllegalArgumentException
- Specified by:
refreshPlayerSettings
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
- Throws:
IllegalArgumentException
kickPlayer
public void kickPlayer(Integer playerID)
banPlayer
public void banPlayer(Integer playerID)
kickProtocolViolatingPlayer
public void kickProtocolViolatingPlayer(Integer playerID)
throws IllegalArgumentException
- Specified by:
kickProtocolViolatingPlayer
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
- Throws:
IllegalArgumentException
removePlayer
public void removePlayer(Integer playerID,
int removePlayerType)
startGame
public void startGame()
throws IllegalStateException
- Throws:
IllegalStateException
receiveData
public void receiveData(Integer playerID,
Serializable data)
sendData
public void sendData(Integer playerID,
Serializable data)
throws IllegalArgumentException
- Specified by:
sendData
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
- Throws:
IllegalArgumentException
sendData
public void sendData(Serializable data)
- Specified by:
sendData
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
stopGame
public void stopGame()
- Specified by:
stopGame
in interface net.sourceforge.simplegamenet.specs.model.ServerEngine
abortGame
public void abortGame()
throws IllegalStateException
- Throws:
IllegalStateException
gameEnded
public void gameEnded()
closeServerInServerThread
public void closeServerInServerThread()
hostedGameQuit
public void hostedGameQuit()
Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.