Package view
Class BufferedSpriteSheet
java.lang.Object
view.BufferedSpriteSheet
Container for the sprite sheet.
The number of sequence frames in this sprite sheet is not auto-magically computed.
Client code should ensure consistency.
- Author:
- Krish Pillai
-
Constructor Summary
ConstructorsConstructorDescriptionBufferedSpriteSheet(BufferedImage image, int count) Container for the sprite sheet buffered image. -
Method Summary
-
Constructor Details
-
BufferedSpriteSheet
Container for the sprite sheet buffered image.- Parameters:
image- the buffered imagecount- The frames in the buffered images
-
-
Method Details
-
getImage
Provides the buffer image.- Returns:
- the buffered image
-
getCount
public int getCount()The number of sequence frames in this sprite sheet is not auto-magically computed. Client code should ensure consistency.- Returns:
- the number of frames defined for this sheet
-