|
RuneHive-Game
|
Handles the vote dialogue. More...
Public Member Functions | |
| void | sendDialogues (DialogueFactory factory) |
| Sends a player a dialogue. | |
Private Member Functions | |
| void | exchange (DialogueFactory factory, int amount) |
| Handles redeeming vote tokens. | |
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. | |
Handles the vote dialogue.
Definition at line 18 of file VoteDialogue.java.
|
private |
Handles redeeming vote tokens.
Definition at line 42 of file VoteDialogue.java.
References com.runehive.game.world.items.containers.ItemContainer.computeAmountForId(), com.runehive.content.dialogue.DialogueFactory.execute(), com.runehive.util.Utility.formatDigits(), com.runehive.content.dialogue.DialogueFactory.getPlayer(), com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.items.containers.ItemContainer.remove(), com.runehive.content.dialogue.Expression.SAD, com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), and com.runehive.game.world.entity.mob.player.Player.votePoints.
Referenced by sendDialogues().
| void com.runehive.content.dialogue.impl.VoteDialogue.sendDialogues | ( | DialogueFactory | factory | ) |
Sends a player a dialogue.
| factory | The factory for this dialogue. |
Reimplemented from com.runehive.content.dialogue.Dialogue.
Definition at line 21 of file VoteDialogue.java.
References com.runehive.content.dialogue.DialogueFactory.clear(), exchange(), com.runehive.content.dialogue.DialogueFactory.execute(), com.runehive.game.world.entity.mob.player.Player.getName(), com.runehive.content.dialogue.DialogueFactory.getPlayer(), com.runehive.content.dialogue.Expression.HAPPY, com.runehive.game.world.World.schedule(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), com.runehive.content.dialogue.DialogueFactory.sendOption(), com.runehive.content.dialogue.DialogueFactory.sendPlayerChat(), and com.runehive.content.store.Store.STORES.