net.curre.prefcount.bean
Class GameResultBean

java.lang.Object
  extended by net.curre.prefcount.bean.GameResultBean

public class GameResultBean
extends java.lang.Object

Object of this class represents a bean that holds all score and results for a preferance card game.

Created date: Apr 9, 2007

Author:
Yevgeny Nyden

Constructor Summary
GameResultBean()
          Default ctor that sets targetBullet to the min int value.
 
Method Summary
 java.lang.Float getAverageMountain()
          Getter for the player's average mountain.
 java.lang.Integer getMinMountain()
          Returns minimum mountain in the game.
 int getNumberOfPlayers()
          Returns the number of players in the game.
 java.util.List<PlayerStatistics> getPlayerStats()
          Getter for the list of player statistics.
 java.lang.Integer getTargetBullet()
          Getter for the target bullet players need to reach.
 boolean isFinalScoresReady()
          Getter for the flag that indicates that the player final scores are ready for display.
 void setAverageMountain(java.lang.Float averageMountain)
          Setter for the player's average mountain.
 void setFinalScoresReady(boolean finalScoresReady)
          Setter for the flag that indicates that the player final scores are ready for display.
 void setMinMountain(java.lang.Integer minMountain)
          Setter for the minimum mountain in the game.
 void setPlayerStats(java.util.List<PlayerStatistics> playerStats)
          Setter for the list of player statistics.
 void setTargetBullet(java.lang.Integer targetBullet)
          Setter for the target bullet players need to reach.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameResultBean

public GameResultBean()
Default ctor that sets targetBullet to the min int value.

Method Detail

isFinalScoresReady

public boolean isFinalScoresReady()
Getter for the flag that indicates that the player final scores are ready for display.

Returns:
True if all the player final scores have been generated; false otherwise.

setFinalScoresReady

public void setFinalScoresReady(boolean finalScoresReady)
Setter for the flag that indicates that the player final scores are ready for display.

Parameters:
finalScoresReady - True if the player final scores have been generated; false otherwise.

getTargetBullet

public java.lang.Integer getTargetBullet()
Getter for the target bullet players need to reach.

Returns:
Target bullet players need to reach.

setTargetBullet

public void setTargetBullet(java.lang.Integer targetBullet)
Setter for the target bullet players need to reach.

Parameters:
targetBullet - Target bullet players need to reach.

getAverageMountain

public java.lang.Float getAverageMountain()
Getter for the player's average mountain.

Returns:
The player's average mountain.

setAverageMountain

public void setAverageMountain(java.lang.Float averageMountain)
Setter for the player's average mountain.

Parameters:
averageMountain - Player's average mountain to set.

getMinMountain

public java.lang.Integer getMinMountain()
Returns minimum mountain in the game.

Returns:
Min mountain in the game.

setMinMountain

public void setMinMountain(java.lang.Integer minMountain)
Setter for the minimum mountain in the game.

Parameters:
minMountain - Min mountain in the game to set.

getPlayerStats

public java.util.List<PlayerStatistics> getPlayerStats()
Getter for the list of player statistics.

Returns:
List of player statistics.

setPlayerStats

public void setPlayerStats(java.util.List<PlayerStatistics> playerStats)
Setter for the list of player statistics.

Parameters:
playerStats - List of player statistics.

getNumberOfPlayers

public int getNumberOfPlayers()
Returns the number of players in the game.

Returns:
The number of players in the game.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.