Package bluegammon.gui.animation

The 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.
 

Package bluegammon.gui.animation Description

The bluegammon.gui.animation package contains the general animation functionality as well as specific gui animations.

Concepts and Structures

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:

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.