public static class WorldOfInception.InceptionLevel extends AbstractAppState
initialized
Constructor and Description |
---|
InceptionLevel(WorldOfInception.InceptionLevel parent,
Vector3f inParentPosition) |
getId, isEnabled, isInitialized, postRender, render, setEnabled, setId, stateAttached, stateDetached
public InceptionLevel(WorldOfInception.InceptionLevel parent, Vector3f inParentPosition)
public void update(float tpf)
AppState
AppState
. This method will be called
every render pass if the AppState
is both attached and enabled.update
in interface AppState
update
in class AbstractAppState
tpf
- Time since the last call to update(), in seconds.public void takeOverParent()
public void takeOverChild(Vector3f playerPos)
public WorldOfInception.InceptionLevel getLastLevel(Ray pickRay)
public WorldOfInception.InceptionLevel getLevel(Vector3f... location)
public void initialize(AppStateManager stateManager, Application app)
AppState
AppStateManager
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 AppState
initialize
in class AbstractAppState
stateManager
- The state managerapp
- The applicationpublic void cleanup()
AppState
AppStateManager
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 AppState
cleanup
in class AbstractAppState
public Node getRootNode()
public Vector3f getPositionInParent()
public Vector3f getPlayerPosition()
public void setPlayerPosition(Vector3f vec)
public void move(Vector3f dir)
public float getCurrentScaleAmount()
public WorldOfInception.InceptionLevel getParent()
public WorldOfInception.InceptionLevel getCurrentLevel()
public java.lang.String getCoordinates()