bluegammon.gui.animation
Class DicesNewTurnAnim

java.lang.Object
  extended bybluegammon.gui.animation.Animation
      extended bybluegammon.gui.animation.AbstractDicesAnim
          extended bybluegammon.gui.animation.DicesNewTurnAnim

public class DicesNewTurnAnim
extends AbstractDicesAnim

Animation of a player throwing his or her two dices at the start of a new turn.

Author:
Peter Andersson

Constructor Summary
DicesNewTurnAnim(boolean dicesWhite, int dice1, int dice2)
          Creates a new animation on a new turn, throws two dices of the same color.
 
Method Summary
 void onExit()
          Updates cursor, enables interaction and start drawing the dicevalues.
 void onStart()
          Prevents interacton and disables drawing of dicevalues.
 
Methods inherited from class bluegammon.gui.animation.AbstractDicesAnim
getInterval, init, isFinished, next, paint
 
Methods inherited from class bluegammon.gui.animation.Animation
callNext, getLastInvoke
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DicesNewTurnAnim

public DicesNewTurnAnim(boolean dicesWhite,
                        int dice1,
                        int dice2)
Creates a new animation on a new turn, throws two dices of the same color.

Parameters:
dicesWhite - True if dices should be white, false otherwise.
dice1 - Value of first dice (1-6).
dice2 - Value of second dice (1-6).
Method Detail

onStart

public void onStart()
Prevents interacton and disables drawing of dicevalues.

Overrides:
onStart in class AbstractDicesAnim

onExit

public void onExit()
Updates cursor, enables interaction and start drawing the dicevalues.

Overrides:
onExit in class Animation