us.asciiroth.client.terrain
Class EuclideanEngine
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.EuclideanEngine
- All Implemented Interfaces:
- Animated, Piece, Terrain
public class EuclideanEngine
- extends AbstractTerrain
- implements Animated
When activated, fires a color event. This is intended to be tied in to the
use of the Euclidean Transporter, a difficult-to-activate piece that is
the endgame for the TOA scenario.
Method Summary |
void |
onEnter(Event event,
Player player,
Cell cell,
Direction dir)
Agent attempting to leave the from cell, heading
toward the to cell. |
void |
onFrame(Context ctx,
Cell cell,
int frame)
Animation callback, executed once each frame for each piece
animated on the board. |
boolean |
randomSeed()
Should this animation start with a randomly seeded number as
its first frame? For some animations, this can prevent all
presentations of the piece on the board executing the same
animation frame at the same time. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<EuclideanEngine> SERIALIZER
- Type serializer.
onEnter
public void onEnter(Event event,
Player player,
Cell cell,
Direction dir)
- Description copied from interface:
Terrain
- Agent attempting to leave the
from
cell, heading
toward the to
cell. The terrain being used is the
terrain of the to
cell. The agent is still in the
from
- Specified by:
onEnter
in interface Terrain
- Overrides:
onEnter
in class AbstractTerrain
onFrame
public void onFrame(Context ctx,
Cell cell,
int frame)
- Description copied from interface:
Animated
- Animation callback, executed once each frame for each piece
animated on the board.
- Specified by:
onFrame
in interface Animated
randomSeed
public boolean randomSeed()
- Description copied from interface:
Animated
- Should this animation start with a randomly seeded number as
its first frame? For some animations, this can prevent all
presentations of the piece on the board executing the same
animation frame at the same time.
- Specified by:
randomSeed
in interface Animated
- Returns:
- true if a random frame should begin the animated piece's timeline
© 2009 Alx Dark