us.asciiroth.client.core
Interface Animated

All Known Implementing Classes:
AbstractAnimatedAgent, AgentProxy, Archer, Asciiroth, Bomb, BubblingLava, Campfire, Cephalid, Chalice, Commoner, Corvid, EnergyCloud, EuclideanEngine, EuclideanTransporter, Fade, Farthapod, Fire, FishPool, ForceField, Fountain, GreatOldOne, HelmOfTheAsciiroth, Hit, Hooloovoo, InFlightItem, KillerBee, LavaWorm, LightningLizard, MallocArcher, MallocCommoner, MallocNoble, MallocRifleman, MallocWizard, Noble, NPC, Open, Optilisk, Paralyzed, Player, PoisonCloud, Pusher, Pylon, ResistancesCloud, Rhindle, Rifleman, RollingBoulder, Shooter, Sleestak, Smash, Statue, Teleporter, TerminusEst, Tetrite, Thermadon, Timer, Triffid, Tumbleweed, Turnstile, Waterfall, Wizard

public interface Animated

A piece that is animated. The piece receives notification once per frame in the animation timeline, and can move itself, create an event to be re-rerendered, or perform any other time-based activity.


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.
 

Method Detail

onFrame

void onFrame(Context ctx,
             Cell cell,
             int frame)
Animation callback, executed once each frame for each piece animated on the board.

Parameters:
ctx -
cell -
frame -

randomSeed

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.

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

0.7

2009 Alx Dark