Ansi Console Game Engine
class AnsiConsoleGameEngine(parameters: TextFrameParameters = TextFrameParameters(DEFAULT_WIDTH, DEFAULT_LINES), enterPrompt: String = "<enter> ", adapter: ConsoleAdapter = AnsiConsoleAdapter()) : GameEngine
A class that functions as an engine for an ANSI compatible console. The display parameters can be specified to set up the text frame. An enterPrompt can be specified, this will be displayed when user input is awaited.
Constructors
Link copied to clipboard
constructor(parameters: TextFrameParameters = TextFrameParameters(DEFAULT_WIDTH, DEFAULT_LINES), enterPrompt: String = "<enter> ", adapter: ConsoleAdapter = AnsiConsoleAdapter())
Properties
Functions
Link copied to clipboard
Begin processing console input.
Link copied to clipboard
Play a character.
Link copied to clipboard
Link copied to clipboard
open override fun characterMoves(character: Character, from: Position, to: Position, transition: LayoutTransition)
Move a character a position to another position with a specified transition.
Link copied to clipboard
Show a character.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Clear a scene.
Link copied to clipboard
End processing of console input.
Link copied to clipboard
Enter a chapter with a transition.
Link copied to clipboard
Enter a scene with a transition.
Link copied to clipboard
open override fun enterStep(step: Step, flags: Flags, canSkip: Boolean, cancellationToken: CancellationToken)
Enter a step with flags. When the step can be skipped canSkip will be true. A cancellationToken must be provided to support cancellation.
Link copied to clipboard
Enter a story.
Link copied to clipboard
Exit a chapter .
Link copied to clipboard
Exit a scene with a transition.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Play a soundEffect.