com.bits.common
Class GameResult

java.lang.Object
  extended by com.bits.common.GameResult
All Implemented Interfaces:
java.io.Serializable, standards3.games.interfaces.IGameResult

public class GameResult
extends java.lang.Object
implements standards3.games.interfaces.IGameResult

object to implement the result interface

Author:
sophirha
See Also:
Serialized Form

Constructor Summary
GameResult()
          empty default ctor
GameResult(int num)
          ctor with score
GameResult(int playerScore, double playerSuccessPercentage, long gameTime, int gameDifficulty, java.lang.String gameRawData, boolean ResultsValid)
          full ctor
 
Method Summary
 int getGameDifficulty()
          getter
 java.lang.String getGameRawData()
          getter
 long getGameTime()
          getter
 int getPlayerScore()
          getter
 double getPlayerSuccessPercentage()
          getter
 boolean isResultsValid()
          getter
 void setGameDifficulty(int gd)
          setter
 void setGameRawData(java.lang.String grd)
          setter
 void setGameTime(long gt)
          setter
 void setPlayerScore(int ps)
          setter
 void setPlayerSuccessPercentage(double psp)
          setter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameResult

public GameResult()
empty default ctor


GameResult

public GameResult(int num)
ctor with score

Parameters:
num - player's score

GameResult

public GameResult(int playerScore,
                  double playerSuccessPercentage,
                  long gameTime,
                  int gameDifficulty,
                  java.lang.String gameRawData,
                  boolean ResultsValid)
full ctor

Parameters:
playerScore -
playerSuccessPercentage -
gameTime -
gameDifficulty -
gameRawData -
ResultsValid -
Method Detail

getGameDifficulty

public int getGameDifficulty()
getter

Specified by:
getGameDifficulty in interface standards3.games.interfaces.IGameResult

setGameDifficulty

public void setGameDifficulty(int gd)
setter

Parameters:
gd - game difficulty

getGameRawData

public java.lang.String getGameRawData()
getter

Specified by:
getGameRawData in interface standards3.games.interfaces.IGameResult

setGameRawData

public void setGameRawData(java.lang.String grd)
setter

Parameters:
grd - game raw data

getGameTime

public long getGameTime()
getter

Specified by:
getGameTime in interface standards3.games.interfaces.IGameResult

setGameTime

public void setGameTime(long gt)
setter

Parameters:
gt - game time

getPlayerScore

public int getPlayerScore()
getter

Specified by:
getPlayerScore in interface standards3.games.interfaces.IGameResult

setPlayerScore

public void setPlayerScore(int ps)
setter

Parameters:
ps - player score

getPlayerSuccessPercentage

public double getPlayerSuccessPercentage()
getter

Specified by:
getPlayerSuccessPercentage in interface standards3.games.interfaces.IGameResult

setPlayerSuccessPercentage

public void setPlayerSuccessPercentage(double psp)
setter

Parameters:
psp - player success percentage

isResultsValid

public boolean isResultsValid()
getter

Specified by:
isResultsValid in interface standards3.games.interfaces.IGameResult