public static class BundledComponentRepository.TileSetFrameImage extends Object implements ActionFrames
| Constructor and Description |
|---|
TileSetFrameImage(TileSet set,
ActionSequence actseq)
Constructs a tileset frame image with the specified tileset and for the specified
orientation.
|
TileSetFrameImage(TileSet set,
ActionSequence actseq,
int dx,
int dy)
Constructs a tileset frame image with the specified tileset and for the specified
orientation, with an optional translation.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Tile |
getTile(int orient,
int index) |
Mirage |
getTileMirage(int orient,
int index) |
void |
getTrimmedBounds(int orient,
int index,
Rectangle bounds) |
int |
getXOrigin(int orient,
int index)
Returns the x offset from the upper left of the image to the "origin" for this character
frame.
|
int |
getYOrigin(int orient,
int index)
Returns the y offset from the upper left of the image to the "origin" for this character
frame.
|
public TileSetFrameImage(TileSet set, ActionSequence actseq)
public TileSetFrameImage(TileSet set, ActionSequence actseq, int dx, int dy)
public int getOrientationCount()
ActionFramesgetOrientationCount in interface ActionFramespublic TrimmedMultiFrameImage getFrames(int orient)
ActionFramesgetFrames in interface ActionFramespublic void getTrimmedBounds(int orient,
int index,
Rectangle bounds)
public int getXOrigin(int orient,
int index)
ActionFramesgetXOrigin in interface ActionFramespublic int getYOrigin(int orient,
int index)
ActionFramesgetYOrigin in interface ActionFramespublic ActionFrames cloneColorized(Colorization[] zations)
ActionFramescloneColorized in interface ActionFramespublic ActionFrames cloneTranslated(int dx, int dy)
ActionFramescloneTranslated in interface ActionFramespublic Tile getTile(int orient, int index)
public Mirage getTileMirage(int orient, int index)
Copyright © 2015. All rights reserved.