com.jme3.cinematic
クラス Cinematic

java.lang.Object
  上位を拡張 com.jme3.cinematic.events.AbstractCinematicEvent
      上位を拡張 com.jme3.cinematic.Cinematic
すべての実装されたインタフェース:
AppState, CinematicEvent, Savable

public class Cinematic
extends AbstractCinematicEvent
implements AppState


コンストラクタの概要
Cinematic()
           
Cinematic(Node scene)
           
Cinematic(Node scene, float initialDuration)
           
Cinematic(Node scene, float initialDuration, LoopMode loopMode)
           
Cinematic(Node scene, LoopMode loopMode)
           
 
メソッドの概要
 void activateCamera(float time, java.lang.String cameraName)
           
 KeyFrame addCinematicEvent(float timeStamp, CinematicEvent cinematicEvent)
           
 CameraNode bindCamera(java.lang.String cameraName, Camera cam)
           
 void bindUi(java.lang.String xmlPath)
           
 void cleanup()
          Cleanup the game state.
 void fitDuration()
           
 CameraNode getCamera(java.lang.String cameraName)
           
 java.lang.Object getEventData(java.lang.String type, java.lang.String name)
           
 de.lessvoid.nifty.Nifty getNifty()
           
 Node getScene()
           
 void initialize(AppStateManager stateManager, Application app)
          Called to initialize the AppState.
 boolean isEnabled()
           
 boolean isInitialized()
           
 void onPause()
           
 void onPlay()
           
 void onStop()
           
 void onUpdate(float tpf)
           
 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)
           
 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 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)
           
 
クラス com.jme3.cinematic.events.AbstractCinematicEvent から継承されたメソッド
addListener, getDuration, getInitalDuration, getInitialDuration, getLoopMode, getPlayState, getSpeed, initEvent, internalUpdate, pause, play, removeListener, setInitalDuration, setInitialDuration, setLoopMode, stop
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Cinematic

public Cinematic()

Cinematic

public Cinematic(Node scene)

Cinematic

public Cinematic(Node scene,
                 float initialDuration)

Cinematic

public Cinematic(Node scene,
                 LoopMode loopMode)

Cinematic

public Cinematic(Node scene,
                 float initialDuration,
                 LoopMode loopMode)
メソッドの詳細

onPlay

public void onPlay()
定義:
クラス AbstractCinematicEvent 内の onPlay

onStop

public void onStop()
定義:
クラス AbstractCinematicEvent 内の onStop

onPause

public void onPause()
定義:
クラス AbstractCinematicEvent 内の onPause

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス AbstractCinematicEvent 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス AbstractCinematicEvent 内の read
例外:
java.io.IOException

bindUi

public void bindUi(java.lang.String xmlPath)

setSpeed

public void setSpeed(float speed)
クラス AbstractCinematicEvent の記述:
Sets the speed of the animation. At speed = 1, the animation will last initialDuration seconds, At speed = 2 the animation will last initialDuraiton/2...

定義:
インタフェース CinematicEvent 内の setSpeed
オーバーライド:
クラス AbstractCinematicEvent 内の setSpeed

initialize

public void initialize(AppStateManager stateManager,
                       Application app)
インタフェース AppState の記述:
Called to initialize the AppState.

定義:
インタフェース AppState 内の initialize
パラメータ:
stateManager - The state manager

isInitialized

public boolean isInitialized()
定義:
インタフェース AppState 内の isInitialized
戻り値:
True if initialize() was called on the state, false otherwise.

setEnabled

public void setEnabled(boolean enabled)
インタフェース AppState の記述:
Enable or disable the functionality of the AppState. The effect of this call depends on implementation. An AppState starts as being enabled by default.

定義:
インタフェース AppState 内の setEnabled
パラメータ:
enabled - activate the AppState or not.

isEnabled

public boolean isEnabled()
定義:
インタフェース AppState 内の isEnabled
戻り値:
True if the AppState is enabled, false otherwise.
関連項目:
AppState.setEnabled(boolean)

stateAttached

public void stateAttached(AppStateManager stateManager)
インタフェース AppState の記述:
Called when the state was attached.

定義:
インタフェース AppState 内の stateAttached
パラメータ:
stateManager - State manager to which the state was attached to.

stateDetached

public void stateDetached(AppStateManager stateManager)
インタフェース AppState の記述:
Called when the state was detached.

定義:
インタフェース AppState 内の stateDetached
パラメータ:
stateManager - The state manager from which the state was detached from.

update

public void update(float tpf)
インタフェース AppState の記述:
Called to update the state.

定義:
インタフェース AppState 内の update
パラメータ:
tpf - Time per frame.

onUpdate

public void onUpdate(float tpf)
定義:
クラス AbstractCinematicEvent 内の onUpdate

addCinematicEvent

public KeyFrame addCinematicEvent(float timeStamp,
                                  CinematicEvent cinematicEvent)

render

public void render(RenderManager rm)
インタフェース AppState の記述:
Render the state.

定義:
インタフェース AppState 内の render
パラメータ:
rm - RenderManager

postRender

public void postRender()
インタフェース AppState の記述:
Called after all rendering commands are flushed.

定義:
インタフェース AppState 内の postRender

cleanup

public void cleanup()
インタフェース AppState の記述:
Cleanup the game state.

定義:
インタフェース AppState 内の cleanup

fitDuration

public void fitDuration()

bindCamera

public CameraNode bindCamera(java.lang.String cameraName,
                             Camera cam)

getCamera

public CameraNode getCamera(java.lang.String cameraName)

setActiveCamera

public void setActiveCamera(java.lang.String cameraName)

activateCamera

public void activateCamera(float time,
                           java.lang.String cameraName)

setScene

public void setScene(Node scene)

getNifty

public de.lessvoid.nifty.Nifty getNifty()

putEventData

public void putEventData(java.lang.String type,
                         java.lang.String name,
                         java.lang.Object object)

getEventData

public java.lang.Object getEventData(java.lang.String type,
                                     java.lang.String name)

removeEventData

public Savable removeEventData(java.lang.String type,
                               java.lang.String name)

getScene

public Node getScene()