|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.camera.recorder.CamPlayer
public class CamPlayer
This class can be used to play the checkpoints of a camera flight, which simulates a scripted camera. The checkpoints can either be provided directly as a CameraFlight object or be retrieved from a file that containes the camera flight data in serialized form.
Constructor Summary | |
---|---|
CamPlayer(CameraFlight flight)
Creates a new camera flight player initialized with the specified camera flight object. |
|
CamPlayer(java.lang.String pathToFile)
Creates a new camera flight player initialized with the camera flight object specified by the file path. |
Method Summary | |
---|---|
boolean |
isPlaying()
Determines whether or not the player is playing a camera flight. |
void |
reset()
Resets the camera flight player to the initial status. |
void |
start()
Stats playing the previously assigned camera flight. |
void |
stop()
Stops playing the camera flight. |
void |
update(long elapsedTime)
Updates the camera flight player. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CamPlayer(CameraFlight flight)
flight
- camera flight to play with the playerpublic CamPlayer(java.lang.String pathToFile)
pathToFile
- path to file containing the camera flight.Method Detail |
---|
public void start()
public boolean isPlaying()
public void stop()
public void reset()
public void update(long elapsedTime)
elapsedTime
- time between two frames
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |