com.jme3.cinematic.events
クラス AbstractCinematicEvent

java.lang.Object
  上位を拡張 com.jme3.cinematic.events.AbstractCinematicEvent
すべての実装されたインタフェース:
CinematicEvent, Savable
直系の既知のサブクラス:
AnimationTrack, Cinematic, GuiTrack, MotionTrack, PositionTrack, RotationTrack, ScaleTrack, SoundTrack

public abstract class AbstractCinematicEvent
extends java.lang.Object
implements CinematicEvent


コンストラクタの概要
AbstractCinematicEvent()
           
AbstractCinematicEvent(float initialDuration)
           
AbstractCinematicEvent(float initialDuration, LoopMode loopMode)
           
AbstractCinematicEvent(LoopMode loopMode)
           
 
メソッドの概要
 void addListener(CinematicEventListener listener)
           
 float getDuration()
          returns the actual duration of the animtion (initialDuration/speed)
 float getInitalDuration()
           
 float getInitialDuration()
          returns the initial duration of the animation at speed = 1 in seconds.
 LoopMode getLoopMode()
          retursthe loopMode of the animation
 PlayState getPlayState()
          Returns the current playstate of the animation
 float getSpeed()
          returns the speed of the animation.
 void initEvent(Application app, Cinematic cinematic)
           
 void internalUpdate(float tpf)
           
abstract  void onPause()
           
abstract  void onPlay()
           
abstract  void onStop()
           
abstract  void onUpdate(float tpf)
           
 void pause()
          Pauses the animation
 void play()
          Starts the animation
 void read(JmeImporter im)
           
 void removeListener(CinematicEventListener listener)
           
 void setInitalDuration(float initalDuration)
           
 void setInitialDuration(float initialDuration)
          Sets the duration of the antionamtion at speed = 1 in seconds
 void setLoopMode(LoopMode loopMode)
          Sets the loopMode of the animation
 void setSpeed(float speed)
          Sets the speed of the animation.
 void stop()
          stops the animation, next time play() is called the animation will start from the begining.
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractCinematicEvent

public AbstractCinematicEvent()

AbstractCinematicEvent

public AbstractCinematicEvent(float initialDuration)

AbstractCinematicEvent

public AbstractCinematicEvent(LoopMode loopMode)

AbstractCinematicEvent

public AbstractCinematicEvent(float initialDuration,
                              LoopMode loopMode)
メソッドの詳細

play

public void play()
インタフェース CinematicEvent の記述:
Starts the animation

定義:
インタフェース CinematicEvent 内の play

onPlay

public abstract void onPlay()

internalUpdate

public void internalUpdate(float tpf)
定義:
インタフェース CinematicEvent 内の internalUpdate

onUpdate

public abstract void onUpdate(float tpf)

stop

public void stop()
stops the animation, next time play() is called the animation will start from the begining.

定義:
インタフェース CinematicEvent 内の stop

onStop

public abstract void onStop()

pause

public void pause()
インタフェース CinematicEvent の記述:
Pauses the animation

定義:
インタフェース CinematicEvent 内の pause

onPause

public abstract void onPause()

getDuration

public float getDuration()
returns the actual duration of the animtion (initialDuration/speed)

定義:
インタフェース CinematicEvent 内の getDuration
戻り値:

setSpeed

public void setSpeed(float speed)
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
パラメータ:
speed -

getSpeed

public float getSpeed()
returns the speed of the animation.

定義:
インタフェース CinematicEvent 内の getSpeed
戻り値:

getPlayState

public PlayState getPlayState()
Returns the current playstate of the animation

定義:
インタフェース CinematicEvent 内の getPlayState
戻り値:

getInitialDuration

public float getInitialDuration()
returns the initial duration of the animation at speed = 1 in seconds.

定義:
インタフェース CinematicEvent 内の getInitialDuration
戻り値:

setInitialDuration

public void setInitialDuration(float initialDuration)
Sets the duration of the antionamtion at speed = 1 in seconds

定義:
インタフェース CinematicEvent 内の setInitialDuration
パラメータ:
initialDuration -

getLoopMode

public LoopMode getLoopMode()
retursthe loopMode of the animation

定義:
インタフェース CinematicEvent 内の getLoopMode
戻り値:
関連項目:
LoopMode

setLoopMode

public void setLoopMode(LoopMode loopMode)
Sets the loopMode of the animation

定義:
インタフェース CinematicEvent 内の setLoopMode
パラメータ:
loopMode -
関連項目:
LoopMode

setInitalDuration

public void setInitalDuration(float initalDuration)

getInitalDuration

public float getInitalDuration()

write

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

read

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

initEvent

public void initEvent(Application app,
                      Cinematic cinematic)
定義:
インタフェース CinematicEvent 内の initEvent

addListener

public void addListener(CinematicEventListener listener)

removeListener

public void removeListener(CinematicEventListener listener)