Class SpritesheetResource
java.lang.Object
de.gurkenlabs.litiengine.resources.NamedResource
de.gurkenlabs.litiengine.resources.SpritesheetResource
public class SpritesheetResource
extends NamedResource
implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PLAIN_TEXT_FILE_EXTENSION
Constructor Summary
Constructors Constructor Description SpritesheetResource()
SpritesheetResource(Spritesheet sprite)
SpritesheetResource(java.awt.image.BufferedImage image, java.lang.String name, int width, int height)
Method Summary
Modifier and Type Method Description int
getHeight()
java.lang.String
getImage()
ImageFormat
getImageFormat()
int[]
getKeyframes()
int
getWidth()
void
setHeight(int h)
void
setImage(java.lang.String image)
void
setImageFormat(ImageFormat f)
void
setKeyframes(int[] keyframes)
void
setWidth(int w)
Field Details
PLAIN_TEXT_FILE_EXTENSION
public static final java.lang.String PLAIN_TEXT_FILE_EXTENSION- See Also:
- Constant Field Values
Constructor Details
SpritesheetResource
public SpritesheetResource()SpritesheetResource
SpritesheetResource
public SpritesheetResource(java.awt.image.BufferedImage image, java.lang.String name, int width, int height)
Method Details
getHeight
public int getHeight()getImage
public java.lang.String getImage()getWidth
public int getWidth()getImageFormat
getKeyframes
public int[] getKeyframes()setHeight
public void setHeight(int h)setImage
public void setImage(java.lang.String image)setWidth
public void setWidth(int w)setImageFormat
setKeyframes
public void setKeyframes(int[] keyframes)