us.asciiroth.client.terrain
Class WishingWell

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.terrain.AbstractTerrain
          extended by 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.


Field Summary
static Serializer<WishingWell> SERIALIZER
          Type serializer.
 
Constructor Summary
WishingWell(Terrain terrain, State state)
          Constructor.
 
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 us.asciiroth.client.terrain.AbstractTerrain
canEnter, canExit, onAdjacentTo, onAgentEnter, onAgentExit, 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

SERIALIZER

public static final Serializer<WishingWell> SERIALIZER
Type serializer.

Constructor Detail

WishingWell

public WishingWell(Terrain terrain,
                   State state)
Constructor.

Method Detail

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

0.7

2009 Alx Dark