us.asciiroth.client.terrain.decorators
Class ResistancesTrapContainer

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.terrain.decorators.Decorator
          extended by us.asciiroth.client.terrain.decorators.TrapContainerBase
              extended by us.asciiroth.client.terrain.decorators.ResistancesTrapContainer
All Implemented Interfaces:
ColorListener, Piece, Terrain, TerrainProxy

public class ResistancesTrapContainer
extends TrapContainerBase

A container (chest or crate) that is trapped and explodes when opened. It creates a cloud of poison that will poison the player.


Field Summary
static Serializer<ResistancesTrapContainer> SERIALIZER
          Type serializer.
 
Constructor Summary
ResistancesTrapContainer(Terrain terrain)
          Constructor.
 
Method Summary
 Terrain proxy(Terrain terrain)
           
 
Methods inherited from class us.asciiroth.client.terrain.decorators.TrapContainerBase
onAdjacentToInternal
 
Methods inherited from class us.asciiroth.client.terrain.decorators.Decorator
canEnter, canExit, getProxiedTerrain, is, not, onAdjacentTo, onAgentEnter, onAgentExit, onColorEvent, onDrop, onEnter, onExit, onFlyOver, onNotAdjacentTo, onPickup
 
Methods inherited from class us.asciiroth.client.core.AbstractPiece
getColor, getName, getSymbol
 
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
 

Field Detail

SERIALIZER

public static final Serializer<ResistancesTrapContainer> SERIALIZER
Type serializer.

Constructor Detail

ResistancesTrapContainer

public ResistancesTrapContainer(Terrain terrain)
Constructor.

Parameters:
terrain -
Method Detail

proxy

public Terrain proxy(Terrain terrain)
Returns:
a new proxy, with the same behavior but wrapping a different terrain

0.7

2009 Alx Dark