RuneHive-Game
Loading...
Searching...
No Matches
PlayerOption.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.mob.player;
2
3/**
4 * Represents the options for right-clicking players.
5 *
6 * @author Seven
7 * @author Michael | Chex
8 */
9public enum PlayerOption {
10
11 /** The option for challenging another player to a duel. */
12 DUEL_REQUEST(1, "Challenge"),
13
14 /** The option for attacking another player. */
15 ATTACK(2, "Attack"),
16
17 /** The option for following another player. */
18 FOLLOW(3, "Follow"),
19
20 /** The option for trading another player. */
21 TRADE_REQUEST(4, "Trade with"),
22
23 /** The option for moderators and staff which brings up the report abuse option. */
24 REPORT(5, "Report"),
25
26 /** The option for moderators and staff which brings up the report abuse option. */
27 VIEW_PROFILE(5, "View profile"),
28 GAMBLE_REQUEST(6, "Gamble with"),
29 ;
30
31 /** The index of this option in the player menu. */
32 private final int index;
33
34 /** The name of this option in the player menu. */
35 private final String name;
36
37 /**
38 * Creates a new {@code PlayerOption}.
39 *
40 * @param index
41 * The index of this option in the player menu.
42 *
43 * @param name
44 * The name of this option in the player menu.
45 */
46 PlayerOption(int index, String name) {
47 this.index = index;
48 this.name = name;
49 }
50
51 /**
52 * Gets the index of this option.
53 *
54 * @return The index.
55 */
56 public int getIndex() {
57 return index;
58 }
59
60 /**
61 * Gets the option name.
62 *
63 * @return The name.
64 */
65 public String getName() {
66 return name;
67 }
68
69}
PlayerOption(int index, String name)
Creates a new PlayerOption.
DUEL_REQUEST
The option for challenging another player to a duel.
REPORT
The option for moderators and staff which brings up the report abuse option.
ATTACK
The option for attacking another player.
final String name
The name of this option in the player menu.
final int index
The index of this option in the player menu.
FOLLOW
The option for following another player.
VIEW_PROFILE
The option for moderators and staff which brings up the report abuse option.
TRADE_REQUEST
The option for trading another player.