Class Agentray

  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.items.AbstractItem
          extended by us.asciiroth.client.items.Agentray
All Implemented Interfaces:
Item, Piece

public class Agentray
extends AbstractItem

When Asciiroth receives a color event, it shoot a kind of ammo that releases an agent when it explodes.

Field Summary
static Serializer<Weakray> SERIALIZER
          Type serializer.
Constructor Summary
Agentray(Agent agent)
Method Summary
 Agent getAgent()
 void onThrowEnd(Event event, Cell cell)
          Notification that this item, having been thrown, has fallen to the ground at the indicated cell.
Methods inherited from class us.asciiroth.client.items.AbstractItem
getDefiniteNoun, getIndefiniteNoun, onDeselect, onDrop, onFire, onHit, onSelect, onSteppedOn, onThrow, onUse
Methods inherited from class us.asciiroth.client.core.AbstractPiece
getColor, getName, getSymbol, is, not
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, is, not

Field Detail


public static final Serializer<Weakray> SERIALIZER
Type serializer.

Constructor Detail


public Agentray(Agent agent)

Method Detail


public Agent getAgent()


public void onThrowEnd(Event event,
                       Cell cell)
Description copied from interface: Item
Notification that this item, having been thrown, has fallen to the ground at the indicated cell. If you cancel the event, the item will disappear from the board.

Specified by:
onThrowEnd in interface Item
onThrowEnd in class AbstractItem


2009 Alx Dark