us.asciiroth.client.terrain.triggers
Class TriggerIf

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

public class TriggerIf
extends Trigger

Trigger that will fire if the player has a specific flag or a specific item.


Field Summary
static Serializer<TriggerIf> SERIALIZER
          Type serializer.
 
Method Summary
 java.lang.String getTest()
          A test value; there must be a flag or an item by this name in order for the trigger to fire.
 void onEnterInternal(Event event, Player player, Cell cell, Direction dir)
          Override this method in subclasses in order to augment the onEnter behavior of the decorated terrain.
 
Methods inherited from class us.asciiroth.client.terrain.triggers.Trigger
getMessage, proxy
 
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<TriggerIf> SERIALIZER
Type serializer.

Method Detail

getTest

public java.lang.String getTest()
A test value; there must be a flag or an item by this name in order for the trigger to fire.

Returns:
the value needed for this triger to fire.

onEnterInternal

public void onEnterInternal(Event event,
                            Player player,
                            Cell cell,
                            Direction dir)
Description copied from class: Decorator
Override this method in subclasses in order to augment the onEnter behavior of the decorated terrain.

Overrides:
onEnterInternal in class Trigger

0.7

2009 Alx Dark