|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.AbstractMedia
com.threerings.media.animation.Animation
com.threerings.puzzle.drop.client.PieceGroupAnimation
public abstract class PieceGroupAnimation
Animates all the pieces on a puzzle board doing some sort of global effect like all flying into place or out into the ether.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.media.animation.Animation |
|---|
com.threerings.media.animation.Animation.AnimCompletedOp, com.threerings.media.animation.Animation.AnimStartedOp |
| Field Summary | |
|---|---|
protected DropBoard |
_board
|
protected int |
_penders
|
protected com.threerings.media.sprite.Sprite[] |
_sprites
|
protected DropBoardView |
_view
|
| Fields inherited from class com.threerings.media.animation.Animation |
|---|
_finished |
| Fields inherited from class com.threerings.media.AbstractMedia |
|---|
_bounds, _firstTick, _mgr, _observers, _renderOrder, HUD_LAYER |
| Constructor Summary | |
|---|---|
PieceGroupAnimation(DropBoardView view,
DropBoard board)
Creates a piece group animation which must be initialized with a subsequent call to AbstractMedia.init(AbstractMediaManager). |
|
| Method Summary | |
|---|---|
protected abstract void |
configureSprite(com.threerings.media.sprite.Sprite sprite,
int xx,
int yy)
An animation must override this method to configure each sprite with a path, potentially a render order, and whatever other configurations are needed. |
void |
paint(Graphics2D gfx)
|
void |
pathCancelled(com.threerings.media.sprite.Sprite sprite,
com.threerings.media.util.Path path)
|
void |
pathCompleted(com.threerings.media.sprite.Sprite sprite,
com.threerings.media.util.Path path,
long when)
|
void |
tick(long tickStamp)
|
protected void |
willStart(long tickStamp)
|
| Methods inherited from class com.threerings.media.animation.Animation |
|---|
addAnimationObserver, didFinish, isFinished, removeAnimationObserver, reset, setLocation, willFinish |
| Methods inherited from class com.threerings.media.AbstractMedia |
|---|
addObserver, contains, contains, contains, contains, fastForward, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, init, intersects, intersects, invalidate, invalidateAfterChange, naturalCompareTo, queueNotification, removeObserver, renderCompareTo, setRenderOrder, shutdown, toString, toString, viewLocationDidChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DropBoardView _view
protected DropBoard _board
protected com.threerings.media.sprite.Sprite[] _sprites
protected int _penders
| Constructor Detail |
|---|
public PieceGroupAnimation(DropBoardView view,
DropBoard board)
AbstractMedia.init(AbstractMediaManager).
| Method Detail |
|---|
public void tick(long tickStamp)
tick in class com.threerings.media.AbstractMediapublic void paint(Graphics2D gfx)
paint in class com.threerings.media.AbstractMedia
public void pathCancelled(com.threerings.media.sprite.Sprite sprite,
com.threerings.media.util.Path path)
pathCancelled in interface com.threerings.media.sprite.PathObserver
public void pathCompleted(com.threerings.media.sprite.Sprite sprite,
com.threerings.media.util.Path path,
long when)
pathCompleted in interface com.threerings.media.sprite.PathObserverprotected void willStart(long tickStamp)
willStart in class com.threerings.media.animation.Animation
protected abstract void configureSprite(com.threerings.media.sprite.Sprite sprite,
int xx,
int yy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||