DialogueCharacterNameView
Last updated
Was this helpful?
Last updated
Was this helpful?
Class in
Inherits from
A subclass of that displays character names.
This class uses the `character` attribute on lines that it receives to determine its content. When the view's method is called with a line whose contains a `character` attribute, the event is fired. If the line does not contain such an attribute, the event is fired instead.
This view does not present any options or handle commands. It's intended to be used alongside other subclasses of .
Invoked when the dialogue is started.
Invoked when a line is received that doesn't contain a character name.
Invoked when a line is received that contains a character name. The name is given as the parameter.
Takes no action; this dialogue view does not handle options.
Called by the to signal that the dialogue has ended, and no more lines will be delivered.
Called by the to signal that dialogue has started.
Invokes the or events, depending on the contents of line
.