|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
bluegammon.gui.animation
package contains the general animation functionality as
well as specific gui animations.
See:
Description
Interface Summary | |
RepaintRequestable | Interface for a repaint requestable graphics container, normally a Canvas. |
Class Summary | |
AbstractDicesAnim | An abstract animation of two dices - we do not have a case where we ever show only one dice. |
Animation | This abstract class represents an animation and is
handled by the AnimationEngine |
AnimationEngine | Animation engine, handles all animation logic. |
CommitMoveAnim | Animation showing the user that he or she should commit his or her moves. |
CursorAnim | Animation of the cursors indicating the source and destination index of a possible movement. |
DicesNewTurnAnim | Animation of a player throwing his or her two dices at the start of a new turn. |
DicesSelectTurnAnim | Animation show one black and one white dice, used at start of a game for selecting who should start. |
PieceMoveAnim | Animation of a piece moving from an source index to a destination index. |
WinnerAnim | Animation for indicating a winner. |
WinnerPieceMoveAnim | Animation that flies away with a piece. |
The bluegammon.gui.animation
package contains the general animation functionality as
well as specific gui animations.
Common animation logic is handled by AnimationEngine
. This class consists of animations
represented by the Animation
abstract class, and uses an implementation of the RepaintRequestable
interface to signal repaints (normally a Canvas
). Each implementation of an Animation
must
define following:
paint(Graphics g)
- paints the animation on specified contextnext()
- called when the animation needs be to updated. The interval
of an animation update is specified in getInterval()
getInterval()
- returns the interval in milliseconds between the next()
method will be called by the AnimationEngine
isFinished()
- called on each update and declares if this animation can be removed from
the AnimationEngine
This package also contains implementations of animations specific for the Bluegammon game. Some
of these animations sets the gui state when they are signalled as finished by overriding the
onExit
method.
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |