public abstract class Engine extends Object
Modifier | Constructor and Description |
---|---|
protected |
Engine(String name,
Version version)
Start engine.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
close()
Close the engine.
|
String |
getName()
Get the program name.
|
static String |
getProgramName()
Get the program name.
|
static Version |
getProgramVersion()
Get the program version.
|
Version |
getVersion()
Get the program version.
|
static boolean |
isStarted()
Check if engine is started.
|
protected abstract void |
open()
Open engine.
|
protected void |
postClose()
Post close action.
|
static void |
start(Engine engine)
Start engine.
|
static void |
terminate()
Terminate the engine.
|
protected Engine(String name, Version version)
name
- The program name (must not be null
).version
- The program version (must not be null
).LionEngineException
- If invalid parameters.public static final void start(Engine engine)
engine
- The engine implementation used.LionEngineException
- If the engine has already been started.public static final void terminate()
public static final String getProgramName()
LionEngineException
- If the engine has not been started.public static final Version getProgramVersion()
LionEngineException
- If the engine has not been started.public static final boolean isStarted()
true
if started, false
else.public final String getName()
public final Version getVersion()
protected abstract void open()
protected abstract void close()
protected void postClose()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.