|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluegammon.gui.animation.Animation
bluegammon.gui.animation.AbstractDicesAnim
bluegammon.gui.animation.DicesNewTurnAnim
Animation of a player throwing his or her two dices at the start of a new turn.
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 |
public DicesNewTurnAnim(boolean dicesWhite, int dice1, int dice2)
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 |
public void onStart()
onStart
in class AbstractDicesAnim
public void onExit()
onExit
in class Animation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |