public abstract class Engine extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR
Engine author.
|
static String |
NAME
Engine name.
|
static Version |
VERSION
Engine version.
|
static String |
WEBSITE
Engine website.
|
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.
|
static void |
start(Engine engine)
Start engine.
|
static void |
terminate()
Terminate the engine.
|
public static final String NAME
public static final String AUTHOR
public static final String WEBSITE
public static final Version VERSION
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 void start(Engine engine)
engine
- The engine implementation used.LionEngineException
- If the engine has already been started.public static void terminate()
public static String getProgramName()
LionEngineException
- If the engine has not been started.public static Version getProgramVersion()
LionEngineException
- If the engine has not been started.public static boolean isStarted()
true
if started, false
else.public final String getName()
public final Version getVersion()
protected abstract void open()
protected abstract void close()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.