us.asciiroth.client.terrain.triggers
Class TriggerOnceIfNot
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.decorators.Decorator
us.asciiroth.client.terrain.triggers.Trigger
us.asciiroth.client.terrain.triggers.TriggerOnce
us.asciiroth.client.terrain.triggers.TriggerOnceIfNot
- All Implemented Interfaces:
- ColorListener, Piece, Terrain, TerrainProxy
public class TriggerOnceIfNot
- extends TriggerOnce
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getTest()
A test value; if this value is present (either as a flag, or as the name of
an item), it will prevent the trigger from firing. |
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.decorators.Decorator |
canEnter, canExit, getProxiedTerrain, is, not, onAdjacentTo, onAgentEnter, onAgentExit, onColorEvent, onDrop, onEnter, onExit, onFlyOver, onNotAdjacentTo, onPickup |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<TriggerOnceIfNot> SERIALIZER
- Type serializer.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class TriggerOnce
getTest
public java.lang.String getTest()
- A test value; if this value is present (either as a flag, or as the name of
an item), it will prevent the trigger from firing.
- Returns:
- the value that prevents this trigger from firing.
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 TriggerOnce
© 2009 Alx Dark