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)
Properties
Link copied to clipboard
The active Converser.
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
The current PlayableCharacter.
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
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.