RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.dialogue.OptionDialogue Class Reference
Inheritance diagram for com.osroyale.content.dialogue.OptionDialogue:
Collaboration diagram for com.osroyale.content.dialogue.OptionDialogue:

Public Member Functions

 OptionDialogue (String option1, Runnable action1, String option2, Runnable action2)
 OptionDialogue (String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3)
 OptionDialogue (String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3, String option4, Runnable action4)
 OptionDialogue (String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3, String option4, Runnable action4, String option5, Runnable action5)
String[] getLines ()
List< Runnable > getActions ()

Detailed Description

The Chainable implementation that represents a dialogue in which options are given to the player.

Author
Michael | Chex

Definition at line 39 of file OptionDialogue.java.

Constructor & Destructor Documentation

◆ OptionDialogue() [1/4]

com.osroyale.content.dialogue.OptionDialogue.OptionDialogue ( String option1,
Runnable action1,
String option2,
Runnable action2 )
inline

Creates a new OptionDialogue.

Parameters
option1The text for the first option.
action1The action for the first action.
option2The text for the second option.
action2The action for the second action.

Definition at line 55 of file OptionDialogue.java.

◆ OptionDialogue() [2/4]

com.osroyale.content.dialogue.OptionDialogue.OptionDialogue ( String option1,
Runnable action1,
String option2,
Runnable action2,
String option3,
Runnable action3 )
inline

Creates a new OptionDialogue.

Parameters
option1The text for the first option.
action1The action for the first action.
option2The text for the second option.
action2The action for the second action.
option3The text for the third option.
action3The action for the third action.

Definition at line 71 of file OptionDialogue.java.

◆ OptionDialogue() [3/4]

com.osroyale.content.dialogue.OptionDialogue.OptionDialogue ( String option1,
Runnable action1,
String option2,
Runnable action2,
String option3,
Runnable action3,
String option4,
Runnable action4 )
inline

Creates a new OptionDialogue.

Parameters
option1The text for the first option.
action1The action for the first action.
option2The text for the second option.
action2The action for the second action.
option3The text for the third option.
action3The action for the third action.
option4The text for the four option.
action4The action for the four action.

Definition at line 90 of file OptionDialogue.java.

◆ OptionDialogue() [4/4]

com.osroyale.content.dialogue.OptionDialogue.OptionDialogue ( String option1,
Runnable action1,
String option2,
Runnable action2,
String option3,
Runnable action3,
String option4,
Runnable action4,
String option5,
Runnable action5 )
inline

Creates a new OptionDialogue.

Parameters
option1The text for the first option.
action1The action for the first action.
option2The text for the second option.
action2The action for the second action.
option3The text for the third option.
action3The action for the third action.
option4The text for the four option.
action4The action for the four action.
option5The text for the fifth option.
action5The action for the fifth action.

Definition at line 112 of file OptionDialogue.java.

Member Function Documentation

◆ getActions()

List< Runnable > com.osroyale.content.dialogue.OptionDialogue.getActions ( )
inline

Gets the list of actions for this dialogue.

Returns
The list of actions.

Definition at line 140 of file OptionDialogue.java.

◆ getLines()

String[] com.osroyale.content.dialogue.OptionDialogue.getLines ( )
inline

Gets the text for this dialogue.

Returns
The text.

Definition at line 131 of file OptionDialogue.java.


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