us.asciiroth.client.items
Class Rock
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.items.AbstractItem
us.asciiroth.client.items.Rock
- All Implemented Interfaces:
- Item, Piece, ProvidesAmmo
public class Rock
- extends AbstractItem
- implements ProvidesAmmo
A rock. It is a weapon, but more useful as a throwable.
Constructor Summary |
Rock()
Constructor. |
Method Summary |
void |
onHit(Event event,
Cell cell,
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Rock> SERIALIZER
- Type serializer.
Rock
public Rock()
- Constructor.
onHit
public void onHit(Event event,
Cell cell,
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
© 2009 Alx Dark