us.asciiroth.client.terrain.decorators
Class TrapContainerBase
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.decorators.Decorator
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.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrapContainerBase
public TrapContainerBase(Terrain terrain)
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.
© 2009 Alx Dark