|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.cinematic.events.AbstractCinematicEvent
com.jme3.cinematic.Cinematic
public class Cinematic
Field Summary | |
---|---|
protected TimeLine |
timeLine
|
Fields inherited from class com.jme3.cinematic.events.AbstractCinematicEvent |
---|
initialDuration, listeners, loopMode, playState, resuming, speed, time |
Constructor Summary | |
---|---|
Cinematic()
|
|
Cinematic(Node scene)
|
|
Cinematic(Node scene,
float initialDuration)
|
|
Cinematic(Node scene,
float initialDuration,
LoopMode loopMode)
|
|
Cinematic(Node scene,
LoopMode loopMode)
|
Method Summary | |
---|---|
void |
activateCamera(float timeStamp,
java.lang.String cameraName)
|
KeyFrame |
addCinematicEvent(float timeStamp,
CinematicEvent cinematicEvent)
|
CameraNode |
bindCamera(java.lang.String cameraName,
Camera cam)
|
void |
cleanup()
Cleanup the game state. |
void |
fitDuration()
fits the duration of the cinamatic to the duration of all its child cinematic events |
CameraNode |
getCamera(java.lang.String cameraName)
|
java.lang.Object |
getEventData(java.lang.String type,
java.lang.String name)
|
Node |
getScene()
|
void |
initialize(AppStateManager stateManager,
Application app)
Called to initialize the AppState. |
boolean |
isEnabled()
|
boolean |
isInitialized()
|
void |
onPause()
place here the code you want to execute when the event is paused |
void |
onPlay()
Place here the code you want to execute when the event is started |
void |
onStop()
Place here the code you want to execute when the event is stoped. |
void |
onUpdate(float tpf)
Place here the code you want to execute on update (only called when the event is playing) |
void |
postRender()
Called after all rendering commands are flushed. |
void |
putEventData(java.lang.String type,
java.lang.String name,
java.lang.Object object)
|
void |
read(JmeImporter im)
for serialization only |
Savable |
removeEventData(java.lang.String type,
java.lang.String name)
|
void |
render(RenderManager rm)
Render the state. |
void |
setActiveCamera(java.lang.String cameraName)
|
void |
setEnabled(boolean enabled)
Enable or disable the functionality of the AppState . |
void |
setScene(Node scene)
|
void |
setSpeed(float speed)
Sets the speed of the animation. |
void |
setTime(float time)
When this method is invoked, the event should fast forward to the given time according tim 0 is the start of the event. |
void |
stateAttached(AppStateManager stateManager)
Called when the state was attached. |
void |
stateDetached(AppStateManager stateManager)
Called when the state was detached. |
void |
update(float tpf)
Called to update the state. |
void |
write(JmeExporter ex)
for serialization only |
Methods inherited from class com.jme3.cinematic.events.AbstractCinematicEvent |
---|
addListener, getDuration, getInitialDuration, getLoopMode, getPlayState, getSpeed, getTime, initEvent, internalUpdate, pause, play, removeListener, setInitialDuration, setLoopMode, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TimeLine timeLine
Constructor Detail |
---|
public Cinematic()
public Cinematic(Node scene)
public Cinematic(Node scene, float initialDuration)
public Cinematic(Node scene, LoopMode loopMode)
public Cinematic(Node scene, float initialDuration, LoopMode loopMode)
Method Detail |
---|
public void onPlay()
AbstractCinematicEvent
onPlay
in class AbstractCinematicEvent
public void onStop()
AbstractCinematicEvent
onStop
in class AbstractCinematicEvent
public void onPause()
AbstractCinematicEvent
onPause
in class AbstractCinematicEvent
public void write(JmeExporter ex) throws java.io.IOException
AbstractCinematicEvent
write
in interface Savable
write
in class AbstractCinematicEvent
ex
- exporter
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
AbstractCinematicEvent
read
in interface Savable
read
in class AbstractCinematicEvent
im
- importer
java.io.IOException
public void setSpeed(float speed)
AbstractCinematicEvent
setSpeed
in interface CinematicEvent
setSpeed
in class AbstractCinematicEvent
public void initialize(AppStateManager stateManager, Application app)
AppState
initialize
in interface AppState
stateManager
- The state managerpublic boolean isInitialized()
isInitialized
in interface AppState
initialize()
was called on the state,
false otherwise.public void setEnabled(boolean enabled)
AppState
AppState
.
The effect of this call depends on implementation. An
AppState
starts as being enabled by default.
setEnabled
in interface AppState
enabled
- activate the AppState or not.public boolean isEnabled()
isEnabled
in interface AppState
AppState
is enabled, false otherwise.AppState.setEnabled(boolean)
public void stateAttached(AppStateManager stateManager)
AppState
stateAttached
in interface AppState
stateManager
- State manager to which the state was attached to.public void stateDetached(AppStateManager stateManager)
AppState
stateDetached
in interface AppState
stateManager
- The state manager from which the state was detached from.public void update(float tpf)
AppState
update
in interface AppState
tpf
- Time per frame.public void onUpdate(float tpf)
AbstractCinematicEvent
onUpdate
in class AbstractCinematicEvent
tpf
- time per framepublic void setTime(float time)
AbstractCinematicEvent
setTime
in interface CinematicEvent
setTime
in class AbstractCinematicEvent
time
- the time to fast forward topublic KeyFrame addCinematicEvent(float timeStamp, CinematicEvent cinematicEvent)
public void render(RenderManager rm)
AppState
render
in interface AppState
rm
- RenderManagerpublic void postRender()
AppState
postRender
in interface AppState
public void cleanup()
AppState
cleanup
in interface AppState
public void fitDuration()
public CameraNode bindCamera(java.lang.String cameraName, Camera cam)
public CameraNode getCamera(java.lang.String cameraName)
public void setActiveCamera(java.lang.String cameraName)
public void activateCamera(float timeStamp, java.lang.String cameraName)
public void setScene(Node scene)
public void putEventData(java.lang.String type, java.lang.String name, java.lang.Object object)
public java.lang.Object getEventData(java.lang.String type, java.lang.String name)
public Savable removeEventData(java.lang.String type, java.lang.String name)
public Node getScene()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |