|
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.msjava4x.CEngineFactory
Implementation of an engine factory for Microsoft Java JVM's that support DirectX interfacing from Java. Uses the emulated fullscreen graphics engine (if needed), component graphics engine (if needed), windowed graphics engine (if needed) and the input engine (allways) from the gameframe.engines.jdk11x package.
Field Summary | |
private java.lang.String[] |
m_aFullscreenGraphicsModes
The valid fullscreen modes this engine factory can handle. |
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 java.awt.Component for the DirectSound sound engine |
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
Reference to the singleton 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. |
Method Summary | |
< |
createTimer()
Returns a new timer instance. |
void |
finalizationNotify(<
Notifies that the given timer has been finalized. |
void |
finalize()
Invoked before application exits. |
private CComponentGraphicsEngine |
getComponentGraphicsEngine()
Creates and returns the component graphics engine. |
java.lang.String |
getDescription()
Returns the description of the engine factory implementation. |
GraphicsEngine |
getGraphicsEngine()
Returns the most suitable 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 "MSJ4DX". |
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()
Returns the fullscreen graphics modes supported by graphics engines that are created by this factory. |
static boolean |
isRunnableOnPlatform()
Returns true if this engine factory is runnable on the platform. |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface gameframe.engines.EngineFactory |
finalizationNotify |
Field Detail |
private static CEngineFactory mStatic_engineFactory
private java.util.Vector m_finalizableObjects
private java.awt.Component m_focusComponent
private SoundEngine m_soundEngine
private GraphicsEngine m_graphicsEngine
private InputEngine m_inputEngine
private java.lang.String[] m_aFullscreenGraphicsModes
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
gameframe.engines.jdk11x
package.getGraphicsEngine
in interface EngineFactory
CFullscreenGraphicsEngine
,
CEmulatedFullscreenGraphicsEngine
,
CWindowedGraphicsEngine
,
CComponentGraphicsEngine
private CComponentGraphicsEngine getComponentGraphicsEngine() throws GameFrameException
public InputEngine getInputEngine() throws GameFrameException
getInputEngine
in interface EngineFactory
CInputEngine
public <>Timer createTimer() throws GameFrameException
createTimer
in interface EngineFactory
public void finalizationNotify(<>Timer timer)
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 |