RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.dialogue.StatementDialogue Class Reference

The Chainable implementation that represents a dialogue with a single statement; which has no models on the dialogue. More...

Inheritance diagram for com.runehive.content.dialogue.StatementDialogue:
Collaboration diagram for com.runehive.content.dialogue.StatementDialogue:

Public Member Functions

void accept (DialogueFactory factory)
String[] getLines ()
 Gets the text on this dialogue.
 StatementDialogue (String... lines)
 Creates a new StatementDialogue.

Private Attributes

final String[] lines
 The text for this dialogue.

Detailed Description

The Chainable implementation that represents a dialogue with a single statement; which has no models on the dialogue.

Author
Seven

Definition at line 8 of file StatementDialogue.java.

Constructor & Destructor Documentation

◆ StatementDialogue()

com.runehive.content.dialogue.StatementDialogue.StatementDialogue ( String... lines)

Creates a new StatementDialogue.

Parameters
linesThe text for this dialogue.

Definition at line 18 of file StatementDialogue.java.

18 {
19 this.lines = lines;
20 }

References lines.

Member Function Documentation

◆ accept()

void com.runehive.content.dialogue.StatementDialogue.accept ( DialogueFactory factory)

Definition at line 23 of file StatementDialogue.java.

23{ factory.sendStatement(this); }

References com.runehive.content.dialogue.DialogueFactory.sendStatement().

Here is the call graph for this function:

◆ getLines()

String[] com.runehive.content.dialogue.StatementDialogue.getLines ( )

Gets the text on this dialogue.

Returns
The text.

Definition at line 30 of file StatementDialogue.java.

30 {
31 return lines;
32 }

References lines.

Member Data Documentation

◆ lines

final String [] com.runehive.content.dialogue.StatementDialogue.lines
private

The text for this dialogue.

Definition at line 11 of file StatementDialogue.java.

Referenced by getLines(), and StatementDialogue().


The documentation for this class was generated from the following file: