Class Record

java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.recorder.Record

public final class Record extends Object
Class for recording actions in a game.
  • Field Details

    • INSTANCE

      public static final Record 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

      public void addActions(long time, Actions actions)
      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.