GameEngine

interface GameEngine

Defines the functionality that an engine must provide to run a Game.

Inheritors

Properties

Link copied to clipboard
abstract val log: Log

Get the log. All events can be logged here so that they can be recalled later if needed.

Link copied to clipboard

Get the progression controller.

Link copied to clipboard

Get the volume manager.

Functions

Link copied to clipboard
abstract fun characterAnimation(character: Character, animation: Animation)

Play a character.

Link copied to clipboard
abstract fun characterAsksQuestion(character: Character, question: Question)

Handle a character asking a question.

Link copied to clipboard
abstract 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
abstract fun characterShowsEmotion(character: Character, emotion: Emotion)

Show a character.

Link copied to clipboard
abstract fun characterSpeaks(character: Character, line: String)

Handle a character speaking a line.

Link copied to clipboard
abstract fun characterThinks(character: Character, line: String)

Handle a character thinking a line.

Link copied to clipboard
abstract fun clearScene(scene: Scene)

Clear a scene.

Link copied to clipboard
abstract fun enterChapter(chapter: Chapter, transition: ChapterTransition)

Enter a chapter with a transition.

Link copied to clipboard
abstract fun enterScene(scene: Scene, transition: SceneTransition)

Enter a scene with a transition.

Link copied to clipboard
abstract 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
abstract fun enterStory(story: Story)

Enter a story.

Link copied to clipboard
abstract fun exitChapter(chapter: Chapter)

Exit a chapter .

Link copied to clipboard
abstract fun exitScene(scene: Scene, transition: SceneTransition)

Exit a scene with a transition.

Link copied to clipboard
abstract fun exitStep(step: Step, flags: Flags)

Exit a step.

Link copied to clipboard
abstract fun exitStory(story: Story)

Exit a story .

Link copied to clipboard
abstract fun getAnswerToQuestion(question: Question): Answer

Get an Answer to a question.

Link copied to clipboard
abstract fun narratorAsksQuestion(narrator: Narrator, question: Question)

Handle a narrator asking a question.

Link copied to clipboard
abstract fun narratorNarrates(narrator: Narrator, line: String)

Handle a narrator narrating a line.

Link copied to clipboard
abstract fun playSoundEffect(soundEffect: SoundEffect)

Play a soundEffect.