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

Handles the information box dialogue. More...

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

Public Member Functions

void accept (DialogueFactory factory)
String[] getLines ()
 Gets the context of the dialogue.
String getTitle ()
 Gets the title of the dialogue.
 InformationDialogue (String title, String...lines)
 Constructs a new ItemDialogue.

Private Attributes

final String[] lines
 The context of the item dialogue.
final String title
 The title of the item dialogue.

Detailed Description

Handles the information box dialogue.

Author
Daniel

Definition at line 8 of file InformationDialogue.java.

Constructor & Destructor Documentation

◆ InformationDialogue()

com.runehive.content.dialogue.InformationDialogue.InformationDialogue ( String title,
String... lines )

Constructs a new ItemDialogue.

Parameters
titleThe title of the dialogue.
linesThe context of the dialogue.

Definition at line 22 of file InformationDialogue.java.

22 {
23 this.title = title;
24 this.lines = lines;
25 }

References lines, and title.

Member Function Documentation

◆ accept()

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

Definition at line 46 of file InformationDialogue.java.

46 {
47 factory.sendInformationBox(this);
48 }

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

Here is the call graph for this function:

◆ getLines()

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

Gets the context of the dialogue.

Returns
The dialogue context.

Definition at line 41 of file InformationDialogue.java.

41 {
42 return lines;
43 }

References lines.

◆ getTitle()

String com.runehive.content.dialogue.InformationDialogue.getTitle ( )

Gets the title of the dialogue.

Returns
The dialogue title.

Definition at line 32 of file InformationDialogue.java.

32 {
33 return title;
34 }

References title.

Member Data Documentation

◆ lines

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

The context of the item dialogue.

Definition at line 14 of file InformationDialogue.java.

Referenced by getLines(), and InformationDialogue().

◆ title

final String com.runehive.content.dialogue.InformationDialogue.title
private

The title of the item dialogue.

Definition at line 11 of file InformationDialogue.java.

Referenced by getTitle(), and InformationDialogue().


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