us.asciiroth.client.items
Class Stoneray
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.items.AbstractItem
us.asciiroth.client.items.Stoneray
- All Implemented Interfaces:
- Item, Piece
public class Stoneray
- extends AbstractItem
A bullet that will turn its target to stone. For the player that's pretty
much Game Over. However, paralysis resistance will prevent being
turned to stone.
Method Summary |
Symbol |
getSymbol()
AbstractPiece does not support different rendering outside
as opposed to inside. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Stoneray> SERIALIZER
- Type serializer.
getSymbol
public Symbol getSymbol()
- Description copied from class:
AbstractPiece
- AbstractPiece does not support different rendering outside
as opposed to inside. Subclasses must implement this.
- Specified by:
getSymbol
in interface Piece
- Overrides:
getSymbol
in class AbstractPiece
- Returns:
- the symbol for this piece
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
© 2009 Alx Dark