Moved sprite stuff into media package, removed coupling between miso stuff
and sprite stuff by added some interfaces in the sprite stuff and implementing them with the miso stuff. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@245 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// $Id: MultiFrameImage.java,v 1.1 2001/08/14 23:35:22 mdb Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
import java.awt.Image;
|
||||
|
||||
/**
|
||||
* The multi-frame image interface provides encapsulated access to a set
|
||||
* of images that are used to create a multi-frame animation.
|
||||
*/
|
||||
public interface MultiFrameImage
|
||||
{
|
||||
/**
|
||||
* Returns the number of frames in this multi-frame image.
|
||||
*/
|
||||
public int getFrameCount ();
|
||||
|
||||
/**
|
||||
* Returns the image for the specified frame index.
|
||||
*/
|
||||
public Image getFrame (int index);
|
||||
}
|
||||
Reference in New Issue
Block a user