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

    Constructors
    Constructor
    Description
    AcorusAppState(boolean enabled)
    Instantiate an uninitialized state.
    AcorusAppState(jme3utilities.InitialState initialState)
    Instantiate an uninitialized state.
  • Method Summary

    Modifier and Type
    Method
    Description
    Access the application.
    Access the user-interface signals.
    float
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public ActionApplication getActionApplication()
      Access the application. Allowed only if the AppState has been initialized.
      Returns:
      the pre-existing instance (not null)
    • getSignals

      public Signals 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 interface com.jme3.app.state.AppState
      Overrides:
      initialize in class jme3utilities.SimpleAppState
      Parameters:
      sm - application's state manager (not null)
      app - application which owns this state (not null)