com.b3dgs.lionengine.engine
Class EngineFactory

java.lang.Object
  extended by com.b3dgs.lionengine.Engine
      extended by com.b3dgs.lionengine.engine.EngineFactory

public final class EngineFactory
extends Engine


Field Summary
 
Fields inherited from class com.b3dgs.lionengine.Engine
AUTHOR, CORES, DATE, ENGINE, name, NAME, started, version, VERSION
 
Constructor Summary
protected EngineFactory()
           
 
Method Summary
 Initializer createInitializer(int widthRef, int heightRef, int depthRef, int rateRef)
          Create a new initializer, used for game configuration reference.
 Loader createLoader(Initializer init, Config config, AbstractLauncher launcher)
          Create a loader, from an initializer and a config.
static EngineFactory getInstance()
           
 
Methods inherited from class com.b3dgs.lionengine.Engine
start, tempDir, verbose, verbose, workingDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineFactory

protected EngineFactory()
Method Detail

getInstance

public static EngineFactory getInstance()
Returns:
singleton.

createInitializer

public Initializer createInitializer(int widthRef,
                                     int heightRef,
                                     int depthRef,
                                     int rateRef)
Description copied from class: Engine
Create a new initializer, used for game configuration reference. This structure will describe the standard game requirements, and will allow to know scaling factor.

Specified by:
createInitializer in class Engine
Parameters:
widthRef - game standard width.
heightRef - game standard height.
depthRef - game standard depth.
rateRef - game standard frame rate.
Returns:
created initializer.

createLoader

public Loader createLoader(Initializer init,
                           Config config,
                           AbstractLauncher launcher)
Description copied from class: Engine
Create a loader, from an initializer and a config. The launcher reference will allow to go back to the launcher on exiting.

Specified by:
createLoader in class Engine
Parameters:
init - initializer reference.
config - configuration reference.
launcher - launcher reference.
Returns:
created loader.