public class AutomaticGearboxState
extends com.jme3.app.state.BaseAppState
| Constructor and Description |
|---|
AutomaticGearboxState(Vehicle vehicle)
Instantiate an enabled AppState for the specified Vehicle.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(com.jme3.app.Application application)
Callback invoked after this AppState is detached or during application
shutdown if the state is still attached.
|
protected void |
initialize(com.jme3.app.Application application)
Callback invoked after this AppState is attached but before onEnable().
|
protected void |
onDisable()
Callback invoked whenever this AppState ceases to be both attached and
enabled.
|
protected void |
onEnable()
Callback invoked whenever this AppState becomes both attached and
enabled.
|
void |
update(float tpf)
Callback to update this AppState, invoked once per frame when the
AppState is both attached and enabled.
|
public AutomaticGearboxState(Vehicle vehicle)
vehicle - (alias created)protected void cleanup(com.jme3.app.Application application)
cleanup in class com.jme3.app.state.BaseAppStateapplication - the application instance (not null)protected void initialize(com.jme3.app.Application application)
initialize in class com.jme3.app.state.BaseAppStateapplication - the application instance (not null)protected void onDisable()
onDisable in class com.jme3.app.state.BaseAppStateprotected void onEnable()
onEnable in class com.jme3.app.state.BaseAppStatepublic void update(float tpf)
update in interface com.jme3.app.state.AppStateupdate in class com.jme3.app.state.BaseAppStatetpf - the time interval between frames (in seconds, ≥0)