public class VGDLRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int[] |
explode(java.lang.String keys)
Returns an array of indexes (value in map) of a set of keys, for sprites.
|
static VGDLRegistry |
GetInstance()
Returns the unique instance of this class.
|
java.lang.String |
getRegisteredSpriteKey(int value)
Returns the String associated with the first (and in theory, unique) sprite value passed.
|
int |
getRegisteredSpriteValue(java.lang.String key)
Returns the index (value in map) of a given key, for sprites.
|
void |
init()
Initializes the registry of sprites for games.
|
int |
numSpriteTypes()
Returns the -number of elements in the sprite_mapping array.
|
int |
registerSprite(java.lang.String key)
Register a new sprite string.
|
public void init()
public static VGDLRegistry GetInstance()
public int registerSprite(java.lang.String key)
key
- key in the hashmap.public int getRegisteredSpriteValue(java.lang.String key)
key
- key to checkpublic int[] explode(java.lang.String keys)
keys
- list of keys, separated by commas.public java.lang.String getRegisteredSpriteKey(int value)
value
- value whose key is returned.public int numSpriteTypes()