RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.dialogue.Dialogue Class Referenceabstract

Represents an abstract dialogue, in which extending classes will be able to construct and send dialogues to a player. More...

Inheritance diagram for com.runehive.content.dialogue.Dialogue:

Public Member Functions

abstract void sendDialogues (DialogueFactory factory)
 Sends a player a dialogue.

Static Public Member Functions

static final boolean isDialogueButton (int button)
 Checks if the button triggered is an optional dialogue button.

Static Public Attributes

static final ImmutableList< Integer > DIALOGUE_BUTTONS = ImmutableList.of(2461, 2471, 2482, 2462, 2472, 2483, 2473, 2484, 2485, 2494, 2495, 2496, 2497, 2498)
 The action buttons responsible for dialogues.

Detailed Description

Represents an abstract dialogue, in which extending classes will be able to construct and send dialogues to a player.

Author
Seven

Definition at line 11 of file Dialogue.java.

Member Function Documentation

◆ isDialogueButton()

final boolean com.runehive.content.dialogue.Dialogue.isDialogueButton ( int button)
static

Checks if the button triggered is an optional dialogue button.

Parameters
buttonThe index of the button being checked.
Returns
The result of the operation.

Definition at line 30 of file Dialogue.java.

30 {
31 return DIALOGUE_BUTTONS.stream().anyMatch(search -> DIALOGUE_BUTTONS.contains(button));
32 }

References DIALOGUE_BUTTONS.

◆ sendDialogues()

Member Data Documentation

◆ DIALOGUE_BUTTONS

final ImmutableList<Integer> com.runehive.content.dialogue.Dialogue.DIALOGUE_BUTTONS = ImmutableList.of(2461, 2471, 2482, 2462, 2472, 2483, 2473, 2484, 2485, 2494, 2495, 2496, 2497, 2498)
static

The action buttons responsible for dialogues.

Definition at line 14 of file Dialogue.java.

Referenced by isDialogueButton().


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