|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.Pylon
public class Pylon
A pylon is a teleporter that must be activated with a crystal of the same color. The design for this is that you are teleported onto a pylon of the same color, which can be used to return. Since the other pylon may be off (perhaps you can activate the pair from either side), a pylon will activate when the player leaves it. So one crystal, and one transport, and then both pylons will be activated. Of course, you don't have to pair them this way.
| Field Summary | |
|---|---|
static Serializer<Pylon> |
SERIALIZER
Type serializer. |
| 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 |
onExit(Event event,
Player player,
Cell cell,
Direction dir)
Agent attempting to exit 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 us.asciiroth.client.terrain.AbstractTerrain |
|---|
canEnter, canExit, onAdjacentTo, onAgentEnter, onAgentExit, onDrop, onFlyOver, onNotAdjacentTo, onPickup |
| Methods inherited from class us.asciiroth.client.core.AbstractPiece |
|---|
getColor, getName, getSymbol, is, not |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface us.asciiroth.client.core.Piece |
|---|
getColor, getName, getSymbol, is, not |
| Field Detail |
|---|
public static final Serializer<Pylon> SERIALIZER
| Method Detail |
|---|
public void onEnter(Event event,
Player player,
Cell cell,
Direction dir)
Terrainfrom 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
public void onExit(Event event,
Player player,
Cell cell,
Direction dir)
Terrainfrom cell, heading
toward the to cell. The terrain being used is the
from cell terrain, and the agent is still in the from
cell. If the event is canceled at this point, the agent will not be able
leave this cell. The move will be canceled. This event is fired for the
player as well as all other agents
onExit in interface TerrainonExit in class AbstractTerrain
public void onFrame(Context ctx,
Cell cell,
int frame)
Animated
onFrame in interface Animatedpublic boolean randomSeed()
Animated
randomSeed in interface Animated
|
0.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
© 2009 Alx Dark