Conversation

class Conversation(paragraphs: List<Paragraph> = emptyList())

Provides a mechanism for holding a conversation with a Converser. The paragraphs specify the body of the conversation.

Constructors

Link copied to clipboard
constructor(paragraphs: List<Paragraph> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the current Paragraph.

Link copied to clipboard

Provides a log of the Conversation as an array of LogItem.

Functions

Link copied to clipboard
fun next(game: Game): Reaction

Trigger the next line in this Conversation to obtain a Reaction.

Link copied to clipboard
fun respond(response: Response, game: Game): Reaction