gestalt.model
Class ModelPlayer

java.lang.Object
  extended by gestalt.model.ModelPlayer

public class ModelPlayer
extends java.lang.Object


Field Summary
static int DEFAULT_FRAMES_PER_SECOND
           
static int PAUSE
           
static int PLAY
           
static int STOP
           
 
Constructor Summary
ModelPlayer(Model theModel)
           
 
Method Summary
 int getCurrentFrame()
           
 int getFramesPerSecond()
           
 float getPlayVelocity()
           
 void goToFrame(int theFrame)
           
 float howMuchIsAlreadyPlayed()
           
 boolean isDone()
           
 void loop(float theDeltaTime)
           
 void pause()
           
 void play(float thePlayVelocity)
           
 void play(java.lang.String theAnimation, float thePlayVelocity)
           
 void setDuration(int theDuration)
           
 void setFramesPerSecond(int theFramesPerSecond)
           
 void setLooping(boolean theLooping)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FRAMES_PER_SECOND

public static int DEFAULT_FRAMES_PER_SECOND

STOP

public static final int STOP
See Also:
Constant Field Values

PAUSE

public static final int PAUSE
See Also:
Constant Field Values

PLAY

public static final int PLAY
See Also:
Constant Field Values
Constructor Detail

ModelPlayer

public ModelPlayer(Model theModel)
Method Detail

loop

public void loop(float theDeltaTime)

setLooping

public void setLooping(boolean theLooping)

setDuration

public void setDuration(int theDuration)

getPlayVelocity

public float getPlayVelocity()

setFramesPerSecond

public void setFramesPerSecond(int theFramesPerSecond)

getFramesPerSecond

public int getFramesPerSecond()

play

public void play(float thePlayVelocity)

play

public void play(java.lang.String theAnimation,
                 float thePlayVelocity)

pause

public void pause()

stop

public void stop()

goToFrame

public void goToFrame(int theFrame)

isDone

public boolean isDone()

howMuchIsAlreadyPlayed

public float howMuchIsAlreadyPlayed()

getCurrentFrame

public int getCurrentFrame()


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009