public abstract class AnimateEventDouble extends AnimateEvent
AnimateEvent.Type
Modifier and Type | Field and Description |
---|---|
protected BoardPane |
boardPane |
BoardPane.BoardSpecs |
bs |
protected int |
whoDoubled |
protected double[] |
x
Spline coordinates in the base class so we can draw the markers for the blue debug spline outline
|
protected double[] |
y |
offset, who
Constructor and Description |
---|
AnimateEventDouble() |
Modifier and Type | Method and Description |
---|---|
abstract void |
calculate(Board board) |
int |
getCubeAfter()
Get the value of the cube after the double
|
int |
getCubeBefore()
Get the value of the cube before the double
|
protected java.awt.Point |
getDoubleCubePushXY() |
protected int |
getDoubleCubeWidth() |
protected java.awt.Point |
getDoubleCubeXY() |
int |
getDuration()
Get the number of milliseconds to execute this AnimateEvent
|
protected int |
getNthCheckerY(int point,
int checker) |
protected int |
getPointX(int point) |
AnimateEvent.Type |
getType()
Get the
AnimateEvent.Type of this AnimateEvent |
int |
getWhoDoubled()
Who is doubling?
|
abstract int[] |
getXY(double offset) |
boolean |
isGui()
Is this a Gui event? That is, is the game waiting for user input?
|
void |
setBoardPane(BoardPane boardPane) |
void |
setCubeBefore(int cubeBefore)
Set the current value of cube as well as the derived, next value of the cube (if accepted).
|
void |
setWhoDoubled(int xo)
Who doubled?
|
getOffset, getWho, setOffset, setWho
protected BoardPane boardPane
public BoardPane.BoardSpecs bs
protected double[] x
protected double[] y
protected int whoDoubled
public abstract void calculate(Board board)
public abstract int[] getXY(double offset)
public int getDuration()
AnimateEvent
getDuration
in class AnimateEvent
public AnimateEvent.Type getType()
AnimateEvent
AnimateEvent.Type
of this AnimateEventgetType
in class AnimateEvent
public boolean isGui()
AnimateEvent
isGui
in class AnimateEvent
public void setBoardPane(BoardPane boardPane)
public int getCubeBefore()
public void setCubeBefore(int cubeBefore)
cubeBefore
- the value of the cube (from the last board) to setpublic int getCubeAfter()
protected java.awt.Point getDoubleCubeXY()
protected int getDoubleCubeWidth()
protected int getPointX(int point)
protected int getNthCheckerY(int point, int checker)
protected java.awt.Point getDoubleCubePushXY()