|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
|---|
int getOrientationCount()
TrimmedMultiFrameImage getFrames(int orient)
int getXOrigin(int orient,
int frameIdx)
int getYOrigin(int orient,
int frameIdx)
ActionFrames cloneColorized(Colorization[] zations)
ActionFrames cloneTranslated(int dx,
int dy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||