us.asciiroth.client.items
Class Bullet

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.items.AbstractItem
          extended by us.asciiroth.client.items.Bullet
All Implemented Interfaces:
Item, Piece, ProvidesAmmo

public class Bullet
extends AbstractItem
implements ProvidesAmmo

A bullet.


Field Summary
static Serializer<Bullet> SERIALIZER
          Type serializer.
 
Constructor Summary
Bullet()
          Constructor.
 
Method Summary
 void onHit(Event event, Cell agentLoc, Agent agent)
          Item has touched an agent either as a result of being thrown against the agent, or as a result of the player walking into the agent while holding the item.
 Item providesAmmoFor()
           
 
Methods inherited from class us.asciiroth.client.items.AbstractItem
getDefiniteNoun, getIndefiniteNoun, onDeselect, onDrop, onFire, onSelect, onSteppedOn, onThrow, onThrowEnd, 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<Bullet> SERIALIZER
Type serializer.

Constructor Detail

Bullet

public Bullet()
Constructor.

Method Detail

onHit

public void onHit(Event event,
                  Cell agentLoc,
                  Agent agent)
Description copied from interface: Item
Item has touched an agent either as a result of being thrown against the agent, or as a result of the player walking into the agent while holding the item. Cancelling the event within this method has no effect.

Specified by:
onHit in interface Item
Overrides:
onHit in class AbstractItem

providesAmmoFor

public Item providesAmmoFor()
Specified by:
providesAmmoFor in interface ProvidesAmmo

0.7

© 2009 Alx Dark