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

Handles the prestige dialogue. More...

Inheritance diagram for com.runehive.content.dialogue.impl.PrestigeDialogue:
Collaboration diagram for com.runehive.content.dialogue.impl.PrestigeDialogue:

Public Member Functions

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

Private Member Functions

void explainPerks (DialogueFactory factory)
void explainPrestige (DialogueFactory factory)

Static Private Attributes

static final int POLLY = 345
 The dialogue npc identification.

Additional Inherited Members

Static Public Member Functions inherited from com.runehive.content.dialogue.Dialogue
static final boolean isDialogueButton (int button)
 Checks if the button triggered is an optional dialogue button.
Static Public Attributes inherited from com.runehive.content.dialogue.Dialogue
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

Handles the prestige dialogue.

Author
Daniel

Definition at line 13 of file PrestigeDialogue.java.

Member Function Documentation

◆ explainPerks()

void com.runehive.content.dialogue.impl.PrestigeDialogue.explainPerks ( DialogueFactory factory)
private

Definition at line 32 of file PrestigeDialogue.java.

32 {
33 factory.sendNpcChat(POLLY, Expression.HAPPY, "Perks are very simple to use. Once you have accumulated", "prestige points you can access my shop. Within my shops", "are different perks which all have different effects.");
34 factory.sendNpcChat(POLLY, Expression.HAPPY, "You can talk to me if you would like to see all the", "perks and their ability. All perks stack!");
35 }

References com.runehive.content.dialogue.Expression.HAPPY, POLLY, and com.runehive.content.dialogue.DialogueFactory.sendNpcChat().

Referenced by sendDialogues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ explainPrestige()

void com.runehive.content.dialogue.impl.PrestigeDialogue.explainPrestige ( DialogueFactory factory)
private

Definition at line 26 of file PrestigeDialogue.java.

26 {
27 factory.sendNpcChat(POLLY, Expression.HAPPY, "The concept of prestiges is very simple!", "Once you have achieved 200m experience in any non-combat", "skill, you will be permitted to prestige that skill.");
28 factory.sendNpcChat(POLLY, Expression.HAPPY, "Upon prestiging that skill, it will be reset back to 1 and you ", " will receive 1,000,000 coins and 1 prestige point.", "Players are only allowed to prestige each skill up to 5 times.");
29 factory.sendNpcChat(POLLY, Expression.HAPPY, "Each prestige has a different color. You have the ability", "to toggle the colors to display in your skill tab.");
30 }

References com.runehive.content.dialogue.Expression.HAPPY, POLLY, and com.runehive.content.dialogue.DialogueFactory.sendNpcChat().

Referenced by sendDialogues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendDialogues()

void com.runehive.content.dialogue.impl.PrestigeDialogue.sendDialogues ( DialogueFactory factory)

Sends a player a dialogue.

Parameters
factoryThe factory for this dialogue.

Reimplemented from com.runehive.content.dialogue.Dialogue.

Definition at line 19 of file PrestigeDialogue.java.

19 {
20 Player player = factory.getPlayer();
21 factory.sendNpcChat(POLLY, Expression.HAPPY, "Hello #username, my friend.", "How may I help you today?");
22 factory.sendOption("How do prestiges work?", () -> explainPrestige(factory), "How do perks work?", () -> explainPerks(factory), "Open prestige panel", player.prestige::open, "Nevermind", factory::clear);
23 factory.execute();
24 }

References com.runehive.content.dialogue.DialogueFactory.execute(), explainPerks(), explainPrestige(), com.runehive.content.dialogue.DialogueFactory.getPlayer(), com.runehive.content.dialogue.Expression.HAPPY, POLLY, com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), and com.runehive.content.dialogue.DialogueFactory.sendOption().

Here is the call graph for this function:

Member Data Documentation

◆ POLLY

final int com.runehive.content.dialogue.impl.PrestigeDialogue.POLLY = 345
staticprivate

The dialogue npc identification.

Definition at line 16 of file PrestigeDialogue.java.

Referenced by explainPerks(), explainPrestige(), and sendDialogues().


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