public class FlyCamAppState extends AbstractAppState
initialized| Constructor and Description | 
|---|
FlyCamAppState()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cleanup()
Called by  
AppStateManager when transitioning this
 AppState from terminating to detached. | 
FlyByCamera | 
getCamera()  | 
void | 
initialize(AppStateManager stateManager,
          Application app)
Called by  
AppStateManager when transitioning this AppState
 from initializing to running.This will happen on the next iteration through the update loop after AppStateManager.attach(com.jme3.app.state.AppState) was called. | 
void | 
setEnabled(boolean enabled)
Enable or disable the functionality of the  
AppState. | 
getId, isEnabled, isInitialized, postRender, render, setId, stateAttached, stateDetached, updatepublic FlyByCamera getCamera()
public void initialize(AppStateManager stateManager, Application app)
AppStateAppStateManager when transitioning this AppState
 from initializing to running.AppStateManager.attach(com.jme3.app.state.AppState) was called.
 
 AppStateManager will call this only from the update loop
 inside the rendering thread. This means is it safe to modify the scene 
 graph from this method.
initialize in interface AppStateinitialize in class AbstractAppStatestateManager - The state managerapp - The applicationpublic void setEnabled(boolean enabled)
AppStateAppState.
 The effect of this call depends on implementation. An 
 AppState starts as being enabled by default.
 A disabled AppStates does not get calls to
 AppState.update(float), AppState.render(RenderManager), or
 AppState.postRender() from its AppStateManager.setEnabled in interface AppStatesetEnabled in class AbstractAppStateenabled - activate the AppState or not.public void cleanup()
AppStateAppStateManager when transitioning this
 AppState from terminating to detached. This
 method is called the following render pass after the AppState has 
 been detached and is always called once and only once for each time
 initialize() is called. Either when the AppState
 is detached or when the application terminates (if it terminates normally).cleanup in interface AppStatecleanup in class AbstractAppState