1package com.runehive.content.dialogue.impl;
3import com.runehive.content.dialogue.Dialogue;
4import com.runehive.content.dialogue.DialogueFactory;
5import com.runehive.content.dialogue.Expression;
6import com.runehive.content.store.Store;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.net.packet.out.SendMessage;
9import com.runehive.net.packet.out.SendURL;
38 factory.
sendOption(
"Claim Purchase", () ->
claim(factory),
"Donator Information", () -> player.
send(
new SendURL(
"https://runehive.com")),
"My donation statistics", () ->
myStats(factory),
"Open Store", () ->
store(factory),
"Nevermind", factory::clear);
49 player.
send(
new SendMessage(
"Claiming is temporarily disabled until EverythingRS is replaced."));
Represents a factory class that contains important functions for building dialogues.
final DialogueFactory execute()
Retrieves the next dialogue in the chain and executes it.
Player getPlayer()
The player that owns this factory.
final DialogueFactory sendNpcChat(int id, String... lines)
Appends an NpcDialogue to the current dialogue chain.
final DialogueFactory sendStatement(String... lines)
Appends a StatementDialogue to the current dialogue chain.
final DialogueFactory sendOption(String option1, Runnable action1, String option2, Runnable action2)
Appends the OptionDialogue onto the current dialogue chain.
Represents an abstract dialogue, in which extending classes will be able to construct and send dialog...
void claim(DialogueFactory factory)
void store(DialogueFactory factory)
void myStats(DialogueFactory factory)
void sendDialogues(DialogueFactory factory)
Sends a player a dialogue.
RoyalKingDialogue(int index)
The class which holds support for further abstraction for shops.
static Map< String, Store > STORES
A mapping of each shop by it's name.
This class represents a character controlled by a player.
void send(OutgoingPacket encoder)
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that opens a URL from client.
Represents the expressions of entities for dialogue.