us.asciiroth.client.agents
Class AbstractAnimatedAgent

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.agents.AbstractAgent
          extended by 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.


Constructor Summary
AbstractAnimatedAgent(java.lang.String name, int flags, Color color, int chanceToHit, Symbol symbol)
          Constructor.
 
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 us.asciiroth.client.agents.AbstractAgent
canEnter, changeHealth, onDie, onHit, onHitBy, onHitBy
 
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.Animated
onFrame
 
Methods inherited from interface us.asciiroth.client.core.Piece
getColor, getName, getSymbol, is, not
 

Constructor Detail

AbstractAnimatedAgent

public AbstractAnimatedAgent(java.lang.String name,
                             int flags,
                             Color color,
                             int chanceToHit,
                             Symbol symbol)
Constructor.

Parameters:
name -
flags -
color -
chanceToHit -
symbol -
Method Detail

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