com.askywhale.missing
Class Player

java.lang.Object
  extended by com.askywhale.missing.Player
Direct Known Subclasses:
ComputerPlayer, HumanPlayer

public abstract class Player
extends java.lang.Object

game related and choice related methods


Constructor Summary
Player()
           
Player(Player oldPlayer)
           
 
Method Summary
 boolean canSeePlayer(Player p)
           
 int getChildren()
           
 Game getGame()
           
abstract  int getNewPrediction()
           
 int getPrediction()
           
 int getScore()
           
 boolean isPlayed()
           
 int play()
           
 void setChildren(int children)
           
 void setGame(Game game)
           
 void setPlayed(boolean played)
           
 void setPrediction(int prediction)
           
 void setScore(int score)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player()

Player

public Player(Player oldPlayer)
Method Detail

getChildren

public int getChildren()

setChildren

public void setChildren(int children)

getPrediction

public int getPrediction()

setPrediction

public void setPrediction(int prediction)

getScore

public int getScore()

setScore

public void setScore(int score)

getGame

public Game getGame()

setGame

public void setGame(Game game)

isPlayed

public boolean isPlayed()

setPlayed

public void setPlayed(boolean played)

play

public int play()

canSeePlayer

public boolean canSeePlayer(Player p)

getNewPrediction

public abstract int getNewPrediction()