us.asciiroth.client.agents
Class Paralyzed

java.lang.Object
  extended by us.asciiroth.client.agents.AgentProxy
      extended by us.asciiroth.client.agents.Paralyzed
All Implemented Interfaces:
Agent, Animated, Piece

public class Paralyzed
extends AgentProxy

An AgentProxy decorator that renders the underlying agent paralyzed.


Field Summary
static Serializer<Paralyzed> SERIALIZER
          Type serializer.
 
Constructor Summary
Paralyzed(Agent agent)
          Constructor.
 
Method Summary
 Symbol getSymbol()
          The symbol to display for this piece.
 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.agents.AgentProxy
canEnter, changeHealth, getAgent, getColor, getName, is, not, onDie, onHit, onHitBy, onHitBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZER

public static final Serializer<Paralyzed> SERIALIZER
Type serializer.

Constructor Detail

Paralyzed

public Paralyzed(Agent agent)
Constructor.

Parameters:
agent -
Method Detail

getSymbol

public Symbol getSymbol()
Description copied from interface: Piece
The symbol to display for this piece.

Specified by:
getSymbol in interface Piece
Overrides:
getSymbol in class AgentProxy
Returns:
the symbol for this piece

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
Overrides:
onFrame in class AgentProxy

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.

Returns:
true if a random frame should begin the animated piece's timeline

0.7

2009 Alx Dark