public class CubeField extends SimpleApplication implements AnalogListener
flyCam, fpsText, guiFont, guiNode, INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_EXIT, INPUT_MAPPING_HIDE_STATS, INPUT_MAPPING_MEMORY, rootNode, showSettings
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, lostFocusBehavior, mouseInput, paused, prof, renderer, renderManager, settings, stateManager, timer, touchInput, viewPort
Constructor and Description |
---|
CubeField() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
onAnalog(java.lang.String binding,
float value,
float tpf)
Called to notify the implementation that an analog event has occurred.
|
void |
requestClose(boolean esc)
Internal use only.
|
void |
simpleInitApp()
Initializes game
|
void |
simpleUpdate(float tpf) |
getFlyByCamera, getGuiNode, getRootNode, getSpeed, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, setSpeed, simpleRender, start, update
createCanvas, destroy, destroyInput, enqueue, enqueue, gainFocus, getAppProfiler, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getLostFocusBehavior, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, reshape, restart, runQueuedTasks, setAppProfiler, setAssetManager, setLostFocusBehavior, setPauseOnLostFocus, setSettings, setTimer, start, start, start, startCanvas, startCanvas, stop, stop
public static void main(java.lang.String[] args)
public void simpleInitApp()
simpleInitApp
in class SimpleApplication
public void simpleUpdate(float tpf)
simpleUpdate
in class SimpleApplication
public void requestClose(boolean esc)
LegacyApplication
requestClose
in interface SystemListener
requestClose
in class LegacyApplication
esc
- If true, the user pressed ESC to close the application.public void onAnalog(java.lang.String binding, float value, float tpf)
AnalogListener
onAnalog
in interface AnalogListener
binding
- The name of the mapping that was invokedvalue
- Value of the axis, from 0 to 1.tpf
- The time per frame value.