us.asciiroth.client.agents
Class AbstractAnimatedAgent
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.agents.AbstractAgent
us.asciiroth.client.agents.AbstractAnimatedAgent
- All Implemented Interfaces:
- Agent, Animated, Piece
- Direct Known Subclasses:
- Asciiroth, Cephalid, Corvid, Farthapod, GreatOldOne, Hooloovoo, KillerBee, LavaWorm, LightningLizard, NPC, Optilisk, Rhindle, Sleestak, Tetrite, Thermadon, Triffid, Tumbleweed
public abstract class AbstractAnimatedAgent
- extends AbstractAgent
- implements Animated
Abstract class for animated agents.
Method Summary |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAnimatedAgent
public AbstractAnimatedAgent(java.lang.String name,
int flags,
Color color,
int chanceToHit,
Symbol symbol)
- Constructor.
- Parameters:
name
- flags
- color
- chanceToHit
- symbol
-
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