|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.loading.LoadingList
public class LoadingList
A central list where all deferred loading resoures end up when deferred loading is in use. Each texture and sound loaded will be put in this list and can be loaded in one by one
Method Summary | |
---|---|
void |
add(DeferredResource resource)
Add a resource to be loaded at some later date |
static LoadingList |
get()
Get the single global loading list |
DeferredResource |
getNext()
Get the next resource that requries loading |
int |
getRemainingResources()
Get the number of remaining resources |
int |
getTotalResources()
Get the total number of resources that were in the list originally |
static boolean |
isDeferredLoading()
Check if we're using deferred loading |
void |
remove(DeferredResource resource)
Remove a resource from the list that has been loaded for other reasons. |
static void |
setDeferredLoading(boolean loading)
Indicate if we're going to use deferred loading. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LoadingList get()
public static void setDeferredLoading(boolean loading)
loading
- True if we should use deferred loadingpublic static boolean isDeferredLoading()
public void add(DeferredResource resource)
resource
- The resource to be addedpublic void remove(DeferredResource resource)
resource
- The resource to removepublic int getTotalResources()
public int getRemainingResources()
public DeferredResource getNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |