Package jme3utilities.ui
Class AcorusAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
jme3utilities.NamedAppState
jme3utilities.SimpleAppState
jme3utilities.ui.AcorusAppState
- All Implemented Interfaces:
com.jme3.app.state.AppState
- Direct Known Subclasses:
CameraOrbitAppState
,InputMode
public class AcorusAppState
extends jme3utilities.SimpleAppState
A SimpleAppState in an ActionApplication.
-
Field Summary
Fields inherited from class jme3utilities.SimpleAppState
assetManager, cam, flyCam, guiNode, guiViewPort, inputManager, renderManager, rootNode, simpleApplication, stateManager, viewPort
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
-
Constructor Summary
ConstructorDescriptionAcorusAppState
(boolean enabled) Instantiate an uninitialized state.AcorusAppState
(jme3utilities.InitialState initialState) Instantiate an uninitialized state. -
Method Summary
Modifier and TypeMethodDescriptionAccess the application.Access the user-interface signals.float
getSpeed()
Return the effective speed of physics and animations.void
initialize
(com.jme3.app.state.AppStateManager sm, com.jme3.app.Application app) Initialize this AppState on the first update after it gets attached.Methods inherited from class jme3utilities.SimpleAppState
refreshCachedFields, render, stateDetached
Methods inherited from class jme3utilities.NamedAppState
cleanup, getInfluence, hasInfluenceOver, influence, isEnabled, isInitialized, postRender, setEnabled, stateAttached, stopInfluencing, toString, update
Methods inherited from class com.jme3.app.state.AbstractAppState
getId, setId
-
Constructor Details
-
AcorusAppState
public AcorusAppState(boolean enabled) Instantiate an uninitialized state.- Parameters:
enabled
- true → enabled, false → disabled
-
AcorusAppState
public AcorusAppState(jme3utilities.InitialState initialState) Instantiate an uninitialized state.- Parameters:
initialState
- Enabled or Disabled (null means disabled)
-
-
Method Details
-
getActionApplication
Access the application. Allowed only if the AppState has been initialized.- Returns:
- the pre-existing instance (not null)
-
getSignals
Access the user-interface signals. Allowed only if the AppState has been initialized.- Returns:
- the pre-existing instance (not null)
-
getSpeed
public float getSpeed()Return the effective speed of physics and animations. Allowed only if the AppState has been initialized.- Returns:
- the speed (>0, standard speed → 1)
-
initialize
public void initialize(com.jme3.app.state.AppStateManager sm, com.jme3.app.Application app) Initialize this AppState on the first update after it gets attached.- Specified by:
initialize
in interfacecom.jme3.app.state.AppState
- Overrides:
initialize
in classjme3utilities.SimpleAppState
- Parameters:
sm
- application's state manager (not null)app
- application which owns this state (not null)
-