public abstract class AnimateEvent
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AnimateEvent.Type
A game event type.
|
Modifier and Type | Field and Description |
---|---|
protected double |
offset
0 -> 1 offset into the animation
|
protected int |
who
Board.X or Board.O
|
Modifier | Constructor and Description |
---|---|
protected |
AnimateEvent()
Do not instantiate.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getDuration()
Get the number of milliseconds to execute this AnimateEvent
|
double |
getOffset()
Get how far along the animation we are (0.0 -> 1.0)
|
abstract AnimateEvent.Type |
getType()
Get the
AnimateEvent.Type of this AnimateEvent |
int |
getWho()
Whose event is this?
|
abstract boolean |
isGui()
Is this a Gui event? That is, is the game waiting for user input?
|
void |
setOffset(double offset)
Set how far along the animation we are (0.0 -> 1.0)
|
void |
setWho(int xo)
Who's event is this?
|
protected double offset
protected int who
public abstract AnimateEvent.Type getType()
AnimateEvent.Type
of this AnimateEventpublic abstract boolean isGui()
public abstract int getDuration()
public void setOffset(double offset)
offset
- the offset to setpublic double getOffset()
public void setWho(int xo)
xo
- Either Board.X or Board.Opublic int getWho()