us.asciiroth.client.terrain.decorators
Class TrapContainerBase

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
All Implemented Interfaces:
ColorListener, Piece, Terrain, TerrainProxy
Direct Known Subclasses:
EnergyTrapContainer, PoisonTrapContainer, ResistancesTrapContainer

public abstract class TrapContainerBase
extends Decorator

A container (chest or crate) that is trapped and explodes when opened. (Currently, a poison cloud, but that will configurable). It's rather easy to avoid, if you try to avoid it, so I wonder if detect hidden is even necessary here.


Constructor Summary
TrapContainerBase(Terrain terrain)
           
 
Method Summary
 void onAdjacentToInternal(Context context, Cell cell)
          Override this method in subclasses in order to augment the onAdjacentTo behavior of the decorated terrain.
 
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
 
Methods inherited from interface us.asciiroth.client.core.TerrainProxy
proxy
 

Constructor Detail

TrapContainerBase

public TrapContainerBase(Terrain terrain)
Method Detail

onAdjacentToInternal

public void onAdjacentToInternal(Context context,
                                 Cell cell)
Description copied from class: Decorator
Override this method in subclasses in order to augment the onAdjacentTo behavior of the decorated terrain.


0.7

2009 Alx Dark