us.asciiroth.client.terrain
Class Exchanger
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.Exchanger
- All Implemented Interfaces:
- Piece, Terrain
public class Exchanger
- extends AbstractTerrain
When the player walks into an exchanger, the item the player is holding is
exchanged with the piece on the other side of the exchanger. It's
placement is important; it should be placed with wall pieces so there is
no way around it, otherwise the exchange won't mean very much.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Exchanger> 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
© 2009 Alx Dark