Class Module
java.lang.Object
|
+--Module
- All Implemented Interfaces:
- ModuleInterface
- public class Module
- extends java.lang.Object
- implements ModuleInterface
Here is a sample module.
Only modules which are called "Module" will function.
The class is instantiated once - there should be little need to use static objects.
This class creates some spinning, multi-coloured tetrahedra.
After a short while, two objects in the system explode.
Method Summary |
void |
calledOnReset()
Called when the user hits reset |
static void |
debug(java.lang.String o)
Extremely primitive debugging routine |
static void |
main(java.lang.String[] args)
Runs the main program |
void |
oneOffInitialisation()
Performs any one-time set-up operations |
void |
update()
Called once during every frame |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Module
public Module()
oneOffInitialisation
public void oneOffInitialisation()
- Performs any one-time set-up operations
- Specified by:
oneOffInitialisation
in interface ModuleInterface
calledOnReset
public void calledOnReset()
- Called when the user hits reset
- Specified by:
calledOnReset
in interface ModuleInterface
update
public void update()
- Called once during every frame
- Specified by:
update
in interface ModuleInterface
main
public static void main(java.lang.String[] args)
- Runs the main program
debug
public static void debug(java.lang.String o)
- Extremely primitive debugging routine