net.sourceforge.simplegamenet.dice
Class DiceScore

java.lang.Object
  extended bynet.sourceforge.simplegamenet.dice.DiceScore
All Implemented Interfaces:
DicePacketCodes, DiceSettingOptions, Serializable

public class DiceScore
extends Object
implements DiceSettingOptions, DicePacketCodes, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.sourceforge.simplegamenet.dice.DiceSettingOptions
FIRST_PLAYER, MIN_10, MIN_5, NONE
 
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
 
Constructor Summary
DiceScore()
           
DiceScore(Integer[] diceParticipantsIDs, DiceSettings diceSettings, DiceAll allDice)
           
 
Method Summary
 void adjustSettingValues(int scoreToCount)
           
 int checkBonus(Integer diceParticipantID)
           
 int countScore(Integer diceParticipantID, int scoreToCount)
           
 int[] getAmountValues()
           
 boolean getPlayerBonusFilled(Integer diceParticipantID)
           
 int getPlayerFOAKScore(Integer diceParticipantID)
           
 int getPlayerScore(Integer diceParticipantID, int scoreNumber)
           
 int[] getPlayerTotals(Integer diceParticipantID)
           
 int[] getSettingValues()
           
 int[] getWinner()
           
 void setDiceSettingValues(DiceSettings diceSettings)
           
 void setPlayerBonusFilled(Integer diceParticipantID, boolean playerBonusFilled)
           
 void setPlayerScore(Integer diceParticipantID, int scoreNumber, int score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiceScore

public DiceScore()

DiceScore

public DiceScore(Integer[] diceParticipantsIDs,
                 DiceSettings diceSettings,
                 DiceAll allDice)
Method Detail

setDiceSettingValues

public void setDiceSettingValues(DiceSettings diceSettings)

countScore

public int countScore(Integer diceParticipantID,
                      int scoreToCount)

adjustSettingValues

public void adjustSettingValues(int scoreToCount)

setPlayerScore

public void setPlayerScore(Integer diceParticipantID,
                           int scoreNumber,
                           int score)

getPlayerScore

public int getPlayerScore(Integer diceParticipantID,
                          int scoreNumber)

getPlayerFOAKScore

public int getPlayerFOAKScore(Integer diceParticipantID)

getPlayerTotals

public int[] getPlayerTotals(Integer diceParticipantID)

checkBonus

public int checkBonus(Integer diceParticipantID)

getPlayerBonusFilled

public boolean getPlayerBonusFilled(Integer diceParticipantID)

setPlayerBonusFilled

public void setPlayerBonusFilled(Integer diceParticipantID,
                                 boolean playerBonusFilled)

getWinner

public int[] getWinner()

getSettingValues

public int[] getSettingValues()

getAmountValues

public int[] getAmountValues()


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