Interface SaveStringReader
- All Known Implementing Classes:
SaveStringJSON
public interface SaveStringReader
An interface for classes that interpret the format of a save string and return the save parameters.
An implementing class must be able to deserialize: - The whole command list - The name of the Labyrinth - The seed of the random number generator used by the Labyrinth
-
Method Summary
Modifier and TypeMethodDescriptiongetLabyrinthName(String saveString) Returns the name of the Labyrinth as codified in the save string.longgetRandomNumberGeneratorSeed(String saveString) Returns the RNG seed of the Labyrinth as codified in the save string.String[]getUserCommands(String saveString) Returns an array of user commands as codified in the save string.
-
Method Details
-
getLabyrinthName
-
getRandomNumberGeneratorSeed
Returns the RNG seed of the Labyrinth as codified in the save string.- Parameters:
saveString- A save string in a certain format. Must not be null- Returns:
- a long integer
-
getUserCommands
-