us.asciiroth.client.terrain
Class Bookshelf

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

public class Bookshelf
extends AbstractTerrain

A bookshelf. It blocks movement, but it can be searched for contents, such as scrolls. It shows blue if the player is has the detect hidden capability.


Field Summary
static Serializer<Bookshelf> SERIALIZER
          Type serializer.
 
Constructor Summary
Bookshelf(Item item)
          Constructor.
 
Method Summary
 void onAdjacentTo(Context context, Cell cell)
          This terrain is adjacent to the player.
 void onEnter(Event event, Player player, Cell cell, Direction dir)
          Agent attempting to leave the from cell, heading toward the to cell.
 void onNotAdjacentTo(Context context, Cell cell)
          This terrain is no longer adjacent to the player.
 
Methods inherited from class us.asciiroth.client.terrain.AbstractTerrain
canEnter, canExit, onAgentEnter, onAgentExit, onDrop, onExit, onFlyOver, 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<Bookshelf> SERIALIZER
Type serializer.

Constructor Detail

Bookshelf

public Bookshelf(Item item)
Constructor.

Method Detail

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

0.7

2009 Alx Dark