|
|||||||||
| 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.KeySwitch
public class KeySwitch
A kind of switch that can only be flipped through the use of
a key that matches the KeySwitch's color.
| Field Summary | |
|---|---|
static Serializer<KeySwitch> |
SERIALIZER
Type serializer. |
| Method Summary | |
|---|---|
State |
getState()
Get the state of this key switch. |
void |
onEnter(Event event,
Player player,
Cell cell,
Direction dir)
Agent attempting to leave the from cell, heading
toward the to cell. |
| Methods inherited from class us.asciiroth.client.terrain.AbstractTerrain |
|---|
canEnter, canExit, onAdjacentTo, onAgentEnter, onAgentExit, onDrop, onExit, 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<KeySwitch> SERIALIZER
| Method Detail |
|---|
public State getState()
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
|
0.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
© 2009 Alx Dark