us.asciiroth.client.items
Class HelmOfTheAsciiroth

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

public class HelmOfTheAsciiroth
extends AbstractItem
implements Animated

An artifact (to me, this means there should only ever be one of these in any given scenario). It has the curious property that when used, it shoots stonifying bullets out in all directions (at a small cost in health to the player).


Field Summary
static Serializer<HelmOfTheAsciiroth> SERIALIZER
          Type serializer.
 
Constructor Summary
HelmOfTheAsciiroth()
          Constructor.
 
Method Summary
 java.lang.String getDefiniteNoun(java.lang.String phrase)
          Produce the phrase with the {0} token replaced with the name of this item using a definite article.
 java.lang.String getIndefiniteNoun(java.lang.String phrase)
          Produce the phrase with the {0} token replaced with the name of this item using an indefinite article.
 void onFrame(Context ctx, Cell cell, int frame)
          Animation callback, executed once each frame for each piece animated on the board.
 void onUse(Event event)
          The player has used the item without indicating any particular direction for use.
 boolean randomSeed()
          Should this animation start with a randomly seeded number as its first frame? For some animations, this can prevent all presentations of the piece on the board executing the same animation frame at the same time.
 
Methods inherited from class us.asciiroth.client.items.AbstractItem
onDeselect, onDrop, onFire, onHit, onSelect, onSteppedOn, onThrow, onThrowEnd
 
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<HelmOfTheAsciiroth> SERIALIZER
Type serializer.

Constructor Detail

HelmOfTheAsciiroth

public HelmOfTheAsciiroth()
Constructor.

Method Detail

getDefiniteNoun

public java.lang.String getDefiniteNoun(java.lang.String phrase)
Description copied from interface: Item
Produce the phrase with the {0} token replaced with the name of this item using a definite article.

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

getIndefiniteNoun

public java.lang.String getIndefiniteNoun(java.lang.String phrase)
Description copied from interface: Item
Produce the phrase with the {0} token replaced with the name of this item using an indefinite article.

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

onFrame

public void onFrame(Context ctx,
                    Cell cell,
                    int frame)
Description copied from interface: Animated
Animation callback, executed once each frame for each piece animated on the board.

Specified by:
onFrame in interface Animated

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

randomSeed

public boolean randomSeed()
Description copied from interface: Animated
Should this animation start with a randomly seeded number as its first frame? For some animations, this can prevent all presentations of the piece on the board executing the same animation frame at the same time.

Specified by:
randomSeed in interface Animated
Returns:
true if a random frame should begin the animated piece's timeline

0.7

2009 Alx Dark