us.asciiroth.client.items
Class Grenade
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.items.AbstractItem
us.asciiroth.client.items.Grenade
- All Implemented Interfaces:
- Item, Piece
- Direct Known Subclasses:
- Fireball
public class Grenade
- extends AbstractItem
A grenade that can be thrown and that explodes just like a fireball.
These are really quite deadly and should be available in sparse quantities.
Constructor Summary |
Grenade()
Constructor. |
Method Summary |
void |
onThrowEnd(Event event,
Cell cell)
Notification that this item, having been thrown, has fallen to the ground
at the indicated cell. |
void |
onUse(Event event)
The player has used the item without indicating any particular direction
for use. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Grenade> SERIALIZER
- Type serializer.
Grenade
public Grenade()
- Constructor.
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
onUse
public void onUse(Event event)
- Description copied from interface:
Item
- The player has used the item without indicating any particular direction
for use. Even if the item has no intrinsic use, it's helpful to cancel the
event with a message explaining that the item requires a direction to be
useful.
- Specified by:
onUse
in interface Item
- Overrides:
onUse
in class AbstractItem
© 2009 Alx Dark