de.adom.jade.startup
Class JadeLoader

java.lang.Object
  extended by java.lang.Thread
      extended by de.adom.jade.startup.JadeLoader
All Implemented Interfaces:
java.lang.Runnable, StartupConstants

public class JadeLoader
extends java.lang.Thread
implements StartupConstants

Loads the basic data required by JADE. This is done in an indirect way to be able to display the splash screen as soon as possible (before the majority of classes has been loaded).


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface de.adom.jade.startup.StartupConstants
PL_BASIC_MAP_FINISHED, PL_DESERTS_FINISHED, PL_DUNGEONS_FINISHED, PL_GENESIS_DATA_CLEANED_UP, PL_GENESIS_DATA_CREATED, PL_MAXIMUM, PL_PRE_UI_INITIALIZATION, PL_RIVERS_FINISHED, PL_SEISMIC_ACTIVITY_FINISHED, PL_SETTLEMENTS_FINISHED, PL_SWAMPS_FINISHED, PL_WORD_FORMS_FINISHED, PL_WORLD_MAP_FINISHED
 
Constructor Summary
JadeLoader(SplashScreen theScreen, UserInterface theUI)
          Creates a new loader for loading all JADE data in a delayed way.
 
Method Summary
 void run()
          Starts the actual loading.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JadeLoader

public JadeLoader(SplashScreen theScreen,
                  UserInterface theUI)
Creates a new loader for loading all JADE data in a delayed way.

Parameters:
theScreen - the splash screen to utilize while the data is loaded
theWorld - the world to initialize
theUI - the user interface to initialize
Method Detail

run

public void run()
Starts the actual loading.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread