Class GamingWheelPlayerView

java.lang.Object
  |
  +--DisplayPanel
        |
        +--GamingWheelPlayerView

public class GamingWheelPlayerView
extends DisplayPanel

View for a player in a gaming wheel game.

See Also:
Serialized Form

Constructor Summary
GamingWheelPlayerView()
          Constructs a new player view.
 
Method Summary
 void bet()
          Makes pseudo-random bets.
 boolean isBroke()
          Returns whether or not this player is broke.
 void newGame()
          Starts a new game.
 void update(Prize aPrize)
          Updates this player based on the given prize result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GamingWheelPlayerView

public GamingWheelPlayerView()
Constructs a new player view.

Method Detail

newGame

public void newGame()
Starts a new game.


update

public void update(Prize aPrize)
Updates this player based on the given prize result.

Parameters:
aPrize - prize that came up on the wheel

isBroke

public boolean isBroke()
Returns whether or not this player is broke.


bet

public void bet()
Makes pseudo-random bets.