public abstract class AnimateEventMove extends AnimateEvent
AnimateEvent.Type
Modifier and Type | Field and Description |
---|---|
static int |
ANIMATE_FLASHER
Define an index that is a
MoveFlasher |
static int |
ANIMATE_SPLINE2D
Define an index that is a
MoveSpline2D |
protected BoardPane |
boardPane |
BoardPane.BoardSpecs |
bs |
protected int |
checkerNumberEnd |
protected int |
checkerNumberStart |
protected int |
pointNumberEnd |
protected int |
pointNumberStart |
protected double[] |
x |
protected double[] |
y |
offset, who
Constructor and Description |
---|
AnimateEventMove() |
Modifier and Type | Method and Description |
---|---|
abstract void |
calculate() |
protected int |
getCheckerYInHome(int who,
int checker) |
protected int |
getCheckerYOnBar(int who,
int checker) |
abstract java.awt.Color |
getColor(double offset) |
int |
getDuration()
Default 1000ms for a Move
|
protected int |
getNthCheckerY(int point,
int checker) |
protected int |
getPointX(int point) |
AnimateEvent.Type |
getType()
Get the
AnimateEvent.Type of this AnimateEvent |
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 |
setEndPointAndOffset(int pointNumber,
int checkerNumber) |
void |
setStartPointAndOffset(int pointNumber,
int checkerNumber) |
getOffset, getWho, setOffset, setWho
public static final int ANIMATE_FLASHER
MoveFlasher
public static final int ANIMATE_SPLINE2D
MoveSpline2D
protected double[] x
protected double[] y
protected BoardPane boardPane
public BoardPane.BoardSpecs bs
protected int pointNumberStart
protected int checkerNumberStart
protected int pointNumberEnd
protected int checkerNumberEnd
public abstract void calculate()
public abstract int[] getXY(double offset)
public abstract java.awt.Color getColor(double offset)
public AnimateEvent.Type getType()
AnimateEvent
AnimateEvent.Type
of this AnimateEventgetType
in class AnimateEvent
public int getDuration()
getDuration
in class AnimateEvent
public boolean isGui()
AnimateEvent
isGui
in class AnimateEvent
public void setBoardPane(BoardPane boardPane)
public void setStartPointAndOffset(int pointNumber, int checkerNumber)
public void setEndPointAndOffset(int pointNumber, int checkerNumber)
protected int getPointX(int point)
protected int getNthCheckerY(int point, int checker)
protected int getCheckerYOnBar(int who, int checker)
protected int getCheckerYInHome(int who, int checker)