us.asciiroth.client.terrain
Class WishingWell
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.WishingWell
- All Implemented Interfaces:
- Piece, Terrain
public class WishingWell
- extends AbstractTerrain
Wishing well. Throw a coin in and it will give you what you
most need (it'll fix your worst liability at the moment). But
it will only work one time. Along with fishing, it's intended
to be a bit of a safety valve for a scenario that's gotten
too hard.
Method Summary |
void |
onDrop(Event event,
Cell itemLoc,
Item item)
Item is going to drop onto the terrain at this point. |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<WishingWell> SERIALIZER
- Type serializer.
WishingWell
public WishingWell(Terrain terrain,
State state)
- Constructor.
onDrop
public void onDrop(Event event,
Cell itemLoc,
Item item)
- Description copied from interface:
Terrain
- Item is going to drop onto the terrain at this point. If the event
if canceled at this point, then the item will simply disappear
from the board.
- Specified by:
onDrop
in interface Terrain
- Overrides:
onDrop
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
© 2009 Alx Dark