Game

class Game(val information: GameInformation, initialPlayer: PlayableCharacter, val overworld: Overworld, completionCondition: EndCheck, gameOverCondition: EndCheck, errorPrefix: String = DEFAULT_ERROR_PREFIX, interpreter: Interpreter = defaultInterpreters, ioConfiguration: IOConfiguration = AnsiConsoleConfiguration)

Provides the overall container and logic for a game.

Constructors

Link copied to clipboard
constructor(information: GameInformation, initialPlayer: PlayableCharacter, overworld: Overworld, completionCondition: EndCheck, gameOverCondition: EndCheck, errorPrefix: String = DEFAULT_ERROR_PREFIX, interpreter: Interpreter = defaultInterpreters, ioConfiguration: IOConfiguration = AnsiConsoleConfiguration)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Specifies if the command list should be displayed in scene frames.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies the type of key to use for scene maps.

Functions

Link copied to clipboard

Change to a specified player.

Link copied to clipboard
fun displayTransition(title: String, message: String)

Display a transition frame with a specified title and message.

Link copied to clipboard

Find an InteractWithItem within this Game from a specified name. If the target cannot be found null is returned.

Link copied to clipboard

Get a list of all Examinable that are currently visible to the player.