playn.java
Class JavaAssetManager

java.lang.Object
  extended by playn.core.AbstractAssetManager
      extended by playn.java.JavaAssetManager
All Implemented Interfaces:
AssetManager

public class JavaAssetManager
extends AbstractAssetManager

TODO(jgw): Make it possible to add more filesystem roots.


Constructor Summary
JavaAssetManager()
           
 
Method Summary
protected  Image doGetImage(String path)
           
protected  Sound doGetSound(String path)
           
protected  void doGetText(String path, ResourceCallback<String> callback)
           
 void setPathPrefix(String prefix)
           
 
Methods inherited from class playn.core.AbstractAssetManager
getImage, getPendingRequestCount, getSound, getText, isDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAssetManager

public JavaAssetManager()
Method Detail

setPathPrefix

public void setPathPrefix(String prefix)

doGetImage

protected Image doGetImage(String path)
Specified by:
doGetImage in class AbstractAssetManager
Parameters:
collection - is ignored
key - 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.