com.threerings.cast
Interface ActionFrames

All Known Implementing Classes:
BundledComponentRepository.TileSetFrameImage, CompositedActionFrames

public interface ActionFrames

Encapsulates a set of frames in each of DirectionCodes.DIRECTION_COUNT orientations that are used to render a character sprite.


Method Summary
 ActionFrames cloneColorized(Colorization[] zations)
          Creates a clone of these action frames which will have the supplied colorizations applied to the frame images.
 ActionFrames cloneTranslated(int dx, int dy)
          Creates a clone of these action frames which will have the supplied translation applied to the frame images.
 TrimmedMultiFrameImage getFrames(int orient)
          Returns the multi-frame image that comprises the frames for the specified orientation.
 int getOrientationCount()
          Returns the number of orientations available in this set of action frames.
 int getXOrigin(int orient, int frameIdx)
          Returns the x offset from the upper left of the image to the "origin" for this character frame.
 int getYOrigin(int orient, int frameIdx)
          Returns the y offset from the upper left of the image to the "origin" for this character frame.
 

Method Detail

getOrientationCount

int getOrientationCount()
Returns the number of orientations available in this set of action frames.


getFrames

TrimmedMultiFrameImage getFrames(int orient)
Returns the multi-frame image that comprises the frames for the specified orientation.


getXOrigin

int getXOrigin(int orient,
               int frameIdx)
Returns the x offset from the upper left of the image to the "origin" for this character frame. A sprite with location (x, y) will be rendered such that its origin is coincident with that location.


getYOrigin

int getYOrigin(int orient,
               int frameIdx)
Returns the y offset from the upper left of the image to the "origin" for this character frame. A sprite with location (x, y) will be rendered such that its origin is coincident with that location.


cloneColorized

ActionFrames cloneColorized(Colorization[] zations)
Creates a clone of these action frames which will have the supplied colorizations applied to the frame images.


cloneTranslated

ActionFrames cloneTranslated(int dx,
                             int dy)
Creates a clone of these action frames which will have the supplied translation applied to the frame images.