playn.java
Class JavaAssetManager
java.lang.Object
playn.core.AbstractAssetManager
playn.java.JavaAssetManager
- All Implemented Interfaces:
- AssetManager
public class JavaAssetManager
- extends AbstractAssetManager
TODO(jgw): Make it possible to add more filesystem roots.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaAssetManager
public JavaAssetManager()
setPathPrefix
public void setPathPrefix(String prefix)
doGetImage
protected Image doGetImage(String path)
- Specified by:
doGetImage in class AbstractAssetManager
- Parameters:
collection - is ignoredkey - the path to the file
doGetSound
protected Sound doGetSound(String path)
- Specified by:
doGetSound in class AbstractAssetManager
doGetText
protected void doGetText(String path,
ResourceCallback<String> callback)
- Specified by:
doGetText in class AbstractAssetManager
Copyright © 2011. All Rights Reserved.