Class Spritesheets
java.lang.Object
de.gurkenlabs.litiengine.resources.Spritesheets
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String name, Spritesheet spritesheet) voidvoidclear()booleanFinds Spritesheets that were previously loaded by any load method or by the sprites.info file.get(Predicate<? super Spritesheet> pred) getAll()int[]int[]load(SpritesheetResource info) load(BufferedImage image, String path, int spriteWidth, int spriteHeight) The sprite info file must be located under the GameInfo#getSpritesDirectory() directory.voidbooleanupdate(SpritesheetResource info)
-
Method Details
-
add
-
addClearedListener
-
removeClearedListener
-
clear
public void clear() -
contains
-
get
Finds Spritesheets that were previously loaded by any load method or by the sprites.info file.- Parameters:
path- The path of the spritesheet.- Returns:
- The
Spritesheetassociated with the path or null if not loaded yet
-
get
-
getAll
-
getCustomKeyFrameDurations
-
getCustomKeyFrameDurations
-
load
-
load
-
load
-
loadFrom
The sprite info file must be located under the GameInfo#getSpritesDirectory() directory.- Parameters:
spriteInfoFile- The path to the sprite info file.- Returns:
- A list of spritesheets that were loaded from the info file.
-
saveTo
-
load
-
remove
-
update
-