|
|||||||||||
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.DicesSelectTurnAnim
Animation show one black and one white dice, used at start of a game for selecting who should start.
Constructor Summary | |
DicesSelectTurnAnim(int whiteDice,
int blackDice,
int width,
int height)
Initiates this animation. |
Method Summary | |
boolean |
isFinished()
Probes to check if the animation can be removed |
void |
onExit()
Start a new turn for the winning color. |
void |
onStart()
Prevent interaction and update gui. |
void |
paint(javax.microedition.lcdui.Graphics g)
Draws the animation using the specified graphics context. |
Methods inherited from class bluegammon.gui.animation.AbstractDicesAnim |
getInterval, init, next |
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 DicesSelectTurnAnim(int whiteDice, int blackDice, int width, int height)
whiteDice
- White dice value, 1 to 6.blackDice
- Black dice value, 1 to 6.width
- Board width.height
- Board height.Method Detail |
public void onStart()
onStart
in class AbstractDicesAnim
public void paint(javax.microedition.lcdui.Graphics g)
Animation
paint
in class AbstractDicesAnim
public boolean isFinished()
Animation
isFinished
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 |