us.asciiroth.client.terrain
Class Crevasse
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.Crevasse
- All Implemented Interfaces:
- Piece, Terrain
public class Crevasse
- extends AbstractTerrain
An impassable crevasse. On outside terrain it's more convincing to use the
cliff decorator to achieve something similar, so this piece has no
outside representation.
- Author:
- alxdark
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Crevasse> SERIALIZER
- Type serializer.
onAdjacentTo
public void onAdjacentTo(Context context,
Cell cell)
- Description copied from interface:
Terrain
- This terrain is adjacent to the player. It may render differently
under these circumstances.
- Specified by:
onAdjacentTo
in interface Terrain
- Overrides:
onAdjacentTo
in class AbstractTerrain
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
onNotAdjacentTo
public void onNotAdjacentTo(Context context,
Cell cell)
- Description copied from interface:
Terrain
- This terrain is no longer adjacent to the player. It may render
differently under these circumstances.
- Specified by:
onNotAdjacentTo
in interface Terrain
- Overrides:
onNotAdjacentTo
in class AbstractTerrain
© 2009 Alx Dark