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

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.