us.asciiroth.client.items
Class Chalice
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.items.AbstractItem
us.asciiroth.client.items.Chalice
- All Implemented Interfaces:
- Animated, Item, Piece
public class Chalice
- extends AbstractItem
- implements Animated
An artifact from the Atari 2600 game "Adventure". The chalice has
no unique capabilities, it is purely an object that is suitable
as a goal for a quest.
Constructor Summary |
Chalice()
Constructor. |
Method Summary |
void |
onFrame(Context ctx,
Cell cell,
int frame)
Animation callback, executed once each frame for each piece
animated on the board. |
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 |
getDefiniteNoun, getIndefiniteNoun, onDeselect, onDrop, onFire, onHit, onSelect, onSteppedOn, onThrow, onThrowEnd, onUse |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<Chalice> SERIALIZER
- Type serializer.
Chalice
public Chalice()
- Constructor.
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
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
© 2009 Alx Dark