us.asciiroth.client.terrain
Class Crate

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.terrain.AbstractTerrain
          extended by us.asciiroth.client.terrain.Crate
All Implemented Interfaces:
Piece, Terrain

public class Crate
extends AbstractTerrain

A large box that can be broken open with a large hammer, to reveal an item. This essentially hides items on the board.


Field Summary
static Serializer<Crate> SERIALIZER
          Type serializer.
 
Constructor Summary
Crate(Item item)
           
Crate(Item item, int count)
           
 
Method Summary
 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

SERIALIZER

public static final Serializer<Crate> SERIALIZER
Type serializer.

Constructor Detail

Crate

public Crate(Item item)

Crate

public Crate(Item item,
             int count)
Method Detail

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