us.asciiroth.client.items
Class Agentray

java.lang.Object
  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)
          Constructor.
 
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

SERIALIZER

public static final Serializer<Weakray> SERIALIZER
Type serializer.

Constructor Detail

Agentray

public Agentray(Agent agent)
Constructor.

Method Detail

getAgent

public Agent getAgent()

onThrowEnd

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
Overrides:
onThrowEnd in class AbstractItem

0.7

2009 Alx Dark