Class Recorder

java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.recorder.Recorder

public class Recorder extends Object
The recorder for the game. Used to record actions.
Author:
Chris
  • Constructor Details

    • Recorder

      public Recorder(int lvl, int time)
      Create a new recorder.
      Parameters:
      lvl - the level to record
      time - the time of the game
  • Method Details

    • addAction

      public void addAction(Action action, int time)
      Add an action to the recorder.
      Parameters:
      action - The action to add.
      time - The time of the action.
    • save

      public void save()
      Save the recorded actions to a xml file.