an AnimationEvent that indicates that a particular frame or frame sequence

index has been reached.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1729 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-09-20 21:35:11 +00:00
parent c1667c3782
commit e790f98774
@@ -0,0 +1,41 @@
//
// $Id: FrameReachedEvent.java,v 1.1 2002/09/20 21:35:11 ray Exp $
package com.threerings.media.animation;
/**
* Indicates that a particular frame was reached in an animation.
*/
public class FrameReachedEvent extends AnimationEvent
{
/**
* Construct a FrameReachedEvent.
*/
public FrameReachedEvent (Animation anim, int frameIdx, int frameSeq)
{
super(anim);
_frameIdx = frameIdx;
_frameSeq = frameSeq;
}
/**
* Return the index in the multi-frame animation that was reached.
*/
public int getFrameIndex ()
{
return _frameIdx;
}
/**
* Return the sequence number of the frame that was reached.
* This may be different from the index, a MultiFunction FrameSequencer
* can show a particular frame more than once.
*/
public int getFrameSequence ()
{
return _frameSeq;
}
/** Frame index and sequence for the event. */
protected int _frameIdx, _frameSeq;
}