Package-level declarations

Types

Link copied to clipboard

Thrown when a point is malformed.

Link copied to clipboard

Thrown to indicate a LevelZ Header is missing.

Link copied to clipboard

Thrown to indicate errors in parsing a LevelZ file.

Properties

Link copied to clipboard
const val END: String

Marks the end of the file

Link copied to clipboard
const val HEADER_END: String

Marks the end of the header section.

Functions

Link copied to clipboard
fun parseLevel(level: Iterable<String>, seed: Random = Random): Level
fun parseLevel(level: String, seed: Random = Random, lineSeparator: String = ""): Level

Parses a LevelZ file from the given string.

fun parseLevel(stream: InputStream, seed: Random = Random): Level

Parses a Level from an input stream.

fun parseLevel(reader: Reader, seed: Random = Random): Level

Parses a Level from a reader.