|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.engines.jdk11x.CEngineFactory
Implementation of an engine factory for Java 1.1.x JVM's.
Field Summary | |
private java.util.Vector |
m_finalizableObjects
All objects that must be finalized upon engine factory finalization. |
private java.awt.Component |
m_focusComponent
Reference to the singleton focus component. |
private GraphicsEngine |
m_graphicsEngine
Reference to the singleton graphics engine implementation. |
private InputEngine |
m_inputEngine
Reference to the singleton input engine implementation. |
private GameFrameSettings |
m_settings
The main factory settings used for this engine factory. |
private SoundEngine |
m_soundEngine
Reference to the singleton sound engine implementation. |
private static CEngineFactory |
mStatic_engineFactory
The singleton reference to an instance of this engine factory. |
Fields inherited from interface gameframe.engines.EngineFactory |
SUITABILITY_GOOD, SUITABILITY_NOT_SUITED, SUITABILITY_POOR, SUITABILITY_ULTIMATE |
Constructor Summary | |
private |
CEngineFactory(GameFrameSettings settings)
Constructs the engine factory without constructing any engines. |
Method Summary | |
Timer |
createTimer()
Returns a new timer instance. |
void |
finalizationNotify(Timer timer)
Notifies that the given timer has been finalized. |
void |
finalize()
Invoked before application exits. |
java.lang.String |
getDescription()
Returns the description of the engine factory implementation. |
GraphicsEngine |
getGraphicsEngine()
Returns the graphics engine implementation for the current platform. |
InputEngine |
getInputEngine()
Returns the input engine implementation for the current platform. |
static CEngineFactory |
getInstance(GameFrameSettings settings)
Returns the singleton instance of this engine factory (the instace will be created upon the first call to this method). |
java.lang.String |
getName()
Returns the short name (max 8 characters) of this engine factory implementation which is "Java1.1" |
SoundEngine |
getSoundEngine()
Returns the sound engine implementation for the current platform. |
int |
getSuitabilityForPlatform()
Returns the suitability of this engine implementation for the current platform as one of the enumerated values. |
java.lang.String[] |
getSupportedResolutions()
As the graphics engines created by this factory don't support fullscreen modes, this method returns null. |
static boolean |
isRunnableOnPlatform()
Returns true if this engine factory is runnable on the platform. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static CEngineFactory mStatic_engineFactory
private SoundEngine m_soundEngine
private GraphicsEngine m_graphicsEngine
private InputEngine m_inputEngine
private java.awt.Component m_focusComponent
private java.util.Vector m_finalizableObjects
private GameFrameSettings m_settings
Constructor Detail |
private CEngineFactory(GameFrameSettings settings)
settings
- The settings to be used in this engine factory.Method Detail |
public static CEngineFactory getInstance(GameFrameSettings settings)
settings
- The settings to be used in this engine factory.public java.lang.String getName()
getName
in interface EngineFactory
public java.lang.String getDescription()
getDescription
in interface EngineFactory
public int getSuitabilityForPlatform()
getSuitabilityForPlatform
in interface EngineFactory
public static boolean isRunnableOnPlatform()
public java.lang.String[] getSupportedResolutions()
getSupportedResolutions
in interface EngineFactory
public SoundEngine getSoundEngine() throws GameFrameException
getSoundEngine
in interface EngineFactory
public GraphicsEngine getGraphicsEngine() throws GameFrameException
getGraphicsEngine
in interface EngineFactory
public InputEngine getInputEngine() throws GameFrameException
getInputEngine
in interface EngineFactory
public Timer createTimer() throws GameFrameException
createTimer
in interface EngineFactory
public void finalizationNotify(Timer timer)
finalizationNotify
in interface EngineFactory
public void finalize()
finalize
in interface EngineFactory
finalize
in class java.lang.Object
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |