net.sourceforge.simplegamenet.dice
Class DiceServer

java.lang.Object
  extended bynet.sourceforge.simplegamenet.specs.GameServer
      extended bynet.sourceforge.simplegamenet.dice.DiceServer
All Implemented Interfaces:
DicePacketCodes, DiceSettingOptions

public class DiceServer
extends net.sourceforge.simplegamenet.specs.GameServer
implements DicePacketCodes, DiceSettingOptions


Field Summary
 
Fields inherited from class net.sourceforge.simplegamenet.specs.GameServer
serverEngine
 
Fields inherited from interface net.sourceforge.simplegamenet.dice.DicePacketCodes
BONUS_CHECK, BONUS_CHECKED, GAME_FIRST_PLAYER, GAME_FIRST_SCORE, GAME_NEXT_PLAYER, GAME_OVER, SCORE, TURN_CONFIRM_ZERO, TURN_DICE_HELD, TURN_DICE_ROLLED, TURN_FILL_SCORE, TURN_HOLD_DICE, TURN_ROLL_DICE, TURN_SCORE_FILLED, TURN_ZERO_CONFIRMED
 
Fields inherited from interface net.sourceforge.simplegamenet.dice.DiceSettingOptions
FIRST_PLAYER, MIN_10, MIN_5, NONE
 
Constructor Summary
DiceServer(net.sourceforge.simplegamenet.specs.ServerEngine serverEngine)
           
 
Method Summary
 boolean containsPlayerID(Integer playerID)
           
 void gameAborted()
           
 void gameStarted()
           
 Integer[] getDiceParticipantIDs()
           
 String getDicePlayerNickname(Integer dicePlayerID)
           
 DiceSettings getDiceSettings()
           
 int[] getSettingValues()
           
 void playerRemoved(net.sourceforge.simplegamenet.specs.PlayerSettings playerSettings)
           
 void receiveData(Integer diceParticipantID, Serializable data)
           
 void sendDicePacket(DicePacket dicePacket)
           
 
Methods inherited from class net.sourceforge.simplegamenet.specs.GameServer
close, gameAborting, gameSettingsUpdated, playerAdded, playerSettingsUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiceServer

public DiceServer(net.sourceforge.simplegamenet.specs.ServerEngine serverEngine)
Method Detail

sendDicePacket

public void sendDicePacket(DicePacket dicePacket)

receiveData

public void receiveData(Integer diceParticipantID,
                        Serializable data)

gameStarted

public void gameStarted()

getDiceParticipantIDs

public Integer[] getDiceParticipantIDs()

getDiceSettings

public DiceSettings getDiceSettings()

getSettingValues

public int[] getSettingValues()

gameAborted

public void gameAborted()

getDicePlayerNickname

public String getDicePlayerNickname(Integer dicePlayerID)

playerRemoved

public void playerRemoved(net.sourceforge.simplegamenet.specs.PlayerSettings playerSettings)

containsPlayerID

public boolean containsPlayerID(Integer playerID)


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