Class mheg5.MCM.Engine
All Packages Class Hierarchy This Package Previous Next Index
Class mheg5.MCM.Engine
java.lang.Object
|
+----mheg5.MCM.Engine
- public class Engine
- extends Object
-
Engine(String, String)
- The main constructor of a Engine.
-
decreaseCallStackDepth()
-
-
increaseCallStackDepth()
-
-
InputTranslatorForDeprecatedEvents(int, Event)
- Engine.InputTranslator (ForDeprecatedEvents...)
It translates the raw JavaKeyCode to the Mheg-5KeyCode.
-
LinkProcessor(Array)
- This method is used by Link.java in order to establish a
Linkeffect described in the Mheg-5 IS standard.
-
Loop()
- The main Loop()
At first all actions in the actionQueue will be performed via call
ActionCore.execute( action).
After this alle events will be performed via call CheckEvent of
every Object in the scene.
-
receiveTimerEvents(MhegEvent)
- This method is used by Scene to send TimerEvents to the
eventQueue.
Engine
public Engine(String objectBasePath,
String groupIdentifier)
- The main constructor of a Engine.
The first action (LAUNCH) will be created and appended to the ActionQueue.
- Parameters:
- groupIdentifer - name String of the presentation
- objectBasePath - path String to mheg-5 file
- See Also:
- main
InputTranslatorForDeprecatedEvents
public void InputTranslatorForDeprecatedEvents(int eventRegister,
Event event)
- Engine.InputTranslator (ForDeprecatedEvents...)
It translates the raw JavaKeyCode to the Mheg-5KeyCode.
This method is used by the MhegKeyHandler for delivering KeyEvents throw
the Engine into the EventRegister.
'deprecated' means: the entire Project is able to be compiled
and run in a jdk1.0.2-environment.
- Parameters:
- eventRegister - a int identifer for the register
- rawEvent - a int representing the JavaKeyCode
- See Also:
- MhegKeyHandler
receiveTimerEvents
public void receiveTimerEvents(MhegEvent event)
- This method is used by Scene to send TimerEvents to the
eventQueue.
Attention: this is done by another thread.
don't do anything else than the append command!
LinkProcessor
public void LinkProcessor(Array linkEffect)
- This method is used by Link.java in order to establish a
Linkeffect described in the Mheg-5 IS standard.
- Parameters:
- linkEffect - a Array of elementary actions
- See Also:
- Link
increaseCallStackDepth
public void increaseCallStackDepth()
decreaseCallStackDepth
public void decreaseCallStackDepth()
Loop
public synchronized void Loop()
- The main Loop()
At first all actions in the actionQueue will be performed via call
ActionCore.execute( action).
After this alle events will be performed via call CheckEvent of
every Object in the scene.
This is not a 'true loop', i.e. there is no 'while(true)' or a
for (;;) - statement.
- here are only the actionQueue and the eventQueue are worked through.
=> normally this method (Engine.Loop()) terminates.
All Packages Class Hierarchy This Package Previous Next Index