net.sourceforge.simplegamenet.framework
Class ServerEngineImpl

java.lang.Object
  extended bynet.sourceforge.simplegamenet.framework.EngineImpl
      extended bynet.sourceforge.simplegamenet.framework.ServerEngineImpl
All Implemented Interfaces:
net.sourceforge.simplegamenet.specs.Engine, net.sourceforge.simplegamenet.specs.ServerEngine

public class ServerEngineImpl
extends EngineImpl
implements net.sourceforge.simplegamenet.specs.ServerEngine


Field Summary
 
Fields inherited from class net.sourceforge.simplegamenet.framework.EngineImpl
gameFactory, gameSettings, gameState, NOT_PLAYING, playerSettingsMap, PLAYING, WAITING_FOR_END_CONFIRMATION
 
Method Summary
 void appendGameChatMessage(Integer playerID, String message)
           
 void appendGameChatMessage(String message)
           
 void kickProtocolViolatingPlayer(Integer playerID)
           
 void refreshGameSettings()
           
 void refreshPlayerSettings(Integer playerID)
           
 void sendData(Integer playerID, Serializable data)
           
 void sendData(Serializable data)
           
 void stopGame()
           
 
Methods inherited from class net.sourceforge.simplegamenet.framework.EngineImpl
getGameFactory, getGameSettings, getPlayerSettingsMap, isGamePlaying
 
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.Engine
getGameFactory, getGameSettings, getPlayerSettingsMap, isGamePlaying
 

Method Detail

appendGameChatMessage

public void appendGameChatMessage(Integer playerID,
                                  String message)
Specified by:
appendGameChatMessage in interface net.sourceforge.simplegamenet.specs.ServerEngine

appendGameChatMessage

public void appendGameChatMessage(String message)
Specified by:
appendGameChatMessage in interface net.sourceforge.simplegamenet.specs.ServerEngine

refreshGameSettings

public void refreshGameSettings()
Specified by:
refreshGameSettings in interface net.sourceforge.simplegamenet.specs.ServerEngine

refreshPlayerSettings

public void refreshPlayerSettings(Integer playerID)
                           throws IllegalArgumentException
Specified by:
refreshPlayerSettings in interface net.sourceforge.simplegamenet.specs.ServerEngine
Throws:
IllegalArgumentException

kickProtocolViolatingPlayer

public void kickProtocolViolatingPlayer(Integer playerID)
                                 throws IllegalArgumentException
Specified by:
kickProtocolViolatingPlayer in interface net.sourceforge.simplegamenet.specs.ServerEngine
Throws:
IllegalArgumentException

sendData

public void sendData(Integer playerID,
                     Serializable data)
              throws IllegalArgumentException
Specified by:
sendData in interface net.sourceforge.simplegamenet.specs.ServerEngine
Throws:
IllegalArgumentException

sendData

public void sendData(Serializable data)
Specified by:
sendData in interface net.sourceforge.simplegamenet.specs.ServerEngine

stopGame

public void stopGame()
Specified by:
stopGame in interface net.sourceforge.simplegamenet.specs.ServerEngine


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