com.b3dgs.lionengine.engine
Class EngineFactory
java.lang.Object
com.b3dgs.lionengine.Engine
com.b3dgs.lionengine.engine.EngineFactory
public final class EngineFactory
- extends Engine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EngineFactory
protected EngineFactory()
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.