public class SpriteMap extends Object implements com.sun.sgs.app.ManagedObject, Serializable
HashMap (or similar) into a ManagedObject directly, so we need some intermediate structure. It
also, as a utility, provides the side of the sprites (which are of
uniform height and width).| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_PREFIX
The standard namespace prefix.
|
| Constructor and Description |
|---|
SpriteMap(int spriteSize,
Map<Integer,byte[]> spriteMap)
Creates an instance of
SpriteMap. |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,byte[]> |
getSpriteMap()
Returns the map from sprite identifier to sprite image bytes.
|
int |
getSpriteSize()
Returns the dimension of the sprites in this map.
|
public static final String NAME_PREFIX
Copyright © 2013. All Rights Reserved.