Interface SaveStringProducer
- All Known Implementing Classes:
SaveStringJSON
public interface SaveStringProducer
An interface for classes that produce a save string from the CommandLogger and the Labyrinth.
An implementing class must be able to serialize: - The whole command list (as provided by the CommandLogger) - The name of the Labyrinth (as provided by the Labyrinth) - The seed of the random number generator used by the Labyrinth (as provided by the Labyrinth)
-
Method Summary
Modifier and TypeMethodDescriptionproduceSaveString(CommandLogger commandLogger, Labyrinth labyrinth) Produces a String containing the required save data in a certain format, as chosen by the implementer.
-
Method Details
-
produceSaveString
Produces a String containing the required save data in a certain format, as chosen by the implementer.- Parameters:
commandLogger- The CommandLogger whose logged commands are to be saved. Must not be nulllabyrinth- The Labyrith whose parameters are to be saved. Must not be null- Returns:
- a String, which is the save string formatted according to a certain format
-