public class AnimateManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
extraCheckers
4 checkers and 4 positions and 4 zero spares for in process compound moves.
|
protected int |
extraCheckersIndex
The number of used checkers in the extraCheckers array
|
protected int |
extraCheckersWho
Who's extra Checkers (are in home)
|
Constructor and Description |
---|
AnimateManager()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(GameEvent gameEvent)
Queue this animation event for display.
Note that if !props.isAnimateMoves() then we just discard the moves except for Board, which is important. |
void |
finalize()
Shut down the timer queue on cleanup.
|
AnimateEvent |
getHeadEvent()
Return the first
AnimateEvent in the queue. |
void |
setBoardPane(BoardPane boardPane)
Set the back reference to the boardGui for notifications
|
void |
setProperties(BFProperties bfProperties)
Set the reference to the properties
|
protected int[] extraCheckers
protected int extraCheckersIndex
protected int extraCheckersWho
public void finalize()
finalize
in class java.lang.Object
public void setBoardPane(BoardPane boardPane)
boardPane
- The BoardPanepublic void setProperties(BFProperties bfProperties)
bfProperties
- public AnimateEvent getHeadEvent()
AnimateEvent
in the queue.
Does not remove the element.public void addEvent(GameEvent gameEvent)
gameEvent
- The event to queue and eventually display