Class Record
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.recorder.Record
Class for recording actions in a game.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActions(long time, Actions actions) Adds a time and action to the timeline.voidsaveRecording(int slot) Saves the recording to a file.voidStarts a new recording.voidstitchRecording(int slot) Stitches a recording to the start of this recording.
-
Field Details
-
INSTANCE
-
-
Method Details
-
startRecording
public void startRecording()Starts a new recording. -
stitchRecording
public void stitchRecording(int slot) Stitches a recording to the start of this recording.- Parameters:
slot- the slot to load the recording from.
-
addActions
Adds a time and action to the timeline.- Parameters:
time- the time the action is executed.actions- the action executed.
-
saveRecording
public void saveRecording(int slot) Saves the recording to a file.- Parameters:
slot- the slot to save the recording to.
-