|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.PackedSpriteSheet
public class PackedSpriteSheet
A sprite sheet packed and defined by the Pacific Software Image Packer available from: http://homepage.ntlworld.com/config/imagepacker/
Constructor Summary | |
---|---|
PackedSpriteSheet(java.lang.String def)
Create a new packed sprite sheet based on a ImagePacker definition file |
|
PackedSpriteSheet(java.lang.String def,
Color trans)
Create a new packed sprite sheet based on a ImagePacker definition file |
|
PackedSpriteSheet(java.lang.String def,
int filter)
Create a new packed sprite sheet based on a ImagePacker definition file |
|
PackedSpriteSheet(java.lang.String def,
int filter,
Color trans)
Create a new packed sprite sheet based on a ImagePacker definition file |
Method Summary | |
---|---|
Image |
getFullImage()
Get the full image contaning all the sprites/sections |
Image |
getSprite(java.lang.String name)
Get a single named sprite from the sheet |
SpriteSheet |
getSpriteSheet(java.lang.String name)
Get a sprite sheet that has been packed into the greater image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackedSpriteSheet(java.lang.String def) throws SlickException
def
- The location of the definition file to read
SlickException
- Indicates a failure to read the definition filepublic PackedSpriteSheet(java.lang.String def, Color trans) throws SlickException
def
- The location of the definition file to readtrans
- The color to be treated as transparent
SlickException
- Indicates a failure to read the definition filepublic PackedSpriteSheet(java.lang.String def, int filter) throws SlickException
def
- The location of the definition file to readfilter
- The image filter to use when loading the packed sprite image
SlickException
- Indicates a failure to read the definition filepublic PackedSpriteSheet(java.lang.String def, int filter, Color trans) throws SlickException
def
- The location of the definition file to readfilter
- The image filter to use when loading the packed sprite imagetrans
- The color to be treated as transparent
SlickException
- Indicates a failure to read the definition fileMethod Detail |
---|
public Image getFullImage()
public Image getSprite(java.lang.String name)
name
- The name of the sprite to retrieve
public SpriteSheet getSpriteSheet(java.lang.String name)
name
- The name of the sprite sheet to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |